tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piller Sébastien <pi...@hmcrecord.ch>
Subject Re: problem on configure the java_option
Date Tue, 16 Dec 2008 13:00:21 GMT
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)

user080701@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: 
>
> [root@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message