tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: allocate more memory
Date Thu, 09 Oct 2003 19:17:47 GMT

Howdy,
No, what you did is not what I meant.  The ONLY modification you should make to catalina.sh
is to add a line like
JAVA_OPTS='-server -Xms16m -Xmx512m'
to the file before the first rem.  Don't modify anything under the rem line.

As for the 4m stack: -Xss is the correct and only way to set this parameter.  My question
is why are you setting it at all?  A 4mb stack is unconventional to say the least and you
should benchmark your app under heavy load with and without this setting to make sure you're
not using excessive memory.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Kleber [mailto:kvieira@f2b.com.br]
>Sent: Thursday, October 09, 2003 3:13 PM
>To: Tomcat Users List
>Subject: Re: allocate more memory
>
>Thanks...
>
>Could you see if what I had done in the code below is correct? It starts
>normally the Tomcat, however, I'd like to know if it really allocates more
>memory. How can I see this?
>
>It related with your question about the -Xss4m, could you indicate me
>another value that I can use for set java thread stack size?
>
>rem Execute Java with the applicable properties
>if not "%JPDA%" == "" goto doJpda
>if not "%SECURITY_POLICY_FILE%" == "" goto doSecurity
>%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS%
>%DEBUG_OPTS% -Xms16m -Xmx512m -Xss4m -Dfile.encoding=iso-8859-1 -
>Djava.endor
>sed.dirs="%JAVA_ENDORSED_DIRS%" -classpath
>"%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -
>Dcatalina.home="%CATALINA_H
>OME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS%
>%ACTION%
>goto end
>:doSecurity
>%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS%
>%DEBUG_OPTS% -Xms16m -Xmx512m -Xss4m -Dfile.encoding=iso-8859-1 -
>Djava.endor
>sed.dirs="%JAVA_ENDORSED_DIRS%" -classpath
>"%CLASSPATH%" -Djava.security.manager -
>Djava.security.policy=="%SECURITY_POL
>ICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -
>Dcatalina.home="%CATALINA_HOME
>%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS%
>%ACTION%
>goto end
>:doJpda
>if not "%SECURITY_POLICY_FILE%" == "" goto doSecurityJpda
>%_EXECJAVA% %JAVA_OPTS%
>%CATALINA_OPTS% -Xms16m -Xmx512m -Xss4m -Dfile.encoding=iso-8859-1 -Xdebug
>-
>Xrunjdwp:transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend
>=
>n %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath
>"%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -
>Dcatalina.home="%CATALINA_H
>OME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS%
>%ACTION%
>goto end
>:doSecurityJpda
>%_EXECJAVA% %JAVA_OPTS%
>%CATALINA_OPTS% -Xms16m -Xmx512m -Xss4m -Dfile.encoding=iso-8859-1 -
>Xrunjdwp
>:transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=n
>%DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath
>"%CLASSPATH%" -Djava.security.manager -
>Djava.security.policy=="%SECURITY_POL
>ICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -
>Dcatalina.home="%CATALINA_HOME
>%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS%
>%ACTION%
>goto end
>
>[]´s
>Kleber
>
>----- Original Message -----
>From: "Shapira, Yoav" <Yoav.Shapira@mpi.com>
>To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>Sent: Thursday, October 09, 2003 3:13 PM
>Subject: RE: allocate more memory
>
>
>
>Howdy,
>Modify JAVA_OPTS in $CATALINA_HOME/bin/catalina.sh.
>
>As an aside, why -Xss4m???
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-----Original Message-----
>>From: Kleber [mailto:kvieira@f2b.com.br]
>>Sent: Thursday, October 09, 2003 2:12 PM
>>To: tomcat-user@jakarta.apache.org
>>Subject: allocate more memory
>>
>>Hello,
>>
>>As I was using Orion server, I used to start it with some parameters to
>>allocate more memory and to define the encoding, like this:
>>
>>\java\jdk1.3.1_01\jre\bin\java.exe -server -Xms16m -Xmx512m -Xss4m -jar
>-
>>Dfile.encoding=iso-8859-1 -Djdbc.connection.debug=true orion.jar
>>
>>How can I use it at Tomcat, too?
>>Can I do it at startup.bat or at catalina.bat??
>>And finally, how can I check this?
>>
>>Kleber
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary and/or privileged.  This e-mail is intended only for the
>individual(s) to whom it is addressed, and may not be saved, copied,
>printed, disclosed or used by anyone else.  If you are not the(an) intended
>recipient, please immediately delete this e-mail from your computer system
>and notify the sender.  Thank you.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


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


Mime
View raw message