limit tomcat threads lifetime

2005-10-05 Thread Marcus Franke
Hello, when I look in the manager/status page I sometimes see threads in status keep-alive that are very old, have atm some which are 70700177ms old, which is over 19 hours. These threads have no longer any connection to the apache server, which invoked them, as I restarted the responsible

Tomcat Threads hanging in read()

2005-10-04 Thread Eric Durand
Hello, I am using Tomcat 4.1.29, with Coyote HTTP Connector. After a few hours of uptime, I get an error on the log telling that all threads are busy. The workload is not high on the server. Getting a dump of Tomcat Threads I see that most of them are stuck in a read() method on the socket: TP

RE: apache jk_mod connecor to tomcat; threads not being released

2005-07-29 Thread Guernsey, Byron \(GE Consumer Industrial\)
. Byron -Original Message- From: Mark Barnes [mailto:[EMAIL PROTECTED] Sent: Monday, July 18, 2005 5:47 AM To: tomcat-user@jakarta.apache.org Subject: apache jk_mod connecor to tomcat; threads not being released Hi folks, Pretty new to the apache/tomcat world so please forgive any naivety

RE: Tomcat threads - waiting on monitor entry

2005-07-28 Thread Pugalia, Jai P \(JP\)
Message- From: Pugalia, Jai P (JP) Sent: Wednesday, July 27, 2005 6:48 PM To: Tomcat Users List Subject: Tomcat threads - waiting on monitor entry Hi, We have an web application running under Tomcat (5.0.28) on Red Hat Linux and uses Postgres database (8.0). For database connection pooling

Tomcat threads - waiting on monitor entry

2005-07-27 Thread Pugalia, Jai P \(JP\)
Hi, We have an web application running under Tomcat (5.0.28) on Red Hat Linux and uses Postgres database (8.0). For database connection pooling we use commons-dbcp (1.2.1) and commons-pool(1.2.1) After some time of high-usage, the web application stops responding. Dumping of the thread stack

apache jk_mod connecor to tomcat; threads not being released

2005-07-18 Thread Mark Barnes
Hi folks, Pretty new to the apache/tomcat world so please forgive any naivety. We have an apache instance on one server that connects to a tomcat instance on another using jk_mod The problem is that no matter what values I use for the worker.properties config the threads on the tomcat side are

RE: Tomcat threads

2004-12-10 Thread Shapira, Yoav
Hi, I have an app that must wait for a return from another machine that will send an asynchronous message. I go into a while loop where I put the current thread to sleep for 1000 mills. several times. Yikes ;( I hope you realize that fragility of this design, given that J2EE apps (which

RE: Tomcat threads

2004-12-10 Thread Robert Harper
Robert S. Harper 801.265.8800 ex. 255 -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] I have an app that must wait for a return from another machine that Yikes ;( I hope you realize that fragility of this design, given that J2EE apps (which includes Servlet

Re: Tomcat threads

2004-12-10 Thread Dakota Jack
Have you looked at Doug Lea's stuff? I personally would never have a server thread wait on anything from another thread. The idea of two threads running together makes little sense where one is just waiting. This may seem too strict, but I follow it to the letter. Jack On Fri, 10 Dec 2004

RE: Tomcat threads

2004-12-10 Thread Robert Harper
as the RMI thread sets a flag that the data is ready. Robert S. Harper 801.265.8800 ex. 255 -Original Message- From: Dakota Jack [mailto:[EMAIL PROTECTED] Sent: Friday, December 10, 2004 9:21 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Tomcat threads Have you looked at Doug

RE: Tomcat threads

2004-12-10 Thread Shapira, Yoav
Hi, I do not directly spawn a thread. If you know of an event library for this version of the JVM, I would be happy to use that because I think things run more efficient and the code looks cleaner. There are numerous, depending what you're looking to do. JMS might be a good candidate for this

Re: Tomcat threads

2004-12-10 Thread Michael Schuerig
On Friday 10 December 2004 19:11, Robert Harper wrote: I am not familiar with Doug Lea or any of his opinions. He's the author of the book Concurrent Programming in Java (Addison-Wesley) and the concurrency library that has in J2SDK 5 become java.util.concurrent. I do not have direct

Tomcat threads

2004-12-09 Thread Robert Harper
I have an app that must wait for a return from another machine that will send an asynchronous message. I go into a while loop where I put the current thread to sleep for 1000 mills. several times. The problem is that it also blocking the return thread until the loop is terminated. The servlet

Tomcat Threads

2003-10-31 Thread Prince
hi, how the threads can be activated on tomcat? regards Prince - Original Message - From: Lukas Bradley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 15, 2003 3:05 AM Subject: Re: HttpsURLConnection, Tomcat 4.1.27, and jsse.jar A good guess, and only if the JSSE

Is there a way to keep the tomcat threads alive?

2003-08-07 Thread Naresh Agarwal
Hi How does thread creation/destruction works in Tomcat? Is the total no. of threads in thread pool maintained by Tomcat varies as load varies? Does Tomcat destroys threads in the pool, if they are idle for the long time? If yes, is there way to ensure that Tomcat didn't kill the idle

Do we have any control on Tomcat threads?

2003-07-14 Thread Agarwal, Naresh
Hi Web apps in tomcat run in threads spawned by Tomcat. Do we have any control on these threads? I want to perform some Init and UnInit operations at the time creation and destruction of these threads. Is it possible to do with Tomcat threads? thanks regards, Naresh Agarwal

Re: Do we have any control on Tomcat threads?

2003-07-14 Thread Jason Coleman
yes i believe you can. Tomcat uses multithreading... so you can make it so only 1 thread can access certain code at once.. using synchronized blocks of code I think you can do what you want, although im no expert on threads. Best to look up google for some example code

Re: Do we have any control on Tomcat threads?

2003-07-14 Thread Tim Funk
in threads spawned by Tomcat. Do we have any control on these threads? I want to perform some Init and UnInit operations at the time creation and destruction of these threads. Is it possible to do with Tomcat threads? thanks regards, Naresh Agarwal

Re: Do we have any control on Tomcat threads?

2003-07-14 Thread Bill Barker
on these threads? I want to perform some Init and UnInit operations at the time creation and destruction of these threads. Is it possible to do with Tomcat threads? thanks regards, Naresh Agarwal - To unsubscribe, e-mail: [EMAIL

Tomcat Threads never stop growing, why?

2002-11-06 Thread Brandon Cruz
I am using Tomcat 3.2.4. When I start the server, about 300 threads are created, which seems like a lot, but the server runs fine. As time goes on, the amount of threads grows and grows. The threads are all sleeping and don't look like they are taking any resources, but they never close. After

RE: Tomcat Threads never stop growing, why? -repost-

2002-11-06 Thread Brandon Cruz
by Tomcat. Using Tomcat 3.2.4 on Linux, is this a bug with Tomcat or should I look into our application? Please help! Brandon -Original Message- From: Brandon Cruz [mailto:bcruz;norvax.com] Sent: Wednesday, November 06, 2002 9:36 AM To: Tomcat Users List Subject: Tomcat Threads never stop

RE: Tomcat Threads never stop growing, why? -repost-

2002-11-06 Thread Ralph Einfeldt
the threads are doing. -Original Message- From: Brandon Cruz [mailto:bcruz;norvax.com] Sent: Wednesday, November 06, 2002 9:15 PM To: Tomcat Users List Subject: RE: Tomcat Threads never stop growing, why? -repost- Is it normal for the amount of threads used by Tomcat to contine

Re: Tomcat, Threads and IllegalAccessError

2002-01-23 Thread Michael Engelhart
No, it's an IllegalAccessError. It's listed in the Error section of java.lang javadoc. Below the list of excceptions is the Errors subsection. Here's the relevant comment: /* Begin JavaDoc java.lang.IllegalAccessError */ Thrown if an application attempts to access or modify a field, or to

Re: Tomcat, Threads and IllegalAccessError

2002-01-23 Thread Michael Engelhart
Oh and for your other question I have the 3rd party library stored in the Tomcat container home at jakarta-tomcat-4.0.1/lib/ Thanks Mike On Wednesday, January 23, 2002, at 02:14 PM, Michael Engelhart wrote: No, it's an IllegalAccessError. It's listed in the Error section of java.lang

Re: Tomcat, Threads and IllegalAccessError

2002-01-23 Thread Bo Xu
- Original Message - From: Michael Engelhart [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 23, 2002 2:17 PM Subject: Re: Tomcat, Threads and IllegalAccessError Oh and for your other question I have the 3rd party library stored in the Tomcat

Re: Tomcat, Threads and IllegalAccessError

2002-01-23 Thread Michael Engelhart
Thanks but I've already tried that. Still doesn't work. It's not a classloader problem I don't think but a Thread violation error of some sort I think because it's happening in an InnerClass called TheClass$ReadThread... I'm going to download a different web container and see if I have the

Re: Tomcat, threads and garbagecleaner: A question

2002-01-02 Thread Tom Drake
webapp, setting break points in appropriate places. Good luck Tom Drake - Original Message - From: Duarte Loreto [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 01, 2002 5:45 PM Subject: Tomcat, threads and garbagecleaner: A question |Hello! | | I have a JSP page

Tomcat, threads and garbagecleaner: A question

2002-01-01 Thread Duarte Loreto
Hello! I have a JSP page that instantiates an object. This instantiates another one, as a thread. The thread is created and started on the same inline, and I have no pointer to the thread. My question is: when this thread finishes it's run(), does it get garbagecleaned? The object that

tomcat threads - only one has high CPU time

2001-05-08 Thread Martin, Brian
I am running tomcat 3.2 on an dual cpu HPUX-11.0 box, using IIS an the front end on an NT box. when I look at the thread list (using glance) for the tomcat process, i can see 42 threads, but only one of them is showing high cpu usage in this screen shot, it is thread id 8168. why are there so

Tomcat Threads

2001-03-15 Thread Dave Finch
I have tomcat 3.2 running on NT 4 (SP6a) through IIS. I have multiple websites each with it's IP address and domain names running in their own context in separate directories everything is working fine but I have a static connection pool which is being initialized several times. my question is,

Re: Tomcat Threads

2001-03-15 Thread Shahed Ali
Each webapp / context runs with its own classloader (afaik) Thats why multiple copies of your class are being loaded. May be if you used JNDI lookups to get a handle to a connection pool with that jdbc 2.0 ext stuff ? Or maybe rmi ? But jdbc conenctions cannot go over rmi :-( Regards

RE: Tomcat Threads

2001-03-15 Thread Randy Layman
an instance of the servlet for each unique URL that the servlet answers to (mappings in the web.xml file and the /servlets/className). Randy -Original Message- From: Dave Finch [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 2:19 PM To: [EMAIL PROTECTED] Subject: Tomcat

Re: Tomcat threads..

2000-12-24 Thread Kief Morris
Peter Brandt-Erichsen typed the following on 03:17 PM 12/23/2000 -0800 What if you configured a servlet to the SingleThreadModel, would Tomcat still create a thread pool to execute this servlet? Probably, because the threads are most likely created by the container, without regard to the

Re: Tomcat threads..

2000-12-24 Thread Kief Morris
Endre Stølsvik typed the following on 09:23 PM 12/23/2000 +0100 | I'm trying desperately to get tomcat to use only ONE thread. But I always | seem to end up with 10 or so.. Yes, this is only for development purposes. I have a bunch of separate server setups on one box, one for each developer

Re: Tomcat threads..

2000-12-24 Thread Endre Stølsvik
On Sun, 24 Dec 2000, Kief Morris wrote: | Endre Stølsvik typed the following on 09:23 PM 12/23/2000 +0100 | | I'm trying desperately to get tomcat to use only ONE thread. But I always | | seem to end up with 10 or so.. | | Yes, this is only for development purposes. I have a bunch of separate

Re: Tomcat threads..

2000-12-23 Thread Endre Stølsvik
On Fri, 22 Dec 2000, Craig R. McClanahan wrote: | Endre Stølsvik wrote: | | I'm trying desperately to get tomcat to use only ONE thread. But I always | seem to end up with 10 or so.. | | I guess this is because of tomcat internals, but just how many threads | does tomcat really need? | |

Re: Tomcat threads..

2000-12-22 Thread Ted Husted
On 12/22/2000 at 4:32 PM Endre Stølsvik wrote: I'm trying desperately to get tomcat to use only ONE thread. Why? Java and Tomcat are designed to be multithreaded. Reducing threads would hurt performance. All the same resources would be used, but only in serial. What is your goal? As an aside,

Re: Tomcat threads..

2000-12-22 Thread Thom Park
Ted Husted wrote: As an aside, threads are not the same as an OS processes, although they can look the same. ...unless you're on a linux box ;-) -T.

Re: Tomcat threads..

2000-12-22 Thread Thom Park
I'm sure your right - I haven't used the linux kernel in a long time (Blackdown jdk days) It used to be a heavyweight threading model for linux native threads but there's been a whole lot of improvements in the java threading implementations on linux (shame I can't say the same for C/C++

Re: Tomcat threads..

2000-12-22 Thread Craig R. McClanahan
Endre Stølsvik wrote: I'm trying desperately to get tomcat to use only ONE thread. But I always seem to end up with 10 or so.. I guess this is because of tomcat internals, but just how many threads does tomcat really need? Tomcat needs one thread for each simultaneous request you want it