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



julie.iammarino@xxxxxxxxx wrote:
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.

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
.



Relevant Pages

  • deploying multiple instances of same application (.war file) on tomcat 5.5
    ... instances of the same application on the same server. ... This new war file also runs fine ... Is there a special way to deploy multiple instances of the same ... application on the same server using Tomcat? ...
    (comp.lang.java.programmer)
  • Re: Tomcat deployment issue
    ... > I built a fairly simple web application in Websphere studio and ... > The Tomcat info says that I should only copy that war file in the ... unpacking and deployment - search for "deploy" ...
    (comp.lang.java.programmer)
  • Tomcat deployment issue
    ... First of all I'm a newbie. ... I built a fairly simple web application in Websphere studio and ... The Tomcat info says that I should only copy that war file in the ...
    (comp.lang.java.programmer)
  • Re: Question on J2EE deployment
    ... just copy your war file into the application base directory and ... Tomcat will ... I can deploy them on my local server via ... but I don't know how to deploy them on my Internet ...
    (comp.lang.java.programmer)
  • Re: war file sought
    ... I don't believe you need a server to build a war file. ... Daniel Pitts' Tech Blog: ...
    (comp.lang.java.programmer)