Re: One process per webapp

2011-06-15 Thread Federico Fissore
for the record, for this very need, with tomcat 6, we made our own cloud of tomcats we have tens of embedded tomcats running each a single webapp and each with its own jvm as needed, we start the same webapp on another server, then switch the front end proxy setting to forward the traffic to

Re: One process per webapp

2011-06-15 Thread Tim Funk
** Observations ... 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 to be reloaded

Re: One process per webapp

2011-06-15 Thread Mladen Turk
On 06/15/2011 02:27 PM, Tim Funk wrote: ** Observations ... Hack, yes ... also very simple to do. This might allow webapps to be reloaded without a problem [depending on the nature of the change.] 2) apache httpd can easily handle the proxy scenario. There are hacks and use that other web

Re: One process per webapp

2011-06-15 Thread cowwoc
of this is technically doable right now but it's not easy to do productively. Gili -- View this message in context: http://old.nabble.com/One-process-per-webapp-tp31836121p31851393.html Sent from the Tomcat - User mailing list archive at Nabble.com

Re: One process per webapp

2011-06-15 Thread Pid
On 15/06/2011 14:20, cowwoc wrote: If this functionality was built into Tomcat It wouldn't be built into Tomcat, you're asking for a management application and/or proxy. The first might run inside Tomcat and the second sits in front of it - frequently implemented with Apache HTTPD (mod_proxy,

Re: One process per webapp

2011-06-14 Thread Pid
On 13/06/2011 22:53, Christopher Schultz wrote: 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 asking for the ability to seamlessly deploy webapps into separate JVMs. So you want Tomcat to have an option to run as a

Re: One process per webapp

2011-06-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gili, On 6/13/2011 9:26 PM, cowwoc wrote: Assuming we simply use one webapp per Tomcat instance I'm still looking for two changes: * Restart the entire JVM on webapp redeploy (to avoid JNI and ClassLoader problems) Why bother redeploying,

Re: One process per webapp

2011-06-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 6/14/2011 9:34 AM, Pid wrote: On 13/06/2011 22:53, Christopher Schultz wrote: What single management interface are you describing in your enhancement comments? The Tomcat manager webapp? It's trivial to run a manager in each JVM and use

Re: One process per webapp

2011-06-14 Thread cowwoc
with Tomcat 7.x) Gili -- View this message in context: http://old.nabble.com/One-process-per-webapp-tp31836121p31845924.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: One process per webapp

2011-06-14 Thread cowwoc
100% of offending libraries/webapps. Running webapps in their own JVM would be a 100% fix without having to resort to any magic/hacks. Gili -- View this message in context: http://old.nabble.com/One-process-per-webapp-tp31836121p31846007.html Sent from the Tomcat - User mailing list archive

Re: One process per webapp

2011-06-14 Thread cowwoc
this in terms of simple script files. It's a lot more involved. Gili -- View this message in context: http://old.nabble.com/One-process-per-webapp-tp31836121p31846107.html Sent from the Tomcat - User mailing list archive at Nabble.com

Re: One process per webapp

2011-06-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gili, On 6/14/2011 3:28 PM, cowwoc wrote: 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

Re: One process per webapp

2011-06-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gili, On 6/14/2011 3:54 PM, cowwoc wrote: 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

Re: One process per webapp

2011-06-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gili, (Sorry, your message was structured in a way I didn't expect, so I didn't see the lower portion). On 6/14/2011 3:54 PM, cowwoc wrote: Chris, I'm asking for a lot more sophistication than simply restarting the JVM. I'm talking about sticking

Re: One process per webapp

2011-06-14 Thread cowwoc
this message in context: http://old.nabble.com/One-process-per-webapp-tp31836121p31847022.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

Re: One process per webapp

2011-06-14 Thread cowwoc
as an appliance. I'm making regular updates to the library and I need to restart it quickly to speed up the debugging process. Gili -- View this message in context: http://old.nabble.com/One-process-per-webapp-tp31836121p31847177.html Sent from the Tomcat - User mailing list archive at Nabble.com

One process per webapp

2011-06-13 Thread cowwoc
. Please read the proposal and let me know what you think. Thanks, Gili -- View this message in context: http://old.nabble.com/One-process-per-webapp-tp31836121p31836121.html Sent from the Tomcat - User mailing list archive at Nabble.com

Re: One process per webapp

2011-06-13 Thread Christopher Schultz
-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 asking for the ability to seamlessly deploy webapps into separate JVMs. So you want Tomcat to have an option to run as a

Re: One process per webapp

2011-06-13 Thread cowwoc
...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://old.nabble.com/One-process-per-webapp-tp31836121p31839136.html Sent from the Tomcat - User mailing list archive at Nabble.com