Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 12E52D4F8 for ; Mon, 24 Jun 2013 21:10:04 +0000 (UTC) Received: (qmail 66485 invoked by uid 500); 24 Jun 2013 21:10:00 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 66397 invoked by uid 500); 24 Jun 2013 21:10:00 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 66382 invoked by uid 99); 24 Jun 2013 21:10:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jun 2013 21:10:00 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [209.85.160.46] (HELO mail-pb0-f46.google.com) (209.85.160.46) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jun 2013 21:09:54 +0000 Received: by mail-pb0-f46.google.com with SMTP id rq2so11535824pbb.33 for ; Mon, 24 Jun 2013 14:09:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=FobHkS6AEpdKXqrLiU1OIOJkPbIGXYK3gZ7EJ0CROt4=; b=N95hgebS5wjsIZHy+AaBwRhR2hyU0ldnYhp6TMka2VzHg4fM4h1vQWVjSE45O1N8N6 z7knMiBybuRj8X2N6L5MDE913WmgPrFchccj8143QjomeyXY1bEoNW1/zxRP2TO06sHL OPUH5+x55eAJj2ZCEA48dlEMOe6VWvHHeovNeN/FZH65BrXq9FDlyqsRJViefdXhOvzD ajzIs3D+K+1qqcQSTtKoOTvtuGUW0p11JDR/fSLrnwx+oUzpT8O1/5s7E3Jzfh8QhVkL JRIXUM+x/L0ycdqwi8hF15ch3Of8nfL2YvNI5m77ffBSI1MCzk50kaC6xp7t/1EJn4KO oGcw== X-Received: by 10.66.8.69 with SMTP id p5mr5421542paa.57.1372108153539; Mon, 24 Jun 2013 14:09:13 -0700 (PDT) Received: from [192.168.0.6] (d118-75-246-224.col.wideopenwest.com. [75.118.224.246]) by mx.google.com with ESMTPSA id ve3sm19734109pbc.14.2013.06.24.14.09.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Jun 2013 14:09:12 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: Strange tomcat error and running out of file handles From: Daniel Mikusa In-Reply-To: Date: Mon, 24 Jun 2013 17:09:10 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <6F83D93F-8D66-4FDF-90EC-1310B995F28C@gopivotal.com> References: To: Tomcat Users List X-Mailer: Apple Mail (2.1508) X-Gm-Message-State: ALoCoQnZd49Tyb9/hOeBQgLKe6vBrB1xUVIXfvLETxosBTgVPP+JKwK2DOIgXk9NfwzA913V/3oT X-Virus-Checked: Checked by ClamAV on apache.org On Jun 24, 2013, at 4:32 PM, Tom Freestone = wrote: > Hello, > We are running tomcat 6.0.36 (java build 1.6.0_31) on REHL5. It works = most > of time except recently we started running out of files. Here is the = error > I am getting: >=20 >=20 > Exception in thread "pool-1-thread-1" = java.lang.IllegalMonitorStateException > at > = java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.jav= a:127) > at > = java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueu= edSynchronizer.java:1239) > at > = java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:431) > at > = java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:406= ) > at > = java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:94= 7) > at > = java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java= :907) > at java.lang.Thread.run(Thread.java:662) > Exception in thread "pool-1-thread-2" = java.lang.IllegalMonitorStateException > at > = java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.jav= a:127) > at > = java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueu= edSynchronizer.java:1239) > at > = java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:431) > at > = java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:406= ) > at > = java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:94= 7) > at > = java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java= :907) > at java.lang.Thread.run(Thread.java:662) > Jun 22, 2013 8:18:55 PM > org.apache.catalina.tribes.transport.nio.NioReceiver socketTimeouts > WARNING: Channel key is registered, but has had no interest ops for = the > last 3000 ms. (cancelled:false):sun.nio.ch.SelectionKeyImpl@378186dc = last > access:2013-06-22 20:18:50.645 > Jun 22, 2013 8:19:00 PM > org.apache.catalina.tribes.transport.nio.NioReceiver socketTimeouts > WARNING: Channel key is registered, but has had no interest ops for = the > last 3000 ms. (cancelled:false):sun.nio.ch.SelectionKeyImpl@6ec71370 = last > access:2013-06-22 20:18:55.649 > Jun 22, 2013 8:19:00 PM > org.apache.catalina.tribes.transport.nio.NioReceiver socketTimeouts > WARNING: Channel key is registered, but has had no interest ops for = the > last 3000 ms. (cancelled:false):sun.nio.ch.SelectionKeyImpl@378186dc = last > access:2013-06-22 20:18:55.646 > Jun 22, 2013 8:19:05 PM > org.apache.catalina.tribes.transport.nio.NioReceiver socketTimeouts > WARNING: Channel key is registered, but has had no interest ops for = the > last 3000 ms. (cancelled:false):sun.nio.ch.SelectionKeyImpl@6ec71370 = last > access:2013-06-22 20:19:00.648 > Jun 22, 2013 8:19:05 PM > org.apache.catalina.tribes.transport.nio.NioReceiver socketTimeouts > WARNING: Channel key is registered, but has had no interest ops for = the > last 3000 ms. (cancelled:false):sun.nio.ch.SelectionKeyImpl@71312bbd = last > access:2013-06-22 20:19:00.649 > SEVERE: Unable to process request in NioReceiver > java.lang.ThreadDeath > at java.lang.Thread.stop(Thread.java:758) > at net.bull.javamelody.Action.stopThread(Action.java:388) > at net.bull.javamelody.Action.killThread(Action.java:374) > at net.bull.javamelody.Action.execute(Action.java:227) > at > = net.bull.javamelody.MonitoringController.executeActionIfNeeded(MonitoringC= ontroller.java:117) > at > = net.bull.javamelody.MonitoringController.doActionIfNeededAndReport(Monitor= ingController.java:130) > at > = net.bull.javamelody.MonitoringFilter.doMonitoring(MonitoringFilter.java:34= 0) > at > = net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:170) Looks like your application is calling Thread.stop(). Who or what is = making the requests that trigger this exception? Have you looked in the = access log to see what is sending these requests? >=20 > Then I get a bunch of > Exception in thread > = "org%002ejasig%002ecas%002eticket%002e%0054icket%0047ranting%0054icket.dat= a" > java.lang.IllegalMonitorStateException > at > = java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.jav= a:127) > at > = java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueu= edSynchronizer.java:1239) > at > = java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:431) > at java.util.concurrent.DelayQueue.take(DelayQueue.java:176) > at > = java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Sch= eduledThreadPoolExecutor.java:609) > at > = java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Sch= eduledThreadPoolExecutor.java:602) > at > = java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:94= 7) > at > = java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java= :907) > at java.lang.Thread.run(Thread.java:662) >=20 >=20 > Eventually, the filesystem fills up and tomcat is dead. =20 What is filling up the file system? Is it this log file? > Any ideas of why we are getting the thread errors.=20 The stack trace above seems to indicate that someone is instructing Java = Melody, a monitoring tool, to stop particular threads. My thought would = be to figure what is triggering that to happen (see above about looking = at the access log), stop it and then continue troubleshooting from = there. Dan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org