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.  regarding WAS core dump and heap dump store location on filesystem.

    Posted Tue December 11, 2012 08:06 AM
    Hello Friends,

    Can you please let me know how I can set the location where I want JVM core and heap dumps to be stored?
    Is it done via the setupCMDline.sh or via the websphere variables?

    If done through both then which one takes precedence over the other?

    Thanks and Regards,
    Kushal Chaudhary


  • 2.  regarding WAS core dump and heap dump store location on filesystem.

    Posted Tue December 11, 2012 11:58 AM
    Application servers > Application_server > Process Definition > Custom Properties

    IBM_JAVACOREDIR your_directory  /for Javadump/
    IBM_HEAPDUMPDIR your_directory /for Heapdump/
    IBM_COREDIR your_directory /for system dump/
    IBM_COREDIR your_directory /for snap traces/


  • 3.  regarding WAS core dump and heap dump store location on filesystem.

    Posted Wed December 12, 2012 07:36 AM
    HI Joseph,

    Thanks for the information.
    However just wanted to know if websphere variables and setupCMDline.sh are also the probable ways to do so?
    Can you please comment on it?

    Thanks and Regards,
    Kushal Chaudhary


  • 4.  regarding WAS core dump and heap dump store location on filesystem.

    Posted Fri December 14, 2012 12:32 PM
    Hi Kushal,

      Yes, you can do using environment variables (in setupCmdLine f.e) but take in mind that if you put in setupCmdLine is for all servers the same behavior, if you put in Joseph's way only selected servers has different behavior.
     
      JVM environment settings
      publib.boulder.ibm.com/infocenter/javasd...
     
      Javadump and Heapdump options
      The following list describes the Javadump and Heapdump options. The recommended way of controlling the production of diagnostic data is the -Xdump command-line option, described in Using dump agents.
     
      The -Xdump option on the command line is the preferred method for producing dumps for cases where the default settings are not enough. You can also produce dumps using the JAVA_DUMP_OPTS environment variable.
     
      Using dump agents
      publib.boulder.ibm.com/infocenter/javasd...
     
      Using -Xdump agent not only you can set the location of dumps also you can select what type of dumps generate for example yes javacores but not heapdump
     
      Hope this helps.
     
     regards