Re: Executor thread pool

2014-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jeffrey, On 3/10/14, 4:15 PM, Jeffrey Janner wrote: >> -Original Message- From: Christopher Schultz >> [mailto:ch...@christopherschultz.net] Sent: Monday, March 10, >> 2014 11:22 AM To: Tomcat Users List Subject: Re: Execu

RE: Executor thread pool

2014-03-10 Thread Jeffrey Janner
> -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Monday, March 10, 2014 11:22 AM > To: Tomcat Users List > Subject: Re: Executor thread pool > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > John, > &

Re: Executor thread pool

2014-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 John, On 3/10/14, 11:43 AM, John Smith wrote: > How dumb am I being by not using an Executor with a named thread > pool? Currently I just have a Connector in server.xml: > > protocol="org.apache.coyote.http11.Http11NioProtocol" > connectionTimeou

RE: Executor thread pool

2014-03-10 Thread Caldarale, Charles R
> From: John Smith [mailto:tomcat.ran...@gmail.com] > Subject: Executor thread pool > How dumb am I being by not using an Executor with a named thread pool? > Currently I just have a Connector in server.xml: > connectionTimeout="2" >

Executor thread pool

2014-03-10 Thread John Smith
How dumb am I being by not using an Executor with a named thread pool? Currently I just have a Connector in server.xml: Assuming ~2000 simultaneous connections. Tomcat 7.0.42. RHEL6. Best, John

RE: [OT] Question on Executor (thread pool)

2010-03-08 Thread Caldarale, Charles R
> From: CBy [mailto:tom...@byrman.demon.nl] > Subject: Re: [OT] Question on Executor (thread pool) > > I thought it was pretty common to share precious resources across web > apps. Isn't database connection pooling often implemented this way? Not in my experience - you wa

Re: [OT] Question on Executor (thread pool)

2010-03-08 Thread CBy
On 8-3-2010 17:07, Caldarale, Charles R wrote: From: CBy [mailto:tom...@byrman.demon.nl] Subject: Re: [OT] Question on Executor (thread pool) I am still curious though on when and how to use Tomcat's Executor. I someone could provide me with a nice example, I would be most gra

RE: [OT] Question on Executor (thread pool)

2010-03-08 Thread Caldarale, Charles R
> From: CBy [mailto:tom...@byrman.demon.nl] > Subject: Re: [OT] Question on Executor (thread pool) > > I am still curious though on when and how to use Tomcat's Executor. I > someone could provide me with a nice example, I would be most grateful. Tomcat's thread pools

Re: [OT] Question on Executor (thread pool)

2010-03-08 Thread CBy
Thanks for your help, Chris. With "you could create a service" you mean a process not managed by Tomcat? The class loader route seems less flexible but easier. I think I'll try that first. I am still curious though on when and how to use Tomcat's Executor. I someone could provide me with a n

Re: [OT] Question on Executor (thread pool)

2010-03-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CBy, On 3/8/2010 7:03 AM, CBy wrote: > My web service wraps a command-line application that is rather resource > demanding. To manage the maximum number of instances that can run > concurrently, it uses a (custom) thread pool. Are you on Java 1.5+?

Question on Executor (thread pool)

2010-03-08 Thread CBy
Hi, My web service wraps a command-line application that is rather resource demanding. To manage the maximum number of instances that can run concurrently, it uses a (custom) thread pool. This all works fine, but my current thread pool is local to my service. Now that I have to develop simila