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
  • 1.  WAS heap dumps

    Posted Fri September 27, 2013 04:44 PM
    How do I  make the heapdumps get  generated in a different directory rather than the default directory in Solaris?


  • 2.  WAS heap dumps

    Posted Fri September 27, 2013 06:41 PM
    Hello, I'm not sure if these environment entries  works  for solaris,  did you tried this ?

    Application servers > server1 > Process definition > Environment Entries

    IBM_HEAPDUMPDIR=/directory
    IBM_JAVACOREDIR=/directory
    IBM_COREDIR=/directory




  • 3.  WAS heap dumps

    Posted Sat September 28, 2013 07:29 AM
    Hi WASuser,

      try with this technote:
     
      Getting Heapdumps on the Solaris platform
      www-01.ibm.com/support/docview.wss?uid=s...
     
      hope this helps,
     
     regards


  • 4.  WAS heap dumps

    Posted Mon September 30, 2013 12:14 PM
    Dario,

    Those variables work for IBM JVMs.

    I have Sun JVM on solaris platform.

    Gabriel,

    Thanks for the technote,  I was aware of the arguments to  genterate heap dumps on OOM or manually.  I am more of looking on how to redirect these dumps to a different directory because they are currently filling up WAS binaries


  • 5.  WAS heap dumps

    Posted Tue October 01, 2013 04:31 AM
    WASUser,

      I haven't solaris to test but I think that this properties are what you are looking for:    

       -XX:ErrorFile=./hs_err_pid.log -> If an error occurs, save the error data to this file.   

       -XX:HeapDumpPath=./java_pid.hprof -> Path to directory or filename for heap dump. Manageable. (Introduced in 1.4.2 update 12, 5.0 update 7.) 

       -XX:-HeapDumpOnOutOfMemoryError -> Dump heap to file when java.lang.OutOfMemoryError is thrown. Manageable. (Introduced in 1.4.2 update 12, 5.0 update 7.)   

      Java HotSpot VM Options
      www.oracle.com/technetwork/java/javase/t...
     
     
      hope this helps.
     
    regards



  • 6.  WAS heap dumps

    Posted Wed October 02, 2013 01:35 AM
    Thanks Gabriel. 

    These are what exactly I was  looking for.