Friday, 8 March 2013

Enable JConsole for tomcat

To enable the java console for tomcat use the following procedure (this is for windows): 

1. start the tomcat configuration tool (tomcat7w.exe or tomcat6w.exe) which is located in {install path}/bin 

2. On the Java tab add in the following lines to the textarea labelled Java Options 

customising the port to that to be targetted by the console

3. click the 'Apply' button 

4. restart tomcat 

5. start jconsole from teh command line using: java jconsole targeting localhost:9090