Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to use JVisualVM profiling for Tomcat7 running as a service on Windows7
    primarykey
    data
    text
    <p>I'm trying to profile a Servlet running in Apache Tomcat (7.0.34) as a service on Windows 7 (64 bit) using JVisualVM (JDK 1.7.0 - 06, 64 bit) running locally.</p> <p>Initially I had the problem of Tomcat not showing in the list of local applications due to the differing "java.io.tmp" property bug/feature, but worked around it as advised in several posts in this forum.</p> <p>However although the Tomcat process now shows in the list of local applications as "Local Application", when I open the process there are no tabs for Monitor, Threads, Sampler or Profile - only the Overview tab for which the JVM arguments and Sytem Properties sub-tabs show the dreaded "not supported for this jvm" message.</p> <p>I have double checked the following items:</p> <ul> <li>that both Tomcat and JVisualVM are running the same version of Java by looking at the JVM properties in JVisualVM (using a JMX connection for Tomcat)</li> <li>that both Tomcat and JVisualVM have the same "java.io.tmp" path by looking at the System Properties in JVisualVM (again using a JMX connection for Tomcat) AND looking at the actual TMP/TEMP directory and confirming that the PID files for both exist</li> <li>that the file system is NTFS</li> <li>that the Windows user does not have an underscore in the name (Note: the user does have a period in the name as we are using network logins of the form "firstname.lastname", however I have no problems viewing other Java applications in JVisualVM so don't think this is an issue)</li> <li>that both Tomcat and JVisualVM are being executed as the same Windows user by looking at the processes in Task Manager</li> </ul> <p>A couple of final points:</p> <ul> <li>I need to <strong>Profile</strong> the Servlet so using JMX is not sufficient</li> <li>I was able to profile on a Windows XP machine (Java 7, Tomcat 7 as a service), so would appear to be a Windows 7 / 64 bit thing?</li> </ul> <p>If anyone has had and solved this issue obviously the solution would be much appreciated. However would be useful to just know if other people are running the same configuration - Windows 7 64 bit, Java 7 64 bit, Tomcat 7 running as a service - <strong>successfully</strong>.</p> <p><strong>Update:</strong> Instead of running as a service, I ran Tomcat using the batch file and all worked perfectly: what is it about running as a service?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload