> Have you verified that at the time of the Out of Memory
> errors that the JVM is somewhere near 896M RAM? How about
> when it starts up and there is little or no traffic? Is it
> at or above (probably above) 384M?

It usually has 160 MB to 220 MB of memory allocated (these figures are from
top, so room for some error).  The system is under pretty heavy traffic when
it starts up.  I have maxProcessors set to 384 and minProcessors set to 50.

> Since you have free system RAM left, then it sounds like
> your 896M is too small for the load.

Problem is, if I increase -Xmx and don't touch anything else, I get this
OutOfMemoryError too.  The system has 1.2 GB to 1.4 GB of memory free when
this error occurs.

> Do you load balance Tomcats across machines? Or are you
> running all these users against one Tomcat?

Just one Tomcat and MySQL on the server.

Thanks,
Mike

-----Original Message-----
From: Ben Ricker [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 10:18 AM
To: [EMAIL PROTECTED]
Subject: RE: maxProcessors problem


On Tue, 2003-08-19 at 16:59, Mike Cherichetti (Renegade Internet) wrote:

Doh! My mistake...I am thinking of the variable name *I* use in a script
that passes this to CATALINA_OPTS. I am really sorry for that confusion.

Have you verified that at the time of the Out of Memory errors that the
JVM is somewhere near 896M RAM? How about when it starts up and there is
little or no traffic? Is it at or above (probably above) 384M?

Since you have free system RAM left, then it sounds like your 896M is
too small for the load. Do you load balance Tomcats across machines? Or
are you running all these users against one Tomcat? If  you could spell
out the setup in a bit more detail, I might be able to help you figure
it out and possibly how to fix it.

Ben Ricker
Wellinx, Inc.

> Are you saying that I should use JAVA_OPTS instead of CATALINA_OPTS?  I've
> set CATALINA_OPTS to use -Xmx896m and -Xms384m already.  Problem is, if I
> raise -Xmx or maxProcessors, I get the OutOfMemoryError and Tomcat stops
> creating request processors.
>
> Thanks,
> Mike
>
> -----Original Message-----
> From: Ben Ricker [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 19, 2003 11:18 AM
> To: Tomcat Users
> Subject: Re: maxProcessors problem
>
>
> On Mon, 2003-08-18 at 15:42, Mike Cherichetti (Renegade Internet) wrote:
>
>
>
> > java.lang.OutOfMemoryError: JVMCI015:OutOfMemoryError, cannot create
> anymore
> > threads due to memory or resource constraints
>
> There is the cheese right there. You need to WAY up your Java System
> memory heap using JAVA_OPTS. See this post on the archives:
> http://mikal.org/interests/java/tomcat/archive/view?mesg=53417. All the
> available options are in the Java docs.
>
> Ben Ricker
>
>
> >         at java.lang.Thread.start(Native Method)
> >         at
> >
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.<init>(ThreadPool.
> > java:582)
> >         at
> >
org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:460)
> >         at
> > org.apache.tomcat.util.threads.ThreadPool.runIt(ThreadPool.java:293)
> >         at
> >
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:536)
> >         at
> >
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> > a:619)
> >         at java.lang.Thread.run(Thread.java:568)
> >
> > Now, I know that the JVM has plenty of memory left that it can be
> allocated
> > and the system has plenty of free memory, so I'm not sure it's really a
> > memory issue.  As I said, Tomcat still runs and the memory allocated to
> the
> > JVM increases, it just doesn't have nearly enough request processors
> created
> > at the point this error happens to deal with all of the traffic.  I've
> tried
> > playing around with ulimit settings, but those didn't have any impact.
> I've
> > also tried the Sun JVM and it did the same thing.
> >
> > Has anyone run into this problem or something like it before?
> >
> > Any help would be greatly appreciated!
> >
> > Thanks,
> > Mike
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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]

Reply via email to