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.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.