Re: One process per webapp

2011-06-15 Thread cowwoc
Hi Tim, Tim Funk-2 wrote: > > 1) If relying on native - it might be easiest to place the > System.loadLibrary() and its classes in the common classloader. Then use a > Valve to call System.loadLibrary() so it's only called once. Hack, yes ... > also very simple to do. This might allow webapps t

Re: One process per webapp

2011-06-14 Thread cowwoc
Christopher Schultz-2 wrote: > > So, now you want Tomcat to launch multiple copies of itself as hot > standbys for /potential future webapp deployments/? We'll never do this. > The exact mechanism is not fixed in stone (I'm sure we could improve on the initial idea). One approach is that admin

Re: One process per webapp

2011-06-14 Thread cowwoc
Christopher Schultz-2 wrote: > > Can't Netbeans bounce the Tomcat JVM for you? > Sure, but if we use the existing mechanism of waiting for for the existing instance to shut down before restarting it then it takes at least 20 seconds each time. I'm looking for a second or less. Christopher Sc

Re: One process per webapp

2011-06-14 Thread cowwoc
>> 1. Always bounce Tomcat directly instead of re-loading the webapp This is too slow (10-15 seconds) in its current form. If you use the mechanism I'm proposing restart time is instant (you have a blank Tomcat instance waiting to pick up a new webapp). >> 2. Fix the webapp so it doesn't bo

Re: One process per webapp

2011-06-14 Thread cowwoc
Pid * wrote: > > You can, right now, start blank Tomcat instances and deploy apps to them > - managing the instance using JMX. > Granted I can do a lot of this myself, but it's a lot of work for every user to reinvent this wheel. This kind of feature needs to be improved in the official releas

Re: One process per webapp

2011-06-14 Thread cowwoc
Christopher Schultz-2 wrote: > > Why bother redeploying, then? Instead of doing "ant redeploy", just do > "ant bounce" or something similar. > I am running inside Netbeans (remember the focus here is on improving development productivity, less so on improving production deployments). Modifying

Re: One process per webapp

2011-06-13 Thread cowwoc
ntly we're at ten seconds. Gili Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Gili, > > On 6/13/2011 1:07 PM, cowwoc wrote: >> I posted a RFE at >> https://issues.apache.org/bugzilla/show_bug.cgi?id=51366 >> as

One process per webapp

2011-06-13 Thread cowwoc
Hi, I posted a RFE at https://issues.apache.org/bugzilla/show_bug.cgi?id=51366 asking for the ability to seamlessly deploy webapps into separate JVMs. Tomcat 7.0's parallel deployment sounds nice but it still doesn't solve the JNI and memory leak problems that haunt a single JVM architecture. P