Hi,

>i have a huge count of webapps (approximately 25) in my Tomcat here,

I wouldn't classify 25 as huge, but I suppose that's subjective.  We
have servers running that many webapps, but they're small webapps.

>Well, beneath the fact that my server has 2 gigabytes of ram, only 40MB
>are available after starting tomcat. So, tomcat allocates 1.96
gigabytes
>of ram.

You control the JVM; if it allocates 1.96GB it means you gave it -Xmx2G
*at least*.  Even if that's the case on purpose, you need to redesign
your deployment practice because leaving 40MB free on a 2GB server will
only lead to bad things.

>Question is: what is the maximum count of webapps, Tomcat is able to
>handle?

It's limited by your environment and requirements.  Tomcat imposes no
limit of its own.  I ran a load test a year or so ago with 100 webapps
deployed, and it worked (with good response times and CPU usage), but
the apps were small and the machine was massive.

>Or are there any other configuration hints?

Only the usual: think and apply performance testing principles.  There's
no magic switch or configuration.  In your case, you probably want to
split the apps into multiple Tomcat servers, and profile each app (or
small set of apps) separately to determine its hardware and memory
requirements.  Then figured out how you want to use your hardware and
configure as many instances of Tomcat as you need.

>- JDK1.4.2_06 and JRE1.4.2_05 (same effect on every Java version)

Those two versions are not that different ;)  It might be worth your
time to try J2SE 5.0, JRockit, or other JVMs.

>This is an absolut urgent issue! Please reply asap .. Thx a lot ....

Then you're SOL for now ;)  It's no fun doing capacity planning after
deployment, and there are no easy shortcuts ;(

Yoav Shapira http://www.yoavshapira.com




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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to