• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Getting a heap dump

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using Eclipse 3.3.2 and Weblogic 8.1 sp6 on my Windows box and am trying to do some profiling of our application to track down some memory leaks. I am using MAT and it relies on heap dumps for its profiling. I can have set up the vm args as follows:
-XX:+HeapDumpOnOutOfMemoryError -XX:+HeapDumpOnCtrlBreak

I get Heap dumps when I run out of memory but have not been able to figure out how to get the CTRLBREAK memory dumps.

How exactly do I execute a ctrl break???
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you running WebLogic from a command prompt? If so, in that same command prompt Window type CTRL-BREAK. If you are running WebLogic as a service, you will need a tool to send a SIGINT signal to the JVM. One such tool is SendSignal

But if all that you want is a heap dump, you can use the jmap utility that comes with JDK 6 to do that. (jmap also comes with JDK 5 on Linux, but not on Windows)
 
Steve Gray
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Peter Johnson:
Are you running WebLogic from a command prompt? If so, in that same command prompt Window type CTRL-BREAK. If you are running WebLogic as a service, you will need a tool to send a SIGINT signal to the JVM. One such tool is SendSignal

But if all that you want is a heap dump, you can use the jmap utility that comes with JDK 6 to do that. (jmap also comes with JDK 5 on Linux, but not on Windows)



Peter,
I am running Weblogic as a server from within Eclipse so I will need to sendSignal tool you mention.
 
sunglasses are a type of coolness prosthetic. Check out the sunglasses on this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic