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.  Unable to Genarate Heap Dumps and Core dumps

    Posted Sun March 09, 2014 08:31 AM
    Hi All,

    Some time we are unable to a genarate Heap and core dumps using following commands kill -3 , wasadmin, jython commands ,but in the Nehative str_err.log file it showing the java , Heap dumps are genrtated in the some XXXX location , but i can't see those files in that location.Kindly let me know due to what cause those dumps not genrating .

    Thanks
    Satheesh


     


  • 2.  Unable to Genarate Heap Dumps and Core dumps

    Posted Sun March 09, 2014 11:16 PM
    Hi Satheesh,

      You are not saying what version of java are using.
     
      Try launching the next java option to get dump options.
     
      WAS_HOME\java\bin\java -Xdump:what
     
      Hope this helps. Tell us if you need more support
     
    regards


  • 3.  Unable to Genarate Heap Dumps and Core dumps

    Posted Wed April 16, 2014 01:06 AM

    Hi Gabriel,

    Java version JRE 1.6.0
    Registered dump agents
    ----------------------
    -Xdump:heap:
    events=systhrow,
    filter=java/lang/OutOfMemoryError,
    label=xxx/heapdump.%Y%m%d.%H%M%S.%pid.%seq.phd,
    range=1..4,
    priority=500,
    request=exclusive+compact+prepwalk,
    opts=PHD
    ----------------------
    -Xdump:java:
    events=gpf+user+abort+traceassert,
    label=xxxx/javacore.%Y%m%d.%H%M%S.%pid.%seq.txt,
    range=1..0,
    priority=400,
    request=exclusive+preempt
    ----------------------
    -Xdump:java:
    events=systhrow,
    filter=java/lang/OutOfMemoryError,
    label=xxxx/javacore.%Y%m%d.%H%M%S.%pid.%seq.txt,
    range=1..4,
    priority=400,
    request=exclusive+preempt


    As per GC log file its say the java/Heap dumps are genrated "xxx/pxx/"location but in that location we can't see those files.I have observed one thing these two locations (" in the Xdump:label=xxxx/javacore.%Y%m%d.%H%M%S.%pid.%seq.txt, in the GClog Java/heap Dump locatin :xxx/pxx/Javacore ..)" are not same. 

    Here the issue  is the dumps are deleting automatincally (there is no cron job set for deleting dupms as well) .. 


    Can we set N number of genrate java core /Heap dumps in the websphere7? if yes could you please let me know where we can set that value.


    As per my knowladge By defalut we can genrate "10"java core/Heap dumps ,if am wrong can you please coorect me. 



  • 4.  Unable to Genarate Heap Dumps and Core dumps

    Posted Wed April 16, 2014 10:50 PM
    satheesh,

      Yes you can limit the number of dumps dynamically (JVM is started), and yes by default are 10.
     
       Limit the number of Heapdumps and System Dumps using wsadmin
       www-01.ibm.com/support/docview.wss?uid=s...
       
      Or using -Xdump range option

      publib.boulder.ibm.com/infocenter/javasd...
       
      I suggest to review if you have some of the next environment variables:

       In the Process Definition > Environment section:
         IBM_HEAPDUMP=true
         IBM_HEAPDUMPDIR=/path/to/dir
         IBM_JAVACORE=true
         IBM_JAVACOREDIR=/path/to/dir
         JAVA_DUMP_OPTS=ONANYSIGNAL(JAVADUMP[5],HEAPDUMP[5])
     
        or in the JVM generic arguments:
     
          -Xdump:java+heap+system:events=systhrow,filter=java/lang/OutOfMemoryError,request=exclusive+prepwalk

          
      From Java 6 SR 2, the dump settings are applied in the following order, with the settings later in the list taking precedence:


    • Default JVM dump behavior.

    • -Xdump command-line options that specify -Xdump::defaults, see defaults option.

    • DISABLE_JAVADUMP, IBM_HEAPDUMP, and IBM_HEAP_DUMP environment variables.

    • IBM_JAVADUMP_OUTOFMEMORY and IBM_HEAPDUMP_OUTOFMEMORY environment variables.

    • JAVA_DUMP_OPTS environment variable.

    • Remaining -Xdump command-line options.



                
      Hope this helps. Tell us if you need more support
     
    regards