--- Jacob Kjome <[EMAIL PROTECTED]> wrote: > At 10:57 PM 8/30/2004 -0700, you wrote: > >I'm not worried about the transient memory used by > the > >Tomcat instance for it to serve servlets. > > > >But I'm worried about the memory permanently > allocated > >for a Tomcat instance. Eg. A servlet in a > particular > >Tomcat instance, may load the entire database into > the > >memory for efficiency reasons. Now this Tomcat > >instance requires X amount of memory to keep the > >database and all the stuff related to that Tomcat > >instance (except transient memory) to keep them in > >memory. And it requires additional variable amount > of > >transient memory to serve it, that depends on the > >demand for that Tomcat instance. > > > >What I need to know is can I restrict the size of > X? > > > >If the memory allocated permanently to a particular > >Tomcat instance cannot be restricted, Can I > restrict > >the total memory allocation (ie. permanent + > transient > >memory) for that Tomcat instance? > > The VM starts up with a default of 64 meg of RAM Max > regardless of physical > memory. You can increase this using -Xmx (with the > Sun VM). For > example... java -Xmx 256m > > Any out of memory errors you get are because the > amount of memory needed by > the application exceeds the maximum memory barrier > of the VM. The only way > around this is to get rid of memory leaks and/or > increase the maximum > memory for the VM. > > look up -Xmx on Google for more info > > Jake >
Limiting memory for the JVM looks like solves my issue. Can I run different JVM per Tomcat instance on a single server? Sagara _______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]