WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Can anyone let me know how to genarate heap dump automatically in WAS 5

  • 1.  Can anyone let me know how to genarate heap dump automatically in WAS 5

    Posted Wed April 06, 2016 10:52 PM

    how to genarate heap dump automatically in WAS 5



  • 2.  RE: Can anyone let me know how to genarate heap dump automatically in WAS 5

    Posted Wed April 13, 2016 08:12 AM

    What do you mean by 'automatically'?

    You can use kill -3 <pid> manually if that helps



  • 3.  RE: Can anyone let me know how to genarate heap dump automatically in WAS 5

    Posted Wed April 13, 2016 08:17 AM

    Generate heap dump of Out Of Memory Condition option is available through JVM properties. 



  • 4.  RE: Can anyone let me know how to genarate heap dump automatically in WAS 5

    Posted Wed April 13, 2016 01:25 PM

    Hi Praveen,

    You can accomplish it by adding an environment entry like below :

    In console Servers > Application servers > [appserver_name] > Process Definition > Environment Entries

    New:

    JAVA_DUMP_OPTS ONINTERRUPT(NONE),ONDUMP(JAVADUMP,HEAPDUMP),ONERROR(NONE),ONEXCEPTION(NONE),ONOUTOFMEMORY(JAVADUMP[3],HEAPDUMP[3])

    It will create 3 javacores / heapdumps in a row when the OoM situation occurs in your jvm

    Hope that helps

    Gustavo



  • 5.  RE: Can anyone let me know how to genarate heap dump automatically in WAS 5

    Posted Mon April 18, 2016 01:11 AM

    Thank You



  • 6.  RE: Can anyone let me know how to genarate heap dump automatically in WAS 5

    Posted Sat April 16, 2016 10:26 AM

    From java 1.4.1 & above,  'java -Xdump' command can be used to generate heapdump. You can also generate thread dump & system dump using the same command with its respective options.

    Refer: http://www-01.ibm.com/support/docview.wss?uid=swg21242497#Default_Dump_Agents



  • 7.  RE: Can anyone let me know how to genarate heap dump automatically in WAS 5

    Posted Mon April 18, 2016 01:11 AM

    thank you