This discussion is archived
0 Replies Latest reply: Apr 5, 2010 6:37 PM by 843798 RSS

Increase te application stack size to monitor with visualvm/jconsole

843798 Newbie
Currently Being Moderated
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/   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 ?