Hi Chuck,
2007/12/3, Caldarale, Charles R <[EMAIL PROTECTED]>:
> > From: Breno Jacinto [mailto:[EMAIL PROTECTED]
> > Subject: Re: Hundreds of Instances
> >
> > when does tomcat creates a new thread, and
> > when and how does it get deallocated?
>
> This is controlled by the maxThreads, maxSpareThreads, and
> minSpareThreads attributes of <Connector> elements:
> http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html
> http://tomcat.apache.org/tomcat-5.5-doc/config/http.html
>
> However, this may not be the "instances" Tomcat is talking about during
> termination. What is the exact message you're seeing? It may be
> related to the number of requests or servlets still active, which may
> indicate you have a webapp that gets stalled and won't finish
> processing. That could easily result in excessive memory consumption.
I hadn'd thought about it. But to get things right, here's is how
the server is behaving, right now.
SCJDS:/usr/local/tomcat/bin# free -m
total used free shared buffers cached
Mem: 1488 1456 31 0 6 18
-/+ buffers/cache: 1431 56
Swap: 2651 1041 1609
SCJDS:/usr/local/tomcat/bin#
I dont think it takes a long time until it everything starts
getting slow and unresponsive. More detailed information, I have the
complete status of the server, according to the Tomcat manager status
app: http://www.freeunix.com.br/tomcat/all-2007-12-04.html
There you can also see the JVM memory status. Even if Linux is
reporting lots of memory consumption, the JVM seems OK (71.54 MB
free, total 126.68 MB).
So, now, I stop the service:
SCJDS:~# /etc/init.d/tomcat stop
Here's what I get in the log:
INFO: Pausing Coyote HTTP/1.1 on http-8080
04/12/2007 12:48:48 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
.BdbXmlListener: Fechando ambiente
.EnvironmentInit:fechaContainer:LogAdminAcesso.dbxml
.EnvironmentInit:fechaContainer:Usuarios.dbxml
.EnvironmentInit:fechaContainer:MaquinasAdmin.dbxml
.EnvironmentInit:fechaContainer:BOs.dbxml
.EnvironmentInit:fechaContainer:ContadorSite.dbxml
.EnvironmentInit:fechaContainer:LogAdminAcao.dbxml
.EnvironmentInit:fechaContainer:ResponsaveisDelegacia.dbxml
.EnvironmentInit:fechaContainer:LogVitimaAcesso.dbxml
.EnvironmentInit:cleanup
.BdbXmlListener: Ambiente fechado
04/12/2007 12:49:15 org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 160 instance(s) to be deallocated
04/12/2007 12:49:17 org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 160 instance(s) to be deallocated
04/12/2007 12:49:18 org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 160 instance(s) to be deallocated
04/12/2007 12:49:18 org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
04/12/2007 12:49:19 org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
04/12/2007 12:49:20 org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
04/12/2007 12:49:36 org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
04/12/2007 12:49:36 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime
See, many instances. Now, my memory status:
SCJDS:~# free -m
total used free shared buffers cached
Mem: 1488 136 1352 0 11 50
-/+ buffers/cache: 75 1413
Swap: 2651 54 2596
SCJDS:~#
More than 1 GB free. The server status, after the restart:
http://www.freeunix.com.br/tomcat/all-2007-12-04-after-restart.html
This behaviour is pretty consistent, tomorrow I'll get the same
consumption and have to restart the server again.
I'll take a look at the servlets you mentioned, there are plenty of them.
best regards,
>
> - Chuck
>
--
--
:: Breno Jacinto ::
:: breno - at - gprt.ufpe.br ::
:: FingerPrint ::
2F15 8A61 F566 E442 8581
E3C0 EFF4 E202 74B7 7484
:: Persistir no difícil é a única maneira de torná-lo fácil algum dia. ::
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]