Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

View the java heap at Runtime

 
Arun Kumar
Ranch Hand
Posts: 133
Chrome Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic