On May 20, 2013, at 2:10 PM, James Snider wrote:

> Our application was working prior to the detection being added.  Is there a 
> way to turn of the detection and keep our applications running? 
> 
> We may have been having this memory leak issue previously but it wasn't 
> causing this random service stoppage.

The message in question occurs when your application is being stopped.  This 
would occur if you undeployed the application or if you stopped your Tomcat 
server.  It wouldn't occur when you start Tomcat or deploy an application 
unless that application failed to deploy properly for some other reason.  In 
that case, you'd see the application deploy, some failure, the application 
would be stopped and then you'd see the message about the AWT-Windows thread.

Do you see any other errors in the logs?  Perhaps in the 
localhost.YYYY-MM-DD.log file?

Dan


> 
> 
> 
> -----Original Message-----
> From: Daniel Mikusa [mailto:dmik...@gopivotal.com] 
> Sent: Monday, May 20, 2013 2:05 PM
> To: Tomcat Users List
> Subject: Re: Apache Tomcat service has been shutting down/stopping randomly.
> 
> 
> On May 20, 2013, at 1:47 PM, James Snider wrote:
> 
>> Dan/Konstantine,
>> 
>> Our web application was fine until the Tomcat 7 installation. So this make 
>> no sense to us that we would look at our application as the issue.
> 
> Your application has very likely been doing this all along.
> 
>> Can you please explain wjhy this would be occurring now and not in the past 
>> in more detail.
> 
> It's just that Tomcat was never telling you before.  Starting with Tomcat 
> 6.0.24, code to perform memory leak detections was added.  See this link for 
> more information.
> 
>  https://wiki.apache.org/tomcat/MemoryLeakProtection
> 
> Dan
> 
>> 
>> 
>> -----Original Message-----
>> From: Daniel Mikusa [mailto:dmik...@gopivotal.com]
>> Sent: Monday, May 20, 2013 12:51 PM
>> To: Tomcat Users List
>> Subject: Re: Apache Tomcat service has been shutting down/stopping randomly.
>> Importance: High
>> 
>> On May 20, 2013, at 10:51 AM, James Snider wrote:
>> 
>>> Please see below the tomcat7-stderr.2013-05-20.log regarding the memory 
>>> leak.
>> 
>> <snip>
>> 
>>> May 20, 2013 9:52:51 AM org.apache.catalina.loader.WebappClassLoader
>>> clearReferencesThreads
>>> SEVERE: The web application [] appears to have started a thread named 
>>> [AWT-Windows] but has failed to stop it. This is very likely to create a 
>>> memory leak.
>> 
>> This indicates that your application started a thread, but did not stop it.  
>> Any threads started by your application should be stopped by your 
>> application.  This includes threads started by a third party library used by 
>> your application.
>> 
>> This particular thread, "AWT-Windows" has been discussed on the list before. 
>>  Checkout this thread for a possible solution.
>> 
>> http://markmail.org/message/r6p7jp4eclcx5ma3
>> 
>> Dan
>> 
>> PS.  Start a new email thread for new questions, instead of replying to the 
>> same email with multiple questions.
>> 
>>> May 20, 2013 9:52:51 AM org.apache.coyote.AbstractProtocol stop
>>> INFO: Stopping ProtocolHandler ["http-apr-80"] May 20, 2013 9:52:51 
>>> AM org.apache.coyote.AbstractProtocol stop
>>> INFO: Stopping ProtocolHandler ["http-apr-443"] May 20, 2013 9:52:51 
>>> AM org.apache.coyote.AbstractProtocol stop
>>> INFO: Stopping ProtocolHandler ["ajp-apr-8009"]
>>> 
>>> 2013-05-20 09:52:57 Commons Daemon procrun stderr initialized
>>> 
>>> 2013-05-20 09:53:07 Commons Daemon procrun stderr initialized
>>> 
>>> 2013-05-20 09:54:13 Commons Daemon procrun stderr initialized
>>> 
>>> 2013-05-20 09:55:44 Commons Daemon procrun stderr initialized May 20,
>>> 2013 9:55:48 AM org.apache.catalina.core.AprLifecycleListener init
>>> INFO: Loaded APR based Apache Tomcat Native library 1.1.27 using APR 
>>> version 1.4.6.
>>> May 20, 2013 9:55:48 AM org.apache.catalina.core.AprLifecycleListener
>>> init
>>> INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters 
>>> [false], random [true].
>>> May 20, 2013 9:55:48 AM org.apache.catalina.core.AprLifecycleListener
>>> initializeSSL
>>> INFO: OpenSSL successfully initialized (OpenSSL 1.0.1d 5 Feb 2013) 
>>> May 20, 2013 9:55:49 AM org.apache.coyote.AbstractProtocol init
>>> INFO: Initializing ProtocolHandler ["http-apr-80"] May 20, 2013
>>> 9:55:49 AM org.apache.coyote.AbstractProtocol init
>>> INFO: Initializing ProtocolHandler ["http-apr-443"] May 20, 2013
>>> 9:55:49 AM org.apache.coyote.AbstractProtocol init
>>> INFO: Initializing ProtocolHandler ["ajp-apr-8009"] May 20, 2013
>>> 9:55:49 AM org.apache.catalina.startup.Catalina load
>>> INFO: Initialization processed in 2130 ms May 20, 2013 9:55:49 AM 
>>> org.apache.catalina.core.StandardService startInternal
>>> INFO: Starting service Catalina
>>> May 20, 2013 9:55:49 AM org.apache.catalina.core.StandardEngine
>>> startInternal
>>> INFO: Starting Servlet Engine: Apache Tomcat/7.0.40 May 20, 2013
>>> 9:55:49 AM org.apache.catalina.startup.HostConfig deployDirectory
>>> INFO: Deploying web application directory C:\Program Files\Apache 
>>> Software Foundation\Tomcat 5.5\webapps\docs May 20, 2013 9:55:50 AM 
>>> org.apache.catalina.util.SessionIdGenerator createSecureRandom
>>> INFO: Creation of SecureRandom instance for session ID generation using 
>>> [SHA1PRNG] took [109] milliseconds.
>>> May 20, 2013 9:55:50 AM org.apache.catalina.startup.HostConfig
>>> deployDirectory
>>> INFO: Deploying web application directory C:\Program Files\Apache 
>>> Software Foundation\Tomcat 5.5\webapps\ROOT May 20, 2013 9:55:50 AM 
>>> org.apache.catalina.startup.HostConfig deployDirectory
>>> INFO: Deploying web application directory C:\Program Files\Apache 
>>> Software Foundation\Tomcat 5.5\webapps\ROOT.initial_install May 20,
>>> 2013 9:55:50 AM org.apache.coyote.AbstractProtocol start
>>> INFO: Starting ProtocolHandler ["http-apr-80"] May 20, 2013 9:55:50 
>>> AM org.apache.coyote.AbstractProtocol start
>>> INFO: Starting ProtocolHandler ["http-apr-443"] May 20, 2013 9:55:50 
>>> AM org.apache.coyote.AbstractProtocol start
>>> INFO: Starting ProtocolHandler ["ajp-apr-8009"] May 20, 2013 9:55:50 
>>> AM org.apache.catalina.startup.Catalina start
>>> INFO: Server startup in 886 ms
>>> May 20, 2013 9:59:00 AM org.apache.catalina.startup.HostConfig
>>> deployDirectory
>>> INFO: Deploying web application directory C:\Program Files\Apache 
>>> Software Foundation\Tomcat 5.5\webapps\dev
>>> 
>>> 2013-05-20 10:13:04 Commons Daemon procrun stderr initialized May 20,
>>> 2013 10:13:05 AM org.apache.catalina.core.AprLifecycleListener init
>>> INFO: Loaded APR based Apache Tomcat Native library 1.1.27 using APR 
>>> version 1.4.6.
>>> May 20, 2013 10:13:05 AM 
>>> org.apache.catalina.core.AprLifecycleListener
>>> init
>>> INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters 
>>> [false], random [true].
>>> May 20, 2013 10:13:05 AM 
>>> org.apache.catalina.core.AprLifecycleListener
>>> initializeSSL
>>> INFO: OpenSSL successfully initialized (OpenSSL 1.0.1d 5 Feb 2013) 
>>> May 20, 2013 10:13:05 AM org.apache.coyote.AbstractProtocol init
>>> INFO: Initializing ProtocolHandler ["http-apr-80"] May 20, 2013
>>> 10:13:05 AM org.apache.coyote.AbstractProtocol init
>>> INFO: Initializing ProtocolHandler ["http-apr-443"] May 20, 2013
>>> 10:13:05 AM org.apache.coyote.AbstractProtocol init
>>> INFO: Initializing ProtocolHandler ["ajp-apr-8009"] May 20, 2013
>>> 10:13:05 AM org.apache.catalina.startup.Catalina load
>>> INFO: Initialization processed in 717 ms May 20, 2013 10:13:05 AM 
>>> org.apache.catalina.core.StandardService startInternal
>>> INFO: Starting service Catalina
>>> May 20, 2013 10:13:05 AM org.apache.catalina.core.StandardEngine
>>> startInternal
>>> INFO: Starting Servlet Engine: Apache Tomcat/7.0.40 May 20, 2013
>>> 10:13:05 AM org.apache.catalina.startup.HostConfig deployDirectory
>>> INFO: Deploying web application directory C:\Program Files\Apache 
>>> Software Foundation\Tomcat 5.5\webapps\dev May 20, 2013 10:13:05 AM 
>>> org.apache.catalina.startup.HostConfig deployDirectory
>>> INFO: Deploying web application directory C:\Program Files\Apache 
>>> Software Foundation\Tomcat 5.5\webapps\docs May 20, 2013 10:13:05 AM 
>>> org.apache.catalina.startup.HostConfig deployDirectory
>>> INFO: Deploying web application directory C:\Program Files\Apache 
>>> Software Foundation\Tomcat 5.5\webapps\ROOT May 20, 2013 10:13:05 AM 
>>> org.apache.catalina.startup.HostConfig deployDirectory
>>> INFO: Deploying web application directory C:\Program Files\Apache 
>>> Software Foundation\Tomcat 5.5\webapps\ROOT.initial_install May 20,
>>> 2013 10:13:06 AM org.apache.coyote.AbstractProtocol start
>>> INFO: Starting ProtocolHandler ["http-apr-80"] May 20, 2013 10:13:06 
>>> AM org.apache.coyote.AbstractProtocol start
>>> INFO: Starting ProtocolHandler ["http-apr-443"] May 20, 2013 10:13:06 
>>> AM org.apache.coyote.AbstractProtocol start
>>> INFO: Starting ProtocolHandler ["ajp-apr-8009"] May 20, 2013 10:13:06 
>>> AM org.apache.catalina.startup.Catalina start
>>> INFO: Server startup in 654 ms
>       ------------------  CONFIDENTIALITY NOTICE  ---------------
> 
>  This message, including any attachments, is for the sole use of the
> intended recipient(s) and may contain privileged confidential information
> protected by law. Any unauthorized review, use, disclosure or distribution
> of this message is prohibited. If you are not the intended recipient, please
> contact the sender by reply e-mail and destroy all copies of this message.
> 
>       ------------------  CONFIDENTIALITY NOTICE  ---------------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to