• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

heap dump not generating

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

for heap dump on out of memory I've tried the below parameters, but when ever OOM occurred , heapdump was not generating.


I added these parameters in startWeblogic.sh



JAVA_OPTIONS="${JAVA_OPTIONS} -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/user1/weblogic/Oracle/Middleware/dumperrror.hprof "

JAVA_OPTIONS="${JAVA_OPTIONS} -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/user1/weblogic/Oracle/Middleware"


Kindly suggest me the exact syntax.

os: solaris

- sun jdk

thanks,
 
sunny kkk
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
could any one update on this please.. heap dump is not generating when server crashed with OOM...
 
Ranch Hand
Posts: 256
Netbeans IDE Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Few questions:
Are you sure its there in the JVM arguments?
Check by doing a ps -eaf | grep java | grep <YourManagedServerName> | grep HeapDumpOnOutOfMemoryError | grep -v grep

if you find some output then follow below steps else make sure you are adding the arguments to JAVA_OPTIONS parameter and try to add it in setDomainEnv.sh/bat if possible and restart the managed server and check for the above command to see if the argument came in running JVM process.

You can add it to start of setDomainEnv.sh file like follwoing:
JAVA_OPTIONS="$JAVA_OPTIONS -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/user1/weblogic/Oracle/Middleware/"
export JAVA_OPTIONS

# JAVA_OPTIONS - Java command-line options for running the server. (These
# will be tagged on to the end of the JAVA_VM and
# MEM_ARGS)


Make sure /user1/weblogic/Oracle/Middleware path is writable by the user which starts the Java process.

If that does not solve can you please let us know which OS you are using and can you please give us your startWeblogic.sh and setDomainEnv.sh files.

You can check this thread if you want more info on parameters used in JVM perf checks
 
Ramakanta Sahoo
Ranch Hand
Posts: 256
Netbeans IDE Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can also create a shell script which will take heapdump using jmap when ever your memory goes below some threshold .
reply
    Bookmark Topic Watch Topic
  • New Topic