Koshila Dissanayake wrote:Create a separate setenv.bat file in the bin folder and add the above configuration in it.
example configuration: set JAVA_OPTS=-Dfile.encoding=UTF-8 -Xms128m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=256m
THIS is the solution. It ensures that your JVM is consistently configured.
If you must do a temporary configuration override, consider
CATALINA_OPTS instead of
JAVA_OPTS. But you're better using
TOMCAT_HOME\bin\setenv.bat. or on Linux
TOMCAT_HOME/bin/catalina.sh.
Note that the
catalina.bat file is not supplied with Tomcat. You create your own from scratch. Don't know why they didn't supply a placeholder version.