• 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

does java 7 support -XX:+HeapDumpOnCtrlBreak

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Need to get a heap dump from a running app (tomcat) on JDK 1.702. Kill -3 does trigger some info to catalina.out but does not produce heap dump. Added -XX:+HeapDumpOnCtrlBreak and got


Unrecognized VM option 'HeapDumpOnCtrlBreak'

What's the trick?
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to code ranch Andy

The -XX options are developer options and are subject to change between versions without any notice. It could have been dropped.

Application servers like JBOSS and Weblogic provide options to obtain thread dumps. You can try those servers if that is an option. Else you should be able to use JMX beans and JConsole to get the thread dumps. Someone has spent time writing a java class that pokes these beans -

http://www.java2s.com/Code/Java/Development-Class/ThisFullThreadDumpclassdemonstratesthecapabilitytogetafullthreaddumpandalsodetectdeadlockremotely.htm

I have not used these myself, but they may help you.
 
Andy Werden
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Still looking for a way to force a heap dump

JVM (tomcat) is running behind a firewall; unable to get Jconsole to connect

Suggestions?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic