Our setups are different, my point was that my setup is capable of addressing more RAM than you have (fewer Tomcat but more RAM), which leads me to believe your problems are OS limit related.
I wouldn't setup separate Tomcat instances unless you determined there was a need for it.
For my Tomcat user, here are the limits:
sh-2.05$ ulimit -a core file size (blocks) 0 data seg size (kbytes) unlimited file size (blocks) unlimited max locked memory (kbytes) unlimited max memory size (kbytes) unlimited open files 1024 pipe size (512 bytes) 8 stack size (kbytes) 8192 cpu time (seconds) unlimited max user processes 16384 virtual memory (kbytes) unlimited
That's RH 7.2, dual processor, 4 GB RAM.
John
Reynir H�bner wrote:
Hi John, Thanx for replying.
Yes I was looking for such a limit somewhere, but I could not find it. I thought max number of processes in linux redhat (7.2) was 1024, (I am only taking up about 250 processes in all).
You say you have 20 instances of tomcat, I have 36 hosts in one tomcat, so that's pretty different setup. Should I try setting up and run separate tomcat instances ?
I used the rpm setup, and I have tomcat config files in one directory and startup scripts in another... Does anyone know of good directions (websites) on how to do this on linux (I would know how to do it in windows).
Thanx -reynir
-----Original Message-----
From: John Turner [mailto:[EMAIL PROTECTED] Sent: 25. j�l� 2003 13:47
To: Tomcat Users List
Subject: Re: Memory problems
More likely you are hitting an OS limit, such as number of processes, number of open files, number of connections, etc.
I have 20 instances of Tomcat running on 4 GB of RAM, and about 800MB stays free.
John
Reynir H�bner wrote:
Hi,
I have a server that I am trying to deploy 36 webapplications to. The server is running redhat linux, with 2.5 gig ram and 4
XEON CPUs.
On start up it runs about 30 applications and at that time tomcat failes, with java.lang.OutOfMemoryException.
The top function shows many (192) java processes taking
about 500 mb of memory, but I have -Xmx1500m and -Xms1g in JAVA_OPTS, so obviously the server is not out of memory.
I don't know what is happening, as I have several servers
running similar amount of webapps on windows, with out problems.
Other things that run in this server are postgresql and apache (and really nothing else), so nothing is taking up the rest of
the memory.
We even tried to write a small java program that takes up
memory in a
loop, that worked fine, and could take up to 1500mb and
then run out of memory.
Am I looking at some kind of a limitation on tomcat (no more than specific amount of applications) or java (no more threads than some specific amount) ?
Please reply, -reynir
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
