tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynir Hübner <rey...@hugsmidjan.is>
Subject RE: Memory problems
Date Fri, 25 Jul 2003 19:22:43 GMT
Hi, 
Well we made a workaround for this by setting up multiple instances of tomcat. 

Thanx for the info, it was helpful. 
-reynir


> -----Original Message-----
> From: John Turner [mailto:tomcat-user@johnturner.com] 
> Sent: 25. júlí 2003 14:15
> To: Tomcat Users List
> Subject: Re: Memory problems
> 
> 
> 
> 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:tomcat-user@johnturner.com]
> >>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: tomcat-user-unsubscribe@jakarta.apache.org
> >>>For additional commands, e-mail: 
> tomcat-user-help@jakarta.apache.org
> >>>
> >>
> >>
> >>
> >>------------------------------------------------------------
> ---------
> >>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >>
> >>
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
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