Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 059D79F12 for ; Fri, 29 Jun 2012 11:06:12 +0000 (UTC) Received: (qmail 24484 invoked by uid 500); 29 Jun 2012 11:06:11 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 24348 invoked by uid 500); 29 Jun 2012 11:06:08 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 24314 invoked by uid 99); 29 Jun 2012 11:06:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2012 11:06:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2012 11:06:06 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 1D94851D2; Fri, 29 Jun 2012 11:05:46 +0000 (UTC) From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: [Bug 53485] New: http-nio-80-ClientPoller 100% cpu load Date: Fri, 29 Jun 2012 11:05:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 7 X-Bugzilla-Component: Connectors X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: dimazaur@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: priority bug_id assigned_to short_desc bug_severity classification op_sys reporter rep_platform bug_status version component product Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=53485 Priority: P2 Bug ID: 53485 Assignee: dev@tomcat.apache.org Summary: http-nio-80-ClientPoller 100% cpu load Severity: critical Classification: Unclassified OS: Linux Reporter: dimazaur@gmail.com Hardware: PC Status: NEW Version: 7.0.26 Component: Connectors Product: Tomcat 7 I'm using Async Servlet in my application for chatting and I've found threads like 'http-nio-80-ClientPoller' loads cpu for 100% it happens really frequently Do you have any suggestions how to fix it? Thank you. public class AsyncChatServlet extends HttpServlet { @Override protected void doPost(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException { final AsyncContext asyncContext = request.startAsync(); asyncContext.start(new Runnable() { @Override public void run() { try { ChatServer chatServer = ChatContainer.getChatServer(chatRequest.getRoom()); synchronized (chatServer) { //chatServer notified on new message chatServer.wait(20000); } ... } catch (Exception e) { e.printStackTrace(); } asyncContext.complete(); } } -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org