On Wed, May 19, 2004 at 04:31:56PM -0400, Tom Miller wrote:
: What is the recommended or best to define the following 
: parameter for tomcat under Linux?  I see so many other mem 
: posting out there, what is the best/right way to go about 
: this?

There's no recommended value... not even a ballpark.

In the memory tuning equation, you have:

1/ your OS and other programs running on the machine
2/ the JVM
3/ Tomcat itself, which runs inside the JVM
4/ your app, which runs inside of Tomcat

#1 is fairly predictable, so we'll say that's a known value.
It determines the max amount of mem you can hand to Java.

#2 and #3 use up memory for their own purposes, but let's not worry
about those right now.  (This is an oversimplified picture, but please
bear with me.)  I say that because...

#4 is unknown to anyone but you, and you know it only after you've
profiled the code and load-tested it.

There are too many variables inside #4 (size and number of sessions, DB
connections, any backend logic, and so on).  All of those variables
affect GC, which could cause an app to occasionally freeze while
unclaimed objects are being cleaned up.

#4 is the main reason, when this question pops up, people say that it's
not possible to suggest numbers with any certainty.  It's a very
individual experience.



: This is what I have and it doesn't seem to work well.  
: CATALINA_OPTS="$CATALINA_OPTS -server -Xms1152M -Xmx1536M -
: Xincgc"

I usually set the variable $JAVA_OPTS in the current environment, then
run the Tomcat start script.

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to