-
Tomcat 6 released and stable (20 messages)
- Posted by: Joseph Ottinger
- Posted on: March 01 2007 05:58 EST
Apache has announced that Tomcat 6.0.10 has been released and is considered stable. Tomcat 6 (download, documentation) implements the "Servlet 2.5 and JSP 2.1 specifications, a refactored clustering implementation, advanced IO features, and improvements in memory usage." The documentation for Tomcat 6 itself seems to be all right, but the web sites for Tomcat don't list many of the new features, mostly referring to Tomcat 5 as the latest stable release. Congratulations to the Apache Tomcat team!Threaded Messages (20)
- JBOSS/Tomcat bundling by Holger Haag on March 01 2007 09:25 EST
- Re: JBOSS/Tomcat bundling by Remy Maucherat on March 01 2007 09:48 EST
- JBoss 5 Availability? by Ryan LeCompte on March 01 2007 10:51 EST
- Re: JBOSS/Tomcat bundling by Remy Maucherat on March 01 2007 09:48 EST
- Re: Tomcat 6 released and stable by Wille Faler on March 01 2007 10:38 EST
- Re: Tomcat 6 released and stable by Stefan Arentz on March 01 2007 11:17 EST
-
Re: Tomcat 6 released and stable by Nebojsa Vasiljevic on March 01 2007 11:44 EST
- Re: Tomcat 6 released and stable by Wille Faler on March 01 2007 12:56 EST
-
Re: Tomcat 6 released and stable by Nebojsa Vasiljevic on March 01 2007 11:44 EST
- Re: Tomcat 6 released and stable by Guglielmo Lichtner on March 01 2007 13:16 EST
- Re: Tomcat 6 released and stable by Remy Maucherat on March 01 2007 15:59 EST
- Re: Tomcat 6 released and stable by Joshua Long on March 01 2007 05:53 EST
-
Re: Tomcat 6 released and stable by Michael Cohen on March 01 2007 11:16 EST
-
Re: Tomcat 6 released and stable by Martin Perez on March 02 2007 11:46 EST
-
Continuations and ThreadLocals by Torben Norling on March 02 2007 03:22 EST
- Re: Continuations and ThreadLocals by Juergen Hoeller on March 03 2007 03:26 EST
-
Continuations and ThreadLocals by Torben Norling on March 02 2007 03:22 EST
-
Re: Tomcat 6 released and stable by Martin Perez on March 02 2007 11:46 EST
-
No mod_jk with NIO config? by null on March 02 2007 12:02 EST
- mod_jk good to go by Darren Salomons on March 04 2007 09:02 EST
- Re: Tomcat 6 released and stable by Mladen Turk on March 02 2007 06:34 EST
- Re: Tomcat 6 released and stable by Stefan Arentz on March 01 2007 11:17 EST
- NetBeans support by Nebojsa Vasiljevic on March 01 2007 11:07 EST
- Thanks Tomcat Devs by dev danke on March 01 2007 13:33 EST
- An alternative: Glassfish by null on March 02 2007 12:06 EST
-
JBOSS/Tomcat bundling[ Go to top ]
- Posted by: Holger Haag
- Posted on: March 01 2007 09:25 EST
- in response to Joseph Ottinger
Does anybody know whether tomcat 6 will be bundled with jboss 4 / jboss 5 ? I haven't found a clear answer on this on the net, but it looks like the jboss 5 beta is bundled with jboss' own servlet container (jbossws). -
Re: JBOSS/Tomcat bundling[ Go to top ]
- Posted by: Remy Maucherat
- Posted on: March 01 2007 09:48 EST
- in response to Holger Haag
Does anybody know whether tomcat 6 will be bundled with jboss 4 / jboss 5 ? I haven't found a clear answer on this on the net, but it looks like the jboss 5 beta is bundled with jboss' own servlet container (jbossws).
Both JBoss 4.2 and JBoss 5 [will] include JBoss Web 2, which is almost identical to the Tomcat 6.0.10 source at the moment. It is kept as a separate source tree for maintenance reasons (for example, if there's a JBoss specific change which needs to go in, etc). -
JBoss 5 Availability?[ Go to top ]
- Posted by: Ryan LeCompte
- Posted on: March 01 2007 10:51 EST
- in response to Remy Maucherat
Does anyone have any insight into when JBoss 5 will be GA'd? I know it's currently in the beta phase, but I couldn't find any road map information on the JBoss site. -
Re: Tomcat 6 released and stable[ Go to top ]
- Posted by: Wille Faler
- Posted on: March 01 2007 10:38 EST
- in response to Joseph Ottinger
Maybe someone with views into the Tomcat development could tell me: Are there any plans to make Tomcat be able to use non-blocking IO (such as Java NIO), and be able to multiplex several client connection over a small number of worker threads? The current Apache and Tomcat model of 1 request - 1 thread is quite antiquated, and is really keeping potential maximum concurrency numbers down. A multiplexing NIO solution would be able to up the concurrency to potentially handle thousands of concurrent requests, as opposed to a few hundred (in fact we have been prototyping such an architecture on my current project). Furthermore, being able to allocate minimum number of thread resources to separate applications would also be highly useful, so as to not saturate a machine because one app or url-path is slow/failing. / Wille Blog: Buzzword Bingo -
Re: Tomcat 6 released and stable[ Go to top ]
- Posted by: Stefan Arentz
- Posted on: March 01 2007 11:17 EST
- in response to Wille Faler
Maybe someone with views into the Tomcat development could tell me:
Go with Jetty 6 and never look back :-) S.
Are there any plans to make Tomcat be able to use non-blocking IO (such as Java NIO), and be able to multiplex several client connection over a small number of worker threads? -
Re: Tomcat 6 released and stable[ Go to top ]
- Posted by: Nebojsa Vasiljevic
- Posted on: March 01 2007 11:44 EST
- in response to Stefan Arentz
Unfortunately, Web application based on Servlet API is supposed to process request in a single thread. Some improvements may be done on the container part, but not in application code. If you need true asynchronous container forget standard Servlet API. -
Re: Tomcat 6 released and stable[ Go to top ]
- Posted by: Wille Faler
- Posted on: March 01 2007 12:56 EST
- in response to Nebojsa Vasiljevic
Unfortunately, Web application based on Servlet API is supposed to process request in a single thread. Some improvements may be done on the container part, but not in application code.
Well, not necessarily.. You could actually have requests queueing up in in-memory queues BEFORE they get to the Servlet API, once they hit the Servlet API part, they would process in a traditional way - one request one thread, but you could use resources more efficiently before it hits a Servlet and thus increase concurrency and reliability.
If you need true asynchronous container forget standard Servlet API. -
Re: Tomcat 6 released and stable[ Go to top ]
- Posted by: Guglielmo Lichtner
- Posted on: March 01 2007 13:16 EST
- in response to Wille Faler
Maybe someone with views into the Tomcat development could tell me:
I think that works great for serving files, but not necessarily for a servlet, because there is no way to suspend a servlet's execution when it's waiting on I/O - for example when it queries a database. In order to get better throughput in an average application you would have to have a programming model which uses cooperative multitasking - where each thread keeps running until it has to wait on I/O.
Are there any plans to make Tomcat be able to use non-blocking IO (such as Java NIO), and be able to multiplex several client connection over a small number of worker threads?
The current Apache and Tomcat model of 1 request - 1 thread is quite antiquated, and is really keeping potential maximum concurrency numbers down. -
Re: Tomcat 6 released and stable[ Go to top ]
- Posted by: Remy Maucherat
- Posted on: March 01 2007 15:59 EST
- in response to Wille Faler
The current Apache and Tomcat model of 1 request - 1 thread is quite antiquated
Both Apache [HTTP Server] and [Apache] Tomcat allow using pollers / sendfile / and other techiniques which allow worker threads to focus on processing business logic rather than blocking on IO or serving static files. For Apache Tomcat, you should look at this documentation: http://tomcat.apache.org/tomcat-6.0-doc/aio.html -
Re: Tomcat 6 released and stable[ Go to top ]
- Posted by: Joshua Long
- Posted on: March 01 2007 17:53 EST
- in response to Remy Maucherat
That's wondrful! I love how quickly Tomcat catches up on these things! Thanks again -
Re: Tomcat 6 released and stable[ Go to top ]
- Posted by: Michael Cohen
- Posted on: March 01 2007 23:16 EST
- in response to Remy Maucherat
http://blogs.webtide.com/gregw/2006/07/25/1153845234453.htmlThe current Apache and Tomcat model of 1 request - 1 thread is quite antiquated
Both Apache [HTTP Server] and [Apache] Tomcat allow using pollers / sendfile / and other techiniques which allow worker threads to focus on processing business logic rather than blocking on IO or serving static files.
For Apache Tomcat, you should look at this documentation: http://tomcat.apache.org/tomcat-6.0-doc/aio.html -
Re: Tomcat 6 released and stable[ Go to top ]
- Posted by: Martin Perez
- Posted on: March 02 2007 11:46 EST
- in response to Michael Cohen
http://www.artima.com/lejava/articles/continuations.htmlThe current Apache and Tomcat model of 1 request - 1 thread is quite antiquated
Both Apache [HTTP Server] and [Apache] Tomcat allow using pollers / sendfile / and other techiniques which allow worker threads to focus on processing business logic rather than blocking on IO or serving static files.
For Apache Tomcat, you should look at this documentation: http://tomcat.apache.org/tomcat-6.0-doc/aio.html
http://blogs.webtide.com/gregw/2006/07/25/1153845234453.html -
Continuations and ThreadLocals[ Go to top ]
- Posted by: Torben Norling
- Posted on: March 02 2007 15:22 EST
- in response to Martin Perez
One thing I have been wondering about is: How is ThreadLocal usage affected by continuations. ThreadLocals are used in lots of places to handle for instance Hibernate sessions and similar request (thread) scoped objects that needs to be reused during a request (thread). -
Re: Continuations and ThreadLocals[ Go to top ]
- Posted by: Juergen Hoeller
- Posted on: March 03 2007 15:26 EST
- in response to Torben Norling
One thing I have been wondering about is: How is ThreadLocal usage affected by continuations. ThreadLocals are used in lots of places to handle for instance Hibernate sessions and similar request (thread) scoped objects that needs to be reused during a request (thread).
For such asynchronously processed requests, ThreadLocals may only be used for each event callback. So each such callback may trigger its own short transaction but not keep a transaction open beyond the current event callback. Existing transaction demarcation mechanisms do not have to change for that, since they operate on synchronous invocations only, which means they can only be applied to each event callback individually anyway. This basically also applies to resources like Hibernate Sessions, so Open-Session-in-View and similar patterns are not applicable anymore. Keeping an extended JPA EntityManager in a request-scoped object would work for an entire request (analogous to an extended EntityManager in a session), although each event callback would still have to operate within its own database transaction (analogous to an extended EntityManager in a session as well). Juergen -
No mod_jk with NIO config?[ Go to top ]
- Posted by: null
- Posted on: March 02 2007 12:02 EST
- in response to Remy Maucherat
That page says this: "IMPORTANT NOTE: Usage of these features requires using the APR or NIO HTTP connectors. The classic java.io HTTP connector and the AJP connectors do not support them." Does that mean that running with that config does not support fronting Tomcat with Apache using mod_jk since mod_jk uses AJP connectors? Thanks. -
mod_jk good to go[ Go to top ]
- Posted by: Darren Salomons
- Posted on: March 04 2007 09:02 EST
- in response to null
That page says this:
I think http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html will answer your question.
"IMPORTANT NOTE: Usage of these features requires using the APR or NIO HTTP connectors. The classic java.io HTTP connector and the AJP connectors do not support them."
Does that mean that running with that config does not support fronting Tomcat with Apache using mod_jk since mod_jk uses AJP connectors?
Thanks. -
Re: Tomcat 6 released and stable[ Go to top ]
- Posted by: Mladen Turk
- Posted on: March 02 2007 06:34 EST
- in response to Wille Faler
Are there any plans to make Tomcat be able to use non-blocking IO (such as Java NIO), and be able to multiplex several client connection over a small number of worker threads?
Tomcat 6 (well even Tomcat 5.5) has Tomcat Native Connector based on Apache Portable Runtime (APR) that even goes beyond the technical capabilities of NIO and offers thread-per-request model instead traditional thread-per-connection. -
NetBeans support[ Go to top ]
- Posted by: Nebojsa Vasiljevic
- Posted on: March 01 2007 11:07 EST
- in response to Joseph Ottinger
Is Tomcat 6 support (with Java EE 5 option for Web projects) planed for NetBeans 5.5.1 or as NetBeans update? Nebojsa -
Thanks Tomcat Devs[ Go to top ]
- Posted by: dev danke
- Posted on: March 01 2007 13:33 EST
- in response to Joseph Ottinger
A lot of people benefit from the work of current and past Tomcat developers and others who contribute. Thank you to all the devs, other contributors, and people who submit bug reports. Tomcat works pretty darn well for me! -
An alternative: Glassfish[ Go to top ]
- Posted by: null
- Posted on: March 02 2007 12:06 EST
- in response to Joseph Ottinger