You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Marc Gibert <ma...@cometatech.com> on 2001/04/17 13:28:11 UTC

Heapsize

Hi!

We're running cocoon on a production server, with great success. We've
been suffering some "out of Memory" errors lately, and having a look at
the FAQ, it tells me to "configure your JVMs maximum heap size setting
to be as large as possible and the same as the              heapsize
line in cocoon.properties."

Our server has 1Gb RAM. What would be the JVM reasonable maximum heap
size for this setting?
The default (in cocoon.properties) is 60.000.000, would 512.000.000 be
too much? Any hints?

TIA.
-- 
Sincerely,
Marc Gibert Ginestà               e-mail: marcg@cometatech.com
Cometa Technologies, S.L.         URL: http://www.cometatech.com
Telf.: 93 231 84 90               Fax: 93 245 93 43

Re: Heapsize

Posted by Marc Gibert <ma...@cometatech.com>.
Berin Loritsch wrote:
> 
> How many instances of Cocoon are you running?  We have a server that
> has one instance running and 512MB RAM, so that's what we set our JVM
> for.  We haven't reached that amount by far.

What do you mean "instances of Cocoon"? We have Apache+mod_jserv and
there are approx.:

host:~# ps ax | grep jdk | wc
     13      78    1008

host:~# ps ax | grep httpd | wc
     35     176    1908

The JavaVM parameters are:

java -Xms256m -Xmx450m

Is this some sort of inconsistency between cocoon.properties and these
parameters?
In these machine there's no other significant software (the DB engine is
in another host), apart from sendmail and ftpd.

-- 
Sincerely,
Marc Gibert Ginestà               e-mail: marcg@cometatech.com
Cometa Technologies, S.L.         URL: http://www.cometatech.com
Telf.: 93 231 84 90               Fax: 93 245 93 43

Re: Heapsize

Posted by Berin Loritsch <bl...@apache.org>.
Marc Gibert wrote:
> 
> Hi!
> 
> We're running cocoon on a production server, with great success. We've
> been suffering some "out of Memory" errors lately, and having a look at
> the FAQ, it tells me to "configure your JVMs maximum heap size setting
> to be as large as possible and the same as the              heapsize
> line in cocoon.properties."
> 
> Our server has 1Gb RAM. What would be the JVM reasonable maximum heap
> size for this setting?
> The default (in cocoon.properties) is 60.000.000, would 512.000.000 be
> too much? Any hints?

How many instances of Cocoon are you running?  We have a server that
has one instance running and 512MB RAM, so that's what we set our JVM
for.  We haven't reached that amount by far.

As to RAM requirements, take a few evaluations--what else is running on
the machine, how much RAM does it take for them to run comfortably.
Remember, just because the JVM is set to use a max of 512 MB doesn't
mean that it always does.

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>