Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

heap dump not generating

 
sunny kkk
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
could any one update on this please.. heap dump is not generating when server crashed with OOM...
 
Ramakanta Sahoo
Ranch Hand
Posts: 256
Fedora Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • 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
Fedora Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • 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 .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic