Moving jar files to Tomcat's common lib

I installed more than 50 web applications developed with Sun Java Studio Creator 2 in a Tomcat server and I kept getting an out of memory error (PermGen space).

I increased the PermGen size up to 256M and still get the same error, although not as quickly as before. Then I reset the PermGen size down to 64M, copied all jar files in build/web/WEB-INF/lib to Tomcat's common/lib and deleted those jar files in all 50 applications.

Now it seems to be working fine but I was wondering which side effects this could have. I would really appreciate some advice in this matter.

Jorge

[605 byte] By [JRCGa] at [2007-11-27 9:19:23]
# 1
I use tomcat like this too and i've never experienced any problem.... the downside is that all of you jar files are available to all your tomcat applications. Even for that ones that doesn't need it
moponta at 2007-7-12 22:11:35 > top of Java-index,Development Tools,Java Tools...
# 2
Thanks for your answer. How long have you been using Tomcat like this? Are you using it in a production environment?
JRCGa at 2007-7-12 22:11:35 > top of Java-index,Development Tools,Java Tools...
# 3

Tenho usado a mais ou menos 1 ano em ambiente de desenvolvimento freebsd e solaris e nunca me deu problema.

Mas n鉶 cheguei ao ponto de botar 50 aplica珲es pro tomcat , acredito que seja tamb閙 uma boa op玢o usar mais de um servidor para fazer isso evitando assim o gargalo e sobrecarga de um unico servidor.

moponta at 2007-7-12 22:11:35 > top of Java-index,Development Tools,Java Tools...
# 4

Sorry, though it is somehow similar to Spanish, I really don't understand Portuguese! I guess you wrote something like having it for over a year now in a development environment without having any problems and suggesting to have the applications spread among multiple servers; if that is what you really said, how could Single Sign On be handled that way?

JRCGa at 2007-7-12 22:11:35 > top of Java-index,Development Tools,Java Tools...
# 5

>Sorry, though it is somehow similar to Spanish, I really don't >understand Portuguese! I guess you wrote something like having it for >over a year now in a development environment without having any >problems and suggesting to have the applications spread among >multiple servers; if that is what you really said, how could Single Sign >On be handled that way?

You got it! your portuguese is not that bad eh! . I've never tried this before coz my tomcat deal only with 6 ( but heavy ) applications

U can create something like a redirector app. When the user types the page he desires if it is in another server your app redirect the user to that server....

of course that exists better solutions but try this and tell me ok!!!

moponta at 2007-7-12 22:11:35 > top of Java-index,Development Tools,Java Tools...
# 6
Thanks again! That should work for me, at least for a while. Anyway, the reason I have so many applications is I decided to break a large project into as many small pieces I could. So none of those 50 applications is a big one.
JRCGa at 2007-7-12 22:11:35 > top of Java-index,Development Tools,Java Tools...