tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harald Henkel <h.hen...@gs-automation.de>
Subject Re: Too many BackGround Java Threads
Date Fri, 19 Nov 2004 11:57:38 GMT
Hello Satish.

From my experiance such problems are the result of errors in the
application code.

At least I had some problems in our application ranging from wrong
session management, causing threads to be waiting forever and wrong
keyboard input management. We had default buttons in the app, reacting
on click caused by ENTER/RETURN key. If the user kept the button pressed
for a couple of seconds, this generated a floud of requests at a rate of
keyboard repeat reate, all requiring database access.
Since every database access tried to use a persistent database
connection (same Oracle session) which was blocked by some Java code,
while already working, this lead to a bunch of new Oracle sessions to be
created, which usually takes some second(s).

The end result was, that tomcat reached its thread limit and stalled
(not just slow).

So I suggest you look into your code for that kind of problems first.

But without some information on your application (what it does) I guess,
it will be hard to help you.

With kind regards,
Harald Henkel

Satish Plakote wrote:
> 
> Hi,
> I am running a web-application on tomcat 5.0 . Using blackDown jdk.1.4.2_06.
> After running some user interactions , the tomcat becomes slow..
> When i do a check on the back ground threads i see many jvm threads running ..
> 
> 27288 pts/0    S      0:34 /usr/local/j2sdk1.4.2_06/bin/java -Xms700m -Xmx800m -XX:+UseConcMarkSweepGC
-
> 27289 pts/0    S      0:01 /usr/local/j2sdk1.4.2_06/bin/java -Xms700m -Xmx800m -XX:+UseConcMarkSweepGC
-
> 27290 pts/0    S      0:01 /usr/local/j2sdk1.4.2_06/bin/java -Xms700m -Xmx800m -XX:+UseConcMarkSweepGC
-
> 27291 pts/0    S      0:06 /usr/local/j2sdk1.4.2_06/bin/java -Xms700m -Xmx800m -XX:+UseConcMarkSweepGC
-
> 27292 pts/0    S      0:00 /usr/local/j2sdk1.4.2_06/bin/java -Xms700m -Xmx800m -XX:+UseConcMarkSweepGC
-
> 27293 pts/0    S      0:00 /usr/local/j2sdk1.4.2_06/bin/java -Xms700m -Xmx800m -XX:+UseConcMarkSweepGC
-
> 27294 pts/0    S      0:00 /usr/local/j2sdk1.4.2_06/bin/java -Xms700m -Xmx800m -XX:+UseConcMarkSweepGC
-
> 27295 pts/0    S      0:00 /usr/local/j2sdk1.4.2_06/bin/java -Xms700m -Xmx800m -XX:+UseConcMarkSweepGC
-
> 27296 pts/0    S      0:00 /usr/local/j2sdk1.4.2_06/bin/java -Xms700m -Xmx800m -XX:+UseConcMarkSweepGC
-
> 27297 pts/0    S      0:03 /usr/local/j2sdk1.4.2_06/bin/java -Xms700m -Xmx800m -XX:+UseConcMarkSweepGC
-
> 27298 pts/0    S      0:18 /usr/local/j2sdk1.4.2_06/bin/java -Xms700m -Xmx800m -XX:+UseConcMarkSweepGC
-
> 27302 pts/0    S      0:01 /usr/local/j2sdk1.4.2_06/bin/java -Xms700m -Xmx800m -XX:+UseConcMarkSweepGC
-
> 
> restarting tomcat is the only option left.
> not able to quite understand where the problem is ??
> 
> rgds
> Satish
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

-- 
Harald Henkel

GS automation GmbH
Winterstra├če 2
82223 Eichenau
Germany
Tel:    + 49-8141-35 731-37
Fax:    + 49-8141-35 731-38
Mobile: + 49-178-7829126
e-mail: H.Henkel@GS-automation.DE
Web:    www.GS-automation.DE

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message