0 Replies Latest reply on Apr 6, 2010 1:37 AM by 843798

    Increase te application stack size to monitor with visualvm/jconsole

      Hi all, there is a thread test program to verify the maximum number of threads a java process is capable to run [1], see the complete project [2]

      This is the command line to run the test with 2700 concurrent threads
      java  -server -XX:+AlwaysTenure -XX:+UseConcMarkSweepGC -Xss48k -Xms2g -Xmx2g  -classpath build/WEB-INF/classes/:src/conf/:src/java/ br.com.claudius.threads.NumThreads   2700 2000 30 
      However to monitor with jconsole or visualvm, the application test crashes with the following exception
      *** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message transform method call failed at ../../../src/share/instrument/JPLISAgent.c line: 806
      Segmentation fault      
      Then I need to increase the thread stack size to 64 KB, then jconsole/visualvm works fine.

      jstat can monitor the application at 48 kb threads stack size.

      Can you any reason why the thread stack size needs to be increased to be monitored with the graphical tools ?

      1. http://code.google.com/p/claudius-alphaworks/source/browse/trunk/java_dev/thread-capacity/src/java/br/com/claudius/threads/NumThreads.java

      2. http://code.google.com/p/claudius-alphaworks/source/browse/#svn/trunk/java_dev/thread-capacity