Viewing BMS processes in JVisualVM on Windows - IntegratedBreedingPlatform/Documentation GitHub Wiki

In order to run JVisualVm and view the BMS service on Windows you need to do the following.

  • Install JDK version JDK 1.7.0_72. Make sure it installed in a path that does not have spaces.
  • Create a setenv.bat file in the infrastructure/tomcat directory. The file should contain following:
REM This will be used if you start tomcat manually via the command line. This is useful in case you wish to
REM monitor the JVM using visual VM. Visual VM cannot monitor tomcat when started via a service due to permission issues.

REM Please set the correct path to your JDK installation. Make sure the JDK path does not have spaces in it.
REM set JAVA_HOME=C:\Java\jdk1.7.0_72
set "JAVA_OPTS=%JAVA_OPTS% -verbosegc -server -Xms12024m -Xmx12048m -XX:PermSize=256m -XX:MaxPermSize=512m"
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:%CATALINA_HOME%\webapps\ibpworkbench\WEB-INF\lib\spring-instrument-3.2.11.RELEASE.jar"
  • Now navigate to the BMS directory.
  • Run the following command. Note no traling slashes after tomcat. This causes and error when starting up tomcat.
set CATALINA_HOME=C:\BMS4\infrastructure\tomcat
.\infrastructure\tomcat\bin\startup.bat
  • Open up JVsiualVM from JAVA_HOME\bin\jvisualvm You should now be able to see tomcat.