tomcat - How to provide the arguement -Xshare:off to the java command starting the application -



tomcat - How to provide the arguement -Xshare:off to the java command starting the application -

i have application running under tomcat .

i want profile application (visualvm ----> cpu sampler), part of when launched visualvm under java bin directory

i seeing next message

class sharing enabled jvm" warning shown in reddish box in profiler tab

under below link , next resolution mentioned

https://visualvm.java.net/troubleshooting.html

resolution: there known problem dynamic attach used profiling, may cause target jvm crash when class sharing enabled. start application without class sharing, provide -xshare:off argument java command starting application.

could please allow me know how resolve .

$ export catalina_opts="-xshare:off" $ $catalina_home/bin/catalina.sh start

if using microsoft windows service, run catalina_home/bin/tomcatxw.exe (where x tomcat version) , edit launcher arguments include -xshare:off.

tomcat visualvm

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -