tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: problem on configure the java_option
Date Tue, 16 Dec 2008 14:44:16 GMT
> From: Piller S├ębastien [mailto:pills@hmcrecord.ch]
> Subject: Re: problem on configure the java_option
>
> you should add spaces between
> -XX:PermSize=64M -XX:MaxNewSize=256m -XX:MaxPermSize=256m

Definitely required.

> and the memory size must be, as far as i remember, a power
> of 2 (512M, 1024M, etc)

Not true, and never has been.  Don't spread rumors.

The main problem is a lack of quotes around the whole expression.  It should be:

export JAVA_OPTS="-server -Xms800m -Xmx800m -XX:PermSize=64M -XX:MaxNewSize=256m -XX:MaxPermSize=256m
-Djava.awt.headless=true"

I would strongly recommend NOT setting MaxNewSize, as that will likely force garbage collections
to occur more frequently than needed.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message