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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -