Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

deploying multiple instances of same application (.war file) on tomcat 5.5

Thread view: 
julie.iammarino@gmail.com - 30 Mar 2006 21:44 GMT
We have a web application running on tomcat 5.5 that works fine when
deployed independently. However, we would like to deploy multiple
instances of the same application on the same server. We have built a
new war file of the same application with a different name including a
new context file for the application. This new war file also runs fine
independently but, when deployed along with the original application,
generates a Java Heap Space error.

Is there a special way to deploy multiple instances of the same
application on the same server using Tomcat?

Please help us! Thank you!!!
Andrea Desole - 31 Mar 2006 09:13 GMT
> We have a web application running on tomcat 5.5 that works fine when
> deployed independently. However, we would like to deploy multiple
[quoted text clipped - 3 lines]
> independently but, when deployed along with the original application,
> generates a Java Heap Space error.

You mean you run out of memory? That's strange

> Is there a special way to deploy multiple instances of the same
> application on the same server using Tomcat?

I haven't really used 5.5, but I don't think so. What you did sounds
fine. Are you sure your code is correct? You don't do anything special
with class loaders, do you? Do you use external resources? Maybe
something happens when the two applications are accessing, for example,
the same database.
There are a lot of options that don't involve tomcat.
You should probably use a profiler
julie.iammarino@gmail.com - 31 Mar 2006 16:35 GMT
Hi! Thank you for your response.

We aren't doing anything special with class loaders, and the code is
exactly the same in both instances except for the name of the
datasource and which database the apps are connecting to.

We are going to try to use the NetBeans profiler. Thanks for your
suggestion!


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.