you should add spaces between
-XX:PermSize=64M -XX:MaxNewSize=256m -XX:MaxPermSize=256m
and the memory size must be, as far as i remember, a power of 2 (512M,
1024M, etc)
user080...@hotmail.com a écrit :
Hi,
I want to set some option for my tomcat and I added the following line:
export JAVA_OPTS=-server -Xms800m -Xmx800m
-XX:PermSize=64M-XX:MaxNewSize=256m-XX:MaxPermSize=256m -Djava.awt.headless=true
However, when I startup the tomcat, it throws the following error:
[r...@ebusiness ~]# /opt/tomcat/bin/startup.sh
/opt/tomcat/bin/startup.sh: line 26: export: `-Xms800m': not a valid identifier
/opt/tomcat/bin/startup.sh: line 26: export: `-Xmx800m': not a valid identifier
/opt/tomcat/bin/startup.sh: line 26: export:
`-XX:PermSize=64M-XX:MaxNewSize=256m-XX:MaxPermSize=256m': not a valid
identifier
/opt/tomcat/bin/startup.sh: line 26: export: `-Djava.awt.headless=true': not a
valid identifier
Why?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org