java - Unable to use VisualVM profiler with Maven Jetty plugin -


i'm attempting profile java 7 application executed using mvn jetty:run visualvm 1.3.6. cpu shows unavailable, , profile tab lists following error:

warning! class sharing enabled jvm. can cause problems when profiling application , may crash it. please see visualvm troubleshooting guide more information , steps fix problem: https://visualvm.java.net/troubleshooting.html#xshare. 

i able profile other application normally.

the visualvm log shows following error number of times:

java.io.ioexception: unable open socket file: target process not responding or hotspot vm not loaded 

potentially relevant details:
- osx 10.8.3
- both app , visualvm running under jdk 1.7u25

i can presume downvotes related fact there documented bug related issue advice set xshare:off, i'll include this link bug report, lists fixed after 1.6u6. running 1.7u25, not apply me.

for mac try passing these vm args: -xverify:none -xshare:off

if you're working jconsole , other jmx tools include:

-xcom.sun.management.jmxremote

found via: http://brian.pontarelli.com/2009/10/21/fixing-java-tools-on-snow-leopard/


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -