aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Getting a heap dump Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Getting a heap dump" Watch "Getting a heap dump" New topic
Author

Getting a heap dump

Steve Gray
Greenhorn

Joined: Sep 10, 2008
Posts: 2
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???
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5842
    
    7

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)


JBoss In Action
Steve Gray
Greenhorn

Joined: Sep 10, 2008
Posts: 2
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting a heap dump