in Education by
I want to find a memory leak in a Java 1.5 application. I use JProfiler for profiling. I see using the windows' task manager that the vm size for my application is about 790000KB (increased from approx 300000KB). In the profiler I see that that the allocated heap is 266MB (increasing also). Probably it's a rookie question but, what else can occupy so much memory besides the heap so that it goes to approx 700MB vm size (or private bytes size)? I mention that there are approx 1200 threads running, which can occupy, according to an answer from here quite some memory, but I think there still is some space until 700MB. By the way, how I can see how much memory the threads stacks occupy? Thanks. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
The JVM can use alot of virtual memory which may not use resident memory. On startup it allocates the heap, and maps in its shared libraries. Classes which are loaded use Perm Gen space. An application can use direct memory which can be as large as the heap maximum. As each thread is created a stack is allocated for each thread. In each case until this memory is used, it might not be allocated to the application i.e. not use physical memory. As the application warms up, more of the virtual memory can become physical memory. If you believe your JVM is not running efficiently, the first thing I would try is Java 6 which has had many fixes and improvements since the last release of Java 5.0.

Related questions

0 votes
    VM creation is possible using Azure Resource Manager in a Virtual Network which was created by means of classic deployment. ?...
asked Jul 30, 2021 in Technology by JackTerrance
0 votes
    7. Which of the following management task is most important for a supervisory manager? Al Staffing (B) Planning ... (Di Controlling Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    The VM size determines the number of ________ that you can create for a VM. A. Ips B. VIPs C. NICs D. MACs...
asked Nov 20, 2022 in Education by JackTerrance
+1 vote
    The VM size determines the number of _________....
asked Oct 20, 2020 in Technology by JackTerrance
0 votes
    _______ performs start and stop actions of an application locally in the application virtual machine (VM). (1)Blobstore (2)Cell Reps (3)Garden (4)Diego Cell...
asked Aug 24, 2021 in Technology by JackTerrance
0 votes
    What is the command to access the Heap size limit? (a) performance.memory. SizeLimit (b) performance.memory ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
0 votes
    The application-level protocol in which a few manager stations control a set of agents is called ______. A. TCP B. HTML C. SNMP/IP D. SNMP...
asked Feb 14, 2023 in Technology by JackTerrance
0 votes
    I had a program working good (without prompting errors) using references, but I decided to use a pointer-to-pointer array ... that it is there because I have put two flags (cout...
asked Apr 6, 2022 in Education by JackTerrance
0 votes
    In an application that uses heap, the memory for data is allocated ____________ (a) logical (b) dynamically (c) ... Security questions and answers pdf, mcq on Cyber Security pdf,...
asked Nov 4, 2021 in Education by JackTerrance
0 votes
    I am trying to override the tomcat session manager with an embedded tomcat. These are the steps preformed ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 26, 2022 in Education by JackTerrance
0 votes
    This question already has answers here: How to deal with "java.lang.OutOfMemoryError: Java heap space" error ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 14, 2022 in Education by JackTerrance
0 votes
    I'm wondering if size of AAE file has an impact on efficiency, speed of BOT. I mean when I wrote first version ... affect it's speed. Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    I have recently quoted a Deep Learning VM from Google Cloud. DLVM provides a link to the jupyter notebook ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 17, 2022 in Education by JackTerrance
0 votes
    Can't ping smtp.gmail.com. I've been using google smtp for email notification and it was working ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 16, 2022 in Education by JackTerrance
...