Hi,
I have the default server.conf file with :
<Connector port="8080" protocol="HTTP/1.1"
maxThreads="250"
connectionTimeout="20000"
redirectPort="8443" />
I do not have any Executor.
When I check the manager status in detail I see the threads with ? in front
and nothing else. The ones being used do have the data.
Just wondering is it normal to have that much open threads waiting?
And André I have 4 Gb for each of the servers.
Özgür Özdemircili
http://www.acikkod.org
Code so clean you could eat off it
On Mon, May 17, 2010 at 11:15 AM, Pid <[email protected]> wrote:
> On 17/05/2010 09:56, Ozgur Ozdemircili wrote:
> > Hi,
> >
> > -Rhel 5.3 x64
> >
> > -java version "1.6.0_16"
> > Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
> > Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)
> >
> > -Apache tomcat 6.0.26
> >
> > -Dual core Intel(R) Xeon(R) CPU E3110 @ 3.00GHz and 4 GB memory each.
>
> Each or 8Gb total?
>
> > On Mon, May 17, 2010 at 10:31 AM, Pid <[email protected]
> >
> > On 17/05/2010 09:25, Ozgur Ozdemircili wrote:
> > > Hi,
> > >
> > > I am having a lot of Java Heap OutOfMemory issues. The first
> > change I did
> > > was to add more memory to JVM:
> > >
> > > export CATALINA_OPTS="-XX:MaxPermSize=512m -Xms512m -Xmx2048m
> -server"
>
> Seems OK. We usually recommend -Xms and -Xmx being set to the same size
> so that the JVM doesn't have to keep resizing itself.
>
> > > Yet I have 2 questions
> > >
> > > - What are you real life configurations? In a very busy prod
> > environment
> > > what parameters do you use?
>
> The answer is entirely subjective. Unless we're running exactly the
> same application, our settings are meaningless to you.
>
> > > - Checking the Current and Busy threads I have Current at 145 and
> > Busy at 6,
> > > is this normal? Shouldn`t Tomcat close unused threads?
>
> Depends what the Threads are doing. If they are not Tomcat connector
> threads, then no. Do you have an Executor configured in server.xml?
>
> > > - After updating the server with "-XX:MaxPermSize=512m -Xms512m
> > -Xmx2048m
> > > -server" parameter although the Max mem should show 2048+512M it
> shows
> > > 1820.50 MB. Any ideas why?
>
> Because you specified a range between min and max that the heap can
> occupy, so the memory used is 512+(some resource stuff)+(a number
> between 512 and 2048).
>
>
> p
>
> > > Thank you for all the help.
> >
> > Please provide the exact OS, JVM and Tomcat versions you are using.
> >
> > Some clues about the server(s) architecture, memory available would
> also
> > be useful.
> >
> >
> > p
> >
> >
>
>
>