Re: Reusing instances

2010-03-12 Thread Mladen Turk
On 03/12/2010 05:54 PM, Konstantin Kolinko wrote: I think that /work folder sharing is out of question. Most of concern here is with Jasper, but there can be also other files, and files written by applications. That shouldn't be a problem if guarded with some global mutex. Other option is to

Re: Reusing instances

2010-03-12 Thread Konstantin Kolinko
2010/3/11 Mladen Turk : > Second is to have application pools where one could > say: Serve WebAppX inside Default Application Pool > consisting of 1 ... N processes or use Custom Application > pool with some process limitation factors (memory, cpu usage, etc) > Note, that ServletContext.getContext

Re: Reusing instances

2010-03-11 Thread Mladen Turk
On 03/11/2010 05:49 PM, jean-frederic clere wrote: On 03/11/2010 05:27 PM, Mladen Turk wrote: More important one is to use the web server connectors directly. It's not about speed, but about eliminating connector as a point of failure. hm You still have to move the data for httpd (in C) to To

Re: Reusing instances

2010-03-11 Thread jean-frederic clere
On 03/11/2010 05:27 PM, Mladen Turk wrote: > More important one is to use the web server connectors directly. > It's not about speed, but about eliminating connector as a > point of failure. > hm You still have to move the data for httpd (in C) to Tomcat (in JAVA) so you still have a connector, n

Re: Reusing instances

2010-03-11 Thread Mladen Turk
On 03/11/2010 05:17 PM, Costin Manolache wrote: And what is the problem you are trying to solve ? Those are the same one for which modern web servers have multiple worker processes. One JVM crash doesn't kill the server, recycle the worker process on some condition (memory leak, number of requ

Re: Reusing instances

2010-03-11 Thread Costin Manolache
reasons we kill JK2. >>> JNI inproc connector simply didn't work. >>> >> >> One of the big problem is that the prefork and worker models may use >> several process for the same session and you can't fix a session to a >> JVM process... >> &

Re: Reusing instances

2010-03-11 Thread Mladen Turk
a flat cluster with one node for each process and that doesn't scale. In essence it is a cluster, and that's why the subject title is 'reusing instances' since it lives in the same directory. Regards -- ^TM --

Re: Reusing instances

2010-03-10 Thread jean-frederic clere
On 03/11/2010 08:30 AM, Mladen Turk wrote: > On 03/11/2010 07:52 AM, Costin Manolache wrote: >> On Wed, Mar 10, 2010 at 10:28 PM, Mladen Turk wrote: >> >>> On 03/10/2010 11:10 PM, Costin Manolache wrote: >>> You want to have each webapp served by a different process ? Or even different v

Re: Reusing instances

2010-03-10 Thread Mladen Turk
On 03/11/2010 07:52 AM, Costin Manolache wrote: On Wed, Mar 10, 2010 at 10:28 PM, Mladen Turk wrote: On 03/10/2010 11:10 PM, Costin Manolache wrote: You want to have each webapp served by a different process ? Or even different versions of a webapp in a different process ? First goal is t

Re: Reusing instances

2010-03-10 Thread Costin Manolache
On Wed, Mar 10, 2010 at 10:28 PM, Mladen Turk wrote: > On 03/10/2010 11:10 PM, Costin Manolache wrote: > >> You want to have each webapp served by a different process ? >> Or even different versions of a webapp in a different process ? >> >> > First goal is to get rid of connectors and use Tomcat

Re: Reusing instances

2010-03-10 Thread Mladen Turk
On 03/10/2010 11:10 PM, Costin Manolache wrote: You want to have each webapp served by a different process ? Or even different versions of a webapp in a different process ? First goal is to get rid of connectors and use Tomcat directly inside httpd or IIS or new Commons Runtime (replacing Tomc

Re: Reusing instances

2010-03-10 Thread Costin Manolache
You want to have each webapp served by a different process ? Or even different versions of a webapp in a different process ? Sounds very good ! Costin On Wed, Mar 10, 2010 at 6:17 AM, Mladen Turk wrote: > On 03/10/2010 02:58 PM, Mark Thomas wrote: > >> >> Work directory, temp directory come to

Re: Reusing instances

2010-03-10 Thread Mladen Turk
On 03/10/2010 02:58 PM, Mark Thomas wrote: Work directory, temp directory come to mind. Easier to use a CATALINA_HOME/CATALINA_BASE style approach. The idea IS to use the same directory and same files. I'm trying to locate things that presume Tomcat is running as self contained singleton app

Re: Reusing instances

2010-03-10 Thread Mark Thomas
On 10/03/2010 13:55, Mladen Turk wrote: > Hi, > > Anyone knows what would be the major points that would > be problematic when launching multiple instances in the same > directory. > Lets presume that connectors share the same sockets among > multiple virtual machines using the JVM loaded inside e

Reusing instances

2010-03-10 Thread Mladen Turk
Hi, Anyone knows what would be the major points that would be problematic when launching multiple instances in the same directory. Lets presume that connectors share the same sockets among multiple virtual machines using the JVM loaded inside each Httpd or IIS worker process for example. As I se