Why are Tomcat's threads more costly than background threads?

2012-12-11 Thread Julien Martin
Hello, I am in reference to the following blog entry: Blog entryhttp://blog.springsource.org/2012/05/06/spring-mvc-3-2-preview-introducing-servlet-3-async-support about Spring MVC 3.2 asynchronous support. I understand Tomcat uses a thread pool in order to serve http/web requests. Furthermore,

Re: Why are Tomcat's threads more costly than background threads?

2012-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Julien, Warning: this is long. Like, André-or-Mark-Eggers long. On 12/11/12 7:30 AM, Julien Martin wrote: I am in reference to the following blog entry: Blog

Re: Why are Tomcat's threads more costly than background threads?

2012-12-11 Thread Julien Martin
Thank you very much for this exhaustive reply Christopher. 2012/12/11 Christopher Schultz ch...@christopherschultz.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Julien, Warning: this is long. Like, André-or-Mark-Eggers long. On 12/11/12 7:30 AM, Julien Martin wrote: I am in

Re: Why are Tomcat's threads more costly than background threads?

2012-12-11 Thread Howard W. Smith, Jr.
Wow, i'm reading this now, because I just experienced an issue on my production server that is TomEE 1.5.1 (Tomcat 7.0.34), and the whole server locked up all because I had a @Stateless EJB inserting data into multiple tables in the database, because @Schedule timed event triggered the EJB to

Re: Why are Tomcat's threads more costly than background threads?

2012-12-11 Thread Mark Eggers
On 12/11/2012 7:14 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Julien, Warning: this is long. Like, André-or-Mark-Eggers long. Ouch (not really, thanks for the chuckle). Hemingway I am not, thorough I try to be. Very nice explanation. This may be useful

Re: Why are Tomcat's threads more costly than background threads?

2012-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 12/11/12 11:16 AM, Mark Eggers wrote: On 12/11/2012 7:14 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Julien, Warning: this is long. Like, André-or-Mark-Eggers long. Ouch (not really, thanks