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
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 ,
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.