[Tomcat 6] Maximum webapps in one instance
Hi, I use Tomcat in a RestFull application with cxf and spring. It works fine. Actually, this application is deploy in a single web app. My client ask if I can slip all the services (nearly 100) : he want a webapp for each service. So how many webapps can Tomcat support ? Regards, Philippe
Re: [Tomcat 6] Maximum webapps in one instance
philippe rouxel wrote: Hi, I use Tomcat in a RestFull application with cxf and spring. It works fine. Actually, this application is deploy in a single web app. My client ask if I can slip all the services (nearly 100) : he want a webapp for each service. So how many webapps can Tomcat support ? Supposing you mean split, not slip.. I do not think that there is any specific limit to the number of webapps, excepting total memory etc. One thing to watch however is that this may change the behaviour of your code : one webapp is totally independent of another, so you cannot necessarily access the same things from pieces of your code, if you split it up in separate webapps. You may also end up with a lot of duplication : for example if you have right now one part which parses parameters, you will have to do that in each webapp separately. You will also have one WEB-INF/web.xml per webapp, etc.. Maybe the end result will make your application more modular and flexible, but it seems like a lot of tedious work. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [Tomcat 6] Maximum webapps in one instance
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Phillipe, On 3/11/14, 11:03 AM, philippe rouxel wrote: I use Tomcat in a RestFull application with cxf and spring. It works fine. Actually, this application is deploy in a single web app. My client ask if I can slip all the services (nearly 100) : he want a webapp for each service. So how many webapps can Tomcat support ? There is a practical limit of 2^31 contexts that Tomcat can support, since Tomcat keeps all contexts in an array which has a 2^31 entry limit. I'm not sure if that counts parallel versions of the same context. Basically, you are limited to whatever you can fit in memory. Tomcat itself can run in about 12MiB of heap. Your web application will likely require much more than that, so hosting a large number of them will require an appropriately-sized heap. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTH1kTAAoJEBzwKT+lPKRYWGsP/3OGznHQzkK5XhLdYV5rHUYZ RMYh2wqSnbQajNJ86rYqel5zvK3bZVYZCqVNSefygYgS0WQuGo6wOCv+QfyIwfd+ PvyeVumidJ761hnEroeA/elJvRApvonlF7rLfvpRBN3hc1NcusS5gV23XF5OkHuA nJ5eRijw04dGRgwO7tPsWQ2rO0S/x7lZSaN/reP5qCT9AR71FDXaXS8yT48CMBqQ q/7Pq+1RCxC+7zNNE6MR+8SGMV9y3LDun/4e4VNU5nhI8Js9xgLSfvHsXG07sOUo DvqHoMymEQEg6kwcGsAE5dioF6DaTIh0pT6oeksWqhZVGPVN0AFm5yNTNARSv7iw w1ChrfPCKJYSi7qn9zspqRdYGBla9zkVB1hNeAfjAhJbhTJzUmNuZRa0la1Fgzsd rBarc6KGqCAJv74K1U8xeqa0PP1bQvQ45bcV0hJZkvZMSthveTytqsI8umv9q8pZ o1M6/dwVMsLfemVXMDIiHq38/yY4LukkyxqyMCN0hRaWFLRs3b+XFTT9sqVB3xql D5OJRnNXXeHCpArzzmxHA/oqTeD0uq+7bw/mYAULXFduENVRcFxoNH3v+ro2zAcf yXdlwbb6nrnFCoPPKyUTe72buOKjnk+THKsl9pVA4DprTQtnKRMvlKnCXg1amQM7 8cAkyAuQoulcrZHw2MLu =lZhS -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org