NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
alekoc
Joined: 10 Oct 2008 Posts: 30
|
Posted: Fri Dec 23, 2011 10:24 am Post subject: Profiler general questions |
|
|
Hello, Dear Profiler Experts
I am trying the NB Profiler for the memory leak search, but still don't know how to do this. I read few times tutorials on NB site, but the questions are still existing. Could you answer some general questions, please?
Next are my project pictures from Profiler with my comment.
1. Why Surviving generations line has a step up when I force GC? What is happening?
2. Does it mean the memory leak if Surviving generations has a step up every time when I open JDialog and run some process? Why the heap pink area goes up every time when I do this?
3. What means if Surviving generations line has a step down during the profiling (it happens sometime)?
4. Why the heap size is 64MB on start, but about 49MB later? How JVM is assigning the heap size?
5. What is the difference between «Live Objects» and «Allocated Objects»?
6. Does it mean the memory leak if number of Allocated Objects more than number of Live Objects?
7. How can I find my code or class in case of memory leak, if memory picture shows java.lang.String class? What is the scenario to get it?
8. What is the best indicator of the memory leak in Profiler information?
9. What are the best recommendations for the memory leak searching?
| Description: |
|
| Filesize: |
27.91 KB |
| Viewed: |
2977 Time(s) |

|
| Description: |
|
| Filesize: |
28.12 KB |
| Viewed: |
2977 Time(s) |

|
| Description: |
|
| Filesize: |
74.36 KB |
| Viewed: |
2977 Time(s) |

|
|
|
| Back to top |
|
 |
Tomas Hurka Posted via mailing list.
|
Posted: Wed Jan 04, 2012 1:49 pm Post subject: Re: Profiler general questions |
|
|
Hi,
On 23 Dec 2011, at 11:24, alekoc wrote:
| Quote: | Hello, Dear Profiler Experts
I am trying the NB Profiler for the memory leak search, but still don't know how to do this. I read few times tutorials on NB site, but the questions are still existing. Could you answer some general questions, please?
Next are my project pictures from Profiler with my comment.
1. Why Surviving generations line has a step up when I force GC? What is happening?
2. Does it mean the memory leak if Surviving generations has a step up every time when I open JDialog and run some process? Why the heap pink area goes up every time when I do this?
3. What means if Surviving generations line has a step down during the profiling (it happens sometime)?
| To understand, what does 'Surviving generation metrics' mean see the following post: <http://blogs.oracle.com/nbprofiler/entry/what_do_the_surviving_generations>. Full story about 'Uncovering Memory Leaks Using NetBeans Profiler ' is available here: http://netbeans.org/kb/articles/nb-profiler-uncoveringleaks_pt1.html
| Quote: | 4. Why the heap size is 64MB on start, but about 49MB later? How JVM is assigning the heap size?
| It seems that garbage connector find out that it does not need so much memory and releases some of it.
| Quote: | | 5. What is the difference between
|
|
| Back to top |
|
 |
alekoc
Joined: 10 Oct 2008 Posts: 30
|
Posted: Tue Jan 17, 2012 9:48 am Post subject: |
|
|
| Thanks Tomas, but why you did not finished your answers?
|
|
| Back to top |
|
 |
mobileapplover
Joined: 25 Jun 2012 Posts: 2 Location: India
|
Posted: Fri Mar 08, 2013 2:41 pm Post subject: |
|
|
| It’s really very tips helpful for users, Thanks for sharing to all.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|