i am trying to increase tomcat memory by adding JAVA_OPTS in catalina.bat as follows:
rem TITLE (Optional) Specify the title of Tomcat window. The default
rem TITLE is Tomcat if it's not specified.
rem Example (all one line)
rem set TITLE=Tomcat.Cluster#1.Server#1 [%DATE% %TIME%]
rem
rem
rem
rem $Id: catalina.bat 1146096 2011-07-13 15:20:43Z markt $
rem ---------------------------------------------------------------------------
JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8
-server -Xms1536m -Xmx1536m
-XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m
-XX:MaxPermSize=512m -XX:+DisableExplicitGC
-XX:UseConcMarkSweepGC
-XX:CMSPermGenSweepingEnabled
-XX:CMSClassUnloadingEnabled"
but i am getting following errors in CMD when running the startup or shutdown scripts:
'JAVA_OPTS' is not recognized as an internal or external command,
operable program or batch file.
'-server' is not recognized as an internal or external command,
operable program or batch file.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
please advise why i am getting them.
Try:
set JAVA_OPTS=-Djava.awt.headless=true -Dfile.encoding=UTF-8 ^
-server -Xms1536m -Xmx1536m ^
-XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m ^
-XX:MaxPermSize=512m -XX:+DisableExplicitGC ^
-XX:+UseConcMarkSweepGC ^
-XX:+CMSClassUnloadingEnabled
set
command to set an environment variable.^
(caret) at the end of each line.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With