Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0B0B910289 for ; Thu, 22 Jan 2015 18:42:08 +0000 (UTC) Received: (qmail 79337 invoked by uid 500); 22 Jan 2015 18:42:07 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 79208 invoked by uid 500); 22 Jan 2015 18:42:07 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 79186 invoked by uid 99); 22 Jan 2015 18:42:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jan 2015 18:42:06 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tim@outboundengine.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-ob0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jan 2015 18:42:02 +0000 Received: by mail-ob0-f176.google.com with SMTP id va2so3067688obc.7 for ; Thu, 22 Jan 2015 10:39:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=ReIvIDLjnLKCo9Wwt5IXWqXQ4eT9ZfZjsXmi482irFs=; b=JtfazeJ62ipqqqbiV0u9mcJpiad1YE+zjaAHTs19OJYW1dc+dUrAKYs4md1y/sXC3k TeaOYJvP6CIf3pQq2UQdDqgB/lKPkUNGpCvko95+sn6yF2qShv/PA1T+8SyZUj596e0u ub2sYvRi10qBHGb7gESaLNlcnynH4G2+rtvtF1rbjb7+lQkjjwcLa/J+zN7vsmqisml2 CMoz3KOaQwG20f8EiPAUJCmUsyaxqNlBMtBE6xHjQeXhWWuZVSpuVH+0opMrDo8tD6x3 YZiuFn94lWSojW1K4GbXgOsLCpd5OBbF7yzUQJREpY/OaAkJBUSu5jU627EyxflLJP/S dB6Q== X-Gm-Message-State: ALoCoQnviUAyqi3HIuptnRM0ip33+daisfQmAHIZ7N1KayW0aozB9dxGhZILXvSdvq/Crge03yxXXuvMbER4aaOFsN+qFNnaxoZklmffMULvd9MnsLKQaNMXGJI2eZ1axZ8/aGW87blXchaI7zKUbhMBhlXKPUISFfYPLkIphNJIKbrXPqmCJUt+yneITZD9LXaT76s1oZrs MIME-Version: 1.0 X-Received: by 10.202.181.133 with SMTP id e127mr1786987oif.88.1421951966046; Thu, 22 Jan 2015 10:39:26 -0800 (PST) Received: by 10.76.76.7 with HTTP; Thu, 22 Jan 2015 10:39:25 -0800 (PST) In-Reply-To: References: Date: Thu, 22 Jan 2015 12:39:25 -0600 Message-ID: Subject: Re: JSC 1.3 thread cleanup From: Tim Cronin To: Commons Users List Content-Type: multipart/alternative; boundary=001a113d0944d305aa050d41fd11 X-Virus-Checked: Checked by ClamAV on apache.org --001a113d0944d305aa050d41fd11 Content-Type: text/plain; charset=UTF-8 it's not a tomcat error, it's a JCS resource leak tomcat is showing the error but it's caused by JCS not cleaning up the threads it's creating. On Thu, Jan 22, 2015 at 11:46 AM, sebb wrote: > On 22 January 2015 at 16:42, Tim Cronin wrote: > > I'm getting tomcat errors on shutdown: > > This is the Commons User mailing list. > > Please subscribe to the Tomcat User mailing list and ask there. > > > 2015-01-22 16:41:51,186 [localhost-startStop-2] ERROR > > org.apache.catalina.loader.WebappClassLoader- The web application > > [/api] appears to have started a thread named > > [ElementEventQueue.QProcessor-1] but has failed to stop it. This is very > l > > ikely to create a memory leak. > > > > i tracked it down to > > > > org.apache.jcs.engine.control.CompositeCache: > > > > /** > > * EventQueue for handling element events. 1 should be enough for all > > the regions. Else should > > * create as needed per region. > > */ > > public static IElementEventQueue elementEventQ = new > ElementEventQueue( > > "AllRegionQueue" ); > > > > then calling CompositeCache.elementEventQ.destroy(); > > > > but it can be flaky and IMO should be handled via > > CompositeCacheManager.shutdown(). > > > > is there a better way to handle this and do i need to file a bug on this? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > > --001a113d0944d305aa050d41fd11--