On Mon, Aug 30, 2004 at 08:37:24PM -0700, Sagara Wijetunga wrote:
: Since the servlet resides in the RAM once it is
: loaded, the memory consumption and possible abuse is
: my concern.

There's much more to memory in a Java webapp than just the servlets.
Read on:


: 1. Is it possible to run multiple Tomcat instances on
: the same machine?

Yes.  Please refer to the Tomcat docs on how to do this.


: 2. How much RAM (in roughly) is required for a single
: or additional Tomcat instance without any servlet
: loaded? Assume we use latest SUN Javasoft JVM and
: latest Tomcat. 

Try not to think of individual servlets; think of the webapp as a whole.
You must load-test and profile your app to see how much memory it will
use in a peak situation because no two webapps are the same.  (i.e.
there's no way someone who's never seen your app can give reliable
numbers.  It's all up to you.)


: 3. Once the RAM limit is specified to a particular
: Tomcat instance, what happens if they exceed the
: limit? Does it still continue to allocate RAM or does
: it give a run-time error?

This has more to do with the JVM than with Tomcat.  (Tomcat runs within
the JVM.)  You'd do well to read up on the specifics, but usually the
JVM will throw an OutOfMemoryException, in which case it's up to you to
repeat step 2 and profile/size.


: 4. Could you kindly explain (in very brief) where and
: how do I specify the RAM limit?

Please see the Tomcat docs, or review the archives.  This comes up a
*lot*.


: 5. What are the issues I should be aware of and keep
: in mind when having multiple Tomcat instances on the
: same server? 

The same considerations as with any other app: CPU and memory resources.
Disk space isn't an issue (webapps, not counting the logs, don't change
size at runtime) and it's a very, very rare event for a rogue JVM call
to take out other processes on the machine or cause a hard crash.

-QM

-- 

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