Tomcat7: setenv.bat to set memory and enable debugging

You can create a file "setenv.bat" (windows) for Tomcat 7 to pickup on startup to configure memory size and enable debugging etc. File path should be Tomcat7_installation_dir/bin/setenv.bat

 

Its content is like:

 

set CATALINA_OPTS=-Xms1024M -Xmx2048m -XX:MaxPermSize=1024m -agentlib:jdwp=transport=dt_shmem,server=y,suspend=n,address=tomcat_shared_memory_id

 

 

你可能感兴趣的:(tomcat7)