I have a Application running under Tomcat .
I want to profile this Application (VisualVM ----> CPU Sampler), as part of that when i launched VisualVM under java bin directory
I was seeing the following Message
Class sharing is enabled for this JVM" warning is shown in red box in Profiler tab
Under the below link , the following resolution is mentioned
https://visualvm.java.net/troubleshooting.html
Resolution: There is a known problem with dynamic attach which is used for profiling, it may cause target JVM to crash when class sharing is enabled. To start an application without class sharing, provide -Xshare:off argument to the java command starting the application.
Could anybody please let me know how to resolve this .