Just to add to what Kirk said, there is a NetBeans profiler hand-on lab 
that shows how
you can do what he suggested.

  http://www.javapassion.com/handsonlabs/nbprofilerperformance/index.html

This is part of the following online course

 http://www.javapassion.com/javaperformance/#Topics

-Sang Shin

kirk wrote:
> kittu wrote:
>   
>> Hi
>>
>> I facing the problem of out of memory and fatal shutdown of the
>> device, in the logs i not able to find any clue regards memory
>> increament continuosly. the device is down after few days due to
>> continuous memory usage increment >256MB (actually 60 -90MB
>> acceptable).
>>
>> is any way to debug this scenario.? if so how ?
>>   
>>     
> netbeans profiler.
>
> 1) find the object with the highest generational count using the memory 
> profiler
> 2) dump heap, find and instance of that object and use heap walker to 
> find the reference path back to the GC root
> 3) use the reference path to understand what is holding onto the leaking 
> object
> 4) use stack allocation at object creation time to know where to look in 
> the application for the object.
>
>
> Regards,
> Kirk
>
>
> >
>
>   


-- 
---------------------------------------------------------------
   Sang Shin, [email protected], [email protected]
     http://www.javapassion.com/SangShinSchedule.html
         (Life is worth living... with Passion!)
---------------------------------------------------------------
"Java EE Programming Basics" course starts from Sep. 1st, 2009
      http://www.javapassion.com/j2ee/
"Ajax and Web 2.0 Programming" course starts from Sep. 7th, 2009
      http://www.javapassion.com/ajaxcodecamp/
"Java EE Programming Advanced" course starts from Oct. 1st, 2009
      http://www.javapassion.com/javaee_advanced/
"SOA/OpenESB/OpenSSO Programming" course starts from Nov. 1st, 2009
      http://www.javapassion.com/soaprogramming/
---------------------------------------------------------------


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to