Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 53590 invoked from network); 11 Jan 2005 13:14:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Jan 2005 13:14:03 -0000 Received: (qmail 8184 invoked by uid 500); 11 Jan 2005 13:13:44 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 8165 invoked by uid 500); 11 Jan 2005 13:13:44 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 8151 invoked by uid 99); 11 Jan 2005 13:13:44 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from sycamore.fernuni-hagen.de (HELO cl-mailhost.FernUni-Hagen.de) (132.176.114.84) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 11 Jan 2005 05:13:42 -0800 Received: from mailstore.fernuni-hagen.de ([132.176.114.185]) by cl-mailhost.FernUni-Hagen.de with esmtp (Exim 4.24) id 1CoLYb-0003Qe-S0; Tue, 11 Jan 2005 13:55:33 +0100 Received: from [132.176.113.33] (account schoenwa [132.176.113.33] verified) by mailstore.fernuni-hagen.de (CommuniGate Pro SMTP 4.0.6) with ESMTP id 9070470; Tue, 11 Jan 2005 13:51:13 +0100 Message-ID: <41E3CBC1.6040604@fernuni-hagen.de> Date: Tue, 11 Jan 2005 13:51:13 +0100 From: Oliver Schoenwald User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: Oliver Schoenwald CC: tomcat-user@jakarta.apache.org Subject: Re: Tomcat arbitrarily freezes References: <41DD394F.8020203@fernuni-hagen.de> In-Reply-To: <41DD394F.8020203@fernuni-hagen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-prewhitelist: your reply will pass through without greylisting X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi! five days after my first question and no answer in sight. To bad. So far, we have switched from JDK 1.4.2 to JDK 1.5 and from Tomcat 5.0.27 to 5.5.4 and the problem persists. However, while under JDK 1.4.2 it was always the thread with id #2 under JDK 1.5 it is still the thread "VM Thread", but now under id #4. Using the better debugging features of JDK 1.5 (jstack, jmap) we could pin down the problem in more detail: whenever the problem starts, the output of jstack and jmap shows that these debugging-tools have more and more problems to give information about certain memory areas. When the problem reaches its climax, a bug number of memory areas are marked by jstack with an "Error occurred during stack walking:"-Message or by jmap with "UnmappedAddressException". You see, at the moment we are only guessing what problem we have here. Maybe someone has an idea how to analyze the problem more properly or even know how to solve it (without changing some of the components like using another servlet container engine or another JVM). Thank you for any help, Oliver Schoenwald University of Hagen Germany Oliver Schoenwald wrote: > Our system configuration is as follows: > > SUN Fire 240 with 2 cpus at 1.28 GHz (Sparc-3) > 8 GB RAM > Solaris 9 (with actual patches) > > All requests are handled via Apache 2.0.52 with mod_ssl and using > mod_jk2. > > The system works well most of the time, but seemingly randomly the > catalina process starts to use up > more and more cpu performance without actually doing anything useful! > Memory usage stays normal/stable, > so we analyzed the process and found out the following: > > - The cpu performance is used up primarily by the thread "VM Thread". > - This Thread is running nothing else but "synchronization > primitives", which where called very fast an in high numbers without > reading or writing anything (as if it is in some kind of endless loop > of doing nothing). > - The effect (and an symptome which can be monitored repeatedly) is > that the number of threads that the catalina process is using rises > with every new request, because no thread gets enough cpu power to > come to an end. "VM Thread" is taking away anything after a short > period of time. > > We monitored the machine with prstat -L to see when the cpu usage of > the catalina process rose to a unusual high value (5% at average, > rising up to about 60% when VM Thread got into its frenzy). So we > could see that one single lwp was going into the high cpu usage. > As soon as we could see the rise in cpu usage we used pstack to find > out which thread is responsible for the lwp-id that was shown by > prstat -L. > Then, we used kill -3 to create a thread-dump of the catalina-process > and searched for the thread-number that was stated by pstack. > That thread-dump showed us that the thread called "VM Thread" seems to > be the problematic thread. > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org