Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

java heap dump path

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello All ,

in one of our server i could see below JVM entries in run.sh can some one help me where does the java heap dump will be created


what is the difference between -XX:+HeapDumpOnOutOfMemoryError" vs -XX: -HeapDumpOnOutOfMemoryError" (+/-)


export VERBOSE_GC_OPTS=" -XX:- PrintGC -XX :- PrintGCDetails -XX:- PrintGCTimeStamps -Xloggc:/logs/test/dir/test_logGC.vgc -XX:-HeapDumpOnOutOfMemoryError"

Thanks so much
 
author
Posts: 23877
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Sireesh Ganagam wrote:
what is the difference between -XX:+HeapDumpOnOutOfMemoryError" vs -XX: -HeapDumpOnOutOfMemoryError" (+/-)



The plus and minus are used for boolean options. Basically, the plus turns on the option (set to true) and the minus turns off the option (set to false).

Henry
 
Sireesh Ganagam
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks so much Henry for your quick reply

so in my case below, right now heap dump logs are disabled ? if i enable where(path) will it generate the head dump , I am using jboss 5. what will be the file name pattern of Heap dump in this case.


export VERBOSE_GC_OPTS=" -XX:- PrintGC -XX :- PrintGCDetails -XX:- PrintGCTimeStamps -Xloggc:/logs/test/dir/test_logGC.vgc -XX:-HeapDumpOnOutOfMemoryError"
 
Henry Wong
author
Posts: 23877
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Sireesh Ganagam wrote:Thanks so much Henry for your quick reply

so in my case below, right now heap dump logs are disabled ? if i enable where(path) will it generate the head dump , I am using jboss 5. what will be the file name pattern of Heap dump in this case.


export VERBOSE_GC_OPTS=" -XX:- PrintGC -XX :- PrintGCDetails -XX:- PrintGCTimeStamps -Xloggc:/logs/test/dir/test_logGC.vgc -XX:-HeapDumpOnOutOfMemoryError"




It has been a long while, but if memory serves, I believe that the file will be located in current directory -- meaning the directory when the JVM was started. I believe that there is also an option to specify the location of the heap dump.

Henry
 
Don't listen to Steve. Just read this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic