X-Account-Key: account1
X-UIDL: 00007e82509d7687
X-Mozilla-Status: 0011
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:                                                                                 
Return-Path: <user-return-143426-vilmar=informal.com.br@grails.codehaus.org>
Delivered-To: <vilmar@informal.com.br>
Received: from rot02c2.mail.alog.com.br ([10.10.11.22])
	by betoneira01.mail.alog.com.br (Dovecot) with LMTP id WVa/CkTuJlKUJAAA5uzd3A
	for <vilmar@informal.com.br>; Wed, 04 Sep 2013 08:30:47 +0000
Received: from localhost (localhost.localdomain [127.0.0.1])
	by rot02c2.mail.alog.com.br (LSOS-MTA) with ESMTP id 3cVJBv3QMqz73NP
	for <vilmar@informal.com.br>; Wed,  4 Sep 2013 08:30:47 +0000 (UTC)
X-Virus-Scanned: Scanned by LSOS-Amavis at rot02c2
X-Spam-Flag: NO
X-Spam-Score: -1.468
X-Spam-Level:
X-Spam-Status: No, score=-1.468 tagged_above=-999 required=5
	tests=[BOTNET_SOHO=1, DKIM_ADSP_CUSTOM_MED=0.001, DKIM_SIGNED=0.1,
	FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-2.581,
	T_DKIM_INVALID=0.01] autolearn=disabled
X-Spam-Threshold: 5.0
X-Spam-Scanned-Date: Wed, 04 Sep 2013 08:30:47 +0000
X-Spam-Host: rot02c2.mail.alog.com.br
X-Spam-System: LSOS-SA
X-Spam-LSOS-Flag: NO
X-Spam-Relay-Country: XX
X-Spam-Languages: en
X-Spam-ASN: AS1610 199.193.192.0/23
X-Spam-DCC:  
X-Spam-Pyzor: Reported 0 times.
X-Spam-RBLs: <dns:grails.codehaus.org?type=MX> [0 mail-new.codehaus.org.]
	<dns:grails.codehaus.org> [199.193.192.103]
X-Spam-Detail: 
	*  0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
	*      (robertoschwald[at]googlemail.com)
	*  0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
	*      CUSTOM_MED
	* -2.6 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain
	*  1.0 BOTNET_SOHO Relay might be a SOHO mail server
	*      [botnet_soho,ip=199.193.192.103,maildomain=grails.codehaus.org,helo=mail.codehaus.org]
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
Authentication-Results: rot02c2.mail.alog.com.br (LSOS-Amavis);
	dkim=fail (2048-bit key) reason="fail (body has been altered)"
	header.d=googlemail.com
Received: from rot02c2.mail.alog.com.br ([127.0.0.1])
	by localhost (rot02c2.mail.alog.com.br [127.0.0.1]) (LSOS-Amavis, port 10024)
	with ESMTP id QdmNZ-PIzHCi for <vilmar@informal.com.br>;
	Wed,  4 Sep 2013 08:30:45 +0000 (UTC)
Received-SPF: none (grails.codehaus.org: No applicable sender policy available) receiver=rot02c2.mail.alog.com.br; identity=mailfrom; envelope-from="user-return-143426-vilmar=informal.com.br@grails.codehaus.org"; helo=mail.codehaus.org; client-ip=199.193.192.103
X-WhiteBlackList-Status: undef
Received: from mail.codehaus.org (mail-new.codehaus.org [199.193.192.103])
	by rot02c2.mail.alog.com.br (LSOS-MTA) with ESMTPS id 3cVJBr4W80z73cx
	for <vilmar@informal.com.br>; Wed,  4 Sep 2013 08:30:43 +0000 (UTC)
Received: (qmail 30343 invoked by uid 89); 4 Sep 2013 08:29:24 -0000
Mailing-List: contact user-help@grails.codehaus.org; run by ezmlm
Precedence: bulk
List-Post: <http://xircles.codehaus.org/manage_email>
List-Help: <http://xircles.codehaus.org/manage_email>
List-Unsubscribe: <http://xircles.codehaus.org/manage_email>
List-Subscribe: <http://xircles.codehaus.org/manage_email>
List-Id: <user.grails.codehaus.org>
Reply-to: user@grails.codehaus.org
Delivered-To: mailing list user@grails.codehaus.org
Received: (qmail 30336 invoked by uid 89); 4 Sep 2013 08:29:24 -0000
Received-SPF: pass (63-246-24-167.contegix.com: SPF record at _netblocks.google.com designates 209.85.214.50 as permitted sender)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlemail.com; s=20120113;
        h=from:content-type:message-id:mime-version:subject:date:references
         :to:in-reply-to;
        bh=+yrT34fhhHJX55IODN3Lk/xed48toozzxMXtznl9YEs=;
        b=HIlgpXYnyQvrAGMtiuBU2GT0mJLI0jlg8YFw6yjWWB1ibisEmmBog0hdph1YsbBkjH
         xl4iLIbaf8WLmgE6ERt8iw4SExnZ2lCW1ZiBmc8M4YnxHHlyxAOdQgiG0nL9lGTiDJ1B
         eI7SQ9Rp45Ygywg+Vx1YiP/qDr+Nv9W13Ue84TN+QWKFTS9FrJVil+A/X/+sTuepuEGl
         1yOgflz6THqjCyrxDnkZB8eT/VbMozt9XQcLM6PsVbZGJrjPEThRdT7lMr51SzipAqk9
         GgtHZryTnKpNgSJr1I3Qkb6ll3NtrMW+cxXONwWaZVM4KqUaEM5dn1k/IM5NLkIkEcy/
         CK2g==
X-Received: by 10.204.62.70 with SMTP id w6mr373608bkh.43.1378283363297;
        Wed, 04 Sep 2013 01:29:23 -0700 (PDT)
From: Robert Oschwald <robertoschwald@googlemail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_707E2E15-2BE9-4896-9507-984861D6ED89"
Message-Id: <3F06AF8C-4197-4526-B6D9-207FEF20FB2E@googlemail.com>
Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\))
Date: Wed, 4 Sep 2013 10:29:22 +0200
References: <CABk8At+ydBCq_RnqOn_HzQEON1kLVj7VJe89yh0vHy8oS9gMTw@mail.gmail.com>
To: user@grails.codehaus.org
In-Reply-To: <CABk8At+ydBCq_RnqOn_HzQEON1kLVj7VJe89yh0vHy8oS9gMTw@mail.gmail.com>
X-Mailer: Apple Mail (2.1508)
Subject: Re: [grails-user] events-push/atmosphere eating all the Tomcat threads

--Apple-Mail=_707E2E15-2BE9-4896-9507-984861D6ED89
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1

Are you using Apache HTTPD in front of Tomcat connected by mod_jk?
if yes, check the threads using tomcat manager.
If the threads are in keepalive state, you might need to set =
keepaliveTimeout oin the AJP 1.3 Tomcat connector to get rid of old =
threads.


Am 11.01.2013 um 15:00 schrieb Aaron Long <longwa@gmail.com>:

> We are testing with the push plugin and keep having a problem where =
all of the Tomcat threads end up in this state:
>=20
> "http-bio-8080-exec-244" daemon prio=3D10 tid=3D0x00007f5d180a4000 =
nid=3D0x1ef6 waiting on condition [0x00007f5cd81dc000]
>      java.lang.Thread.State: WAITING (parking)
>      at sun.misc.Unsafe.park(Native Method)
>      - parking to wait for <0x00000005a3883ec8> (a =
java.util.concurrent.CountDownLatch$Sync)
>      at =
java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
>      at =
java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrup=
t(AbstractQueuedSynchronizer.java:834)
>      at =
java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInter=
ruptibly(AbstractQueuedSynchronizer.java:994)
>      at =
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterru=
ptibly(AbstractQueuedSynchronizer.java:1303)
>      at =
java.util.concurrent.CountDownLatch.await(CountDownLatch.java:236)
>      at =
org.atmosphere.container.BlockingIOCometSupport.suspend(BlockingIOCometSup=
port.java:152)
>      at =
org.atmosphere.container.BlockingIOCometSupport.service(BlockingIOCometSup=
port.java:103)
>      at =
org.atmosphere.container.Tomcat7BIOSupportWithWebSocket.doService(Tomcat7B=
IOSupportWithWebSocket.java:61)
>      at =
org.atmosphere.container.TomcatWebSocketUtil.doService(TomcatWebSocketUtil=
.java:82)
>      at =
org.atmosphere.container.Tomcat7BIOSupportWithWebSocket.service(Tomcat7BIO=
SupportWithWebSocket.java:57)
>      at =
org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.=
java:1293)
>      at =
org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:293)
>      at =
org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:279)
>=20
> Eventually this makes Tomcat completely unresponsive. The plugin works =
fine but I notice that in Firefox and IE, they complain about it not =
disconnecting. I'm not sure how, or if, you are supposed to do some =
cleanup when the user switches pages but maybe they are related.
>=20
> Anyone using atmosphere and having issues like this?
>=20
> -Aaron


--Apple-Mail=_707E2E15-2BE9-4896-9507-984861D6ED89
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
	charset=iso-8859-1

<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Are you using Apache HTTPD in front of Tomcat connected by mod_jk?<div>if yes, check the threads using tomcat manager.</div><div>If the threads are in keepalive state, you might need to set keepaliveTimeout oin the AJP 1.3 Tomcat connector to get rid of old threads.</div><div><br></div><div><br><div><div>Am 11.01.2013 um 15:00 schrieb Aaron Long &lt;<a href="mailto:longwa@gmail.com">longwa@gmail.com</a>&gt;:</div><br class="Apple-interchange-newline"><blockquote type="cite">We are testing with the push plugin and keep having a problem where all of the Tomcat threads end up in this state:<div><br></div><div><font class="normal">"http-bio-8080-exec-244" daemon prio=10 
    tid=0x00007f5d180a4000 nid=0x1ef6 waiting on condition [0x00007f5cd81dc000]<br>&nbsp;&nbsp;&nbsp;&nbsp; 
    java.lang.Thread.State: WAITING (parking)<br>&nbsp;&nbsp;&nbsp;&nbsp; at 
    sun.misc.Unsafe.park(Native Method)<br>&nbsp;&nbsp;&nbsp;&nbsp; - parking to wait for 
    &lt;0x00000005a3883ec8&gt; (a java.util.concurrent.CountDownLatch$Sync)<br>&nbsp;&nbsp;&nbsp;&nbsp; 
    at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)<br>&nbsp;&nbsp;&nbsp;&nbsp; 
    at 
    java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)<br>&nbsp;&nbsp;&nbsp;&nbsp; 
    at 
    java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:994)<br>&nbsp;&nbsp;&nbsp;&nbsp; 
    at 
    java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)<br>&nbsp;&nbsp;&nbsp;&nbsp; 
    at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:236)<br>&nbsp;&nbsp;&nbsp;&nbsp; 
    at 
    org.atmosphere.container.BlockingIOCometSupport.suspend(BlockingIOCometSupport.java:152)<br>&nbsp;&nbsp;&nbsp;&nbsp; 
    at 
    org.atmosphere.container.BlockingIOCometSupport.service(BlockingIOCometSupport.java:103)<br>&nbsp;&nbsp;&nbsp;&nbsp; 
    at 
    org.atmosphere.container.Tomcat7BIOSupportWithWebSocket.doService(Tomcat7BIOSupportWithWebSocket.java:61)<br>&nbsp;&nbsp;&nbsp;&nbsp; 
    at 
    org.atmosphere.container.TomcatWebSocketUtil.doService(TomcatWebSocketUtil.java:82)<br>&nbsp;&nbsp;&nbsp;&nbsp; 
    at 
    org.atmosphere.container.Tomcat7BIOSupportWithWebSocket.service(Tomcat7BIOSupportWithWebSocket.java:57)<br>&nbsp;&nbsp;&nbsp;&nbsp; 
    at 
    org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:1293)<br>&nbsp;&nbsp;&nbsp;&nbsp; 
    at org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:293)<br>&nbsp;&nbsp;&nbsp;&nbsp; 
    at org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:279)</font>
  

</div><div><font class="normal"><br></font></div><div><font class="normal">Eventually this makes Tomcat completely unresponsive. The plugin works fine but I notice that in Firefox and IE, they complain about it not disconnecting. I'm not sure how, or if, you are supposed to do some cleanup when the user switches pages but maybe they are related.</font></div>
<div><br></div><div>Anyone using atmosphere and having issues like this?</div><div><br></div><div>-Aaron</div>
</blockquote></div><br></div></body></html>
--Apple-Mail=_707E2E15-2BE9-4896-9507-984861D6ED89--

