• 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

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: 23840
141
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: 23840
141
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
 
When you have exhausted all possibilities, remember this: you haven't - Edison. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!