wood burning stoves 2.0*
The moose likes Java in General and the fly likes View the java heap at Runtime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "View the java heap at Runtime " Watch "View the java heap at Runtime " New topic
Author

View the java heap at Runtime

Arun Kumar
Ranch Hand

Joined: Jan 21, 2005
Posts: 129


Is there a view to analyse the java heap at runtime? with out creating teh heap dump files

We have run into a strange(?) issue,Our application is throwing OutOfMemeory error

JVMCI015
OutOfMemoryError, cannot create any more threads due to memory or resource constraints


with this error no Heap dump is created as the possible cause i s Either not enough resources are available to create a new threads, or the C-runtime heap of the process (not the Java object heap) is full.

This error dosent occur frequently happens once in two weeks or so , hence we need a tool to look into the Heap at that particular point ,

any suggestions or pointers please



Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

You can do this using any profiler tool, eg: JProfiler.
BTW, if you are running on JDK 6, then you can use JVM option -XX:+HeapDumpOnOutOfMemoryError for automatically storing the heap dump when an OOM occurs.


apigee, a better way to API!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: View the java heap at Runtime
 
Similar Threads
Analyse large heap dump file
Starting custom threads in Websphere Servlet Container
HeapDumpOnOutOfMemoryError
Java and Heap ADT
What is a Heap Memory?