You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Grzegorz Tañczyk <go...@polzone.pl> on 2004/12/21 09:22:19 UTC

Re[2]: Out of memory problem

Hello Antonio,

Tomcat 4.1 and java 1.4.2

Tuesday, December 21, 2004, 3:44:37 AM, you wrote:
AG> What version of java and tomcat are you using?

AG> Best Regards,

AG> Antonio Gallardo.


AG> On Lun, 20 de Diciembre de 2004, 12:18, Grzegorz Tañczyk dijo:
>> Hello,
>>
>>   Cocoon 2.1.6 is running on Fedora Core 1, 512mb ram with celeron 2.4ghz.
>>   I'm not sure what is the reason of this problem. When I try to
>>   simulate high traffic with ApacheBenchmark tool then
>> java.lang.OutOfMemoryError
>>   does not happen. But after few hours(5-10) of running on real
>>   traffic(1-2 requests per second) Cocoon/Tomcat hangs up and start to
>>   fill catalina.out with error message presented below. I'm planning
>>   to get on better server from 1st of January, but before that I would
>>   like to fix this problem. Tell what additional information do I have
>>   to provide for You, to help to recognize this problem.
>>
>>   I really need Your help. We expect higher traffic on our site in next
>> week, so
>>   the situation is critical.
>>
>> java.lang.NullPointerException
>>         at
>> org.apache.cocoon.components.CocoonComponentManager.release(Unknown
>> Source)
>> [cut]
-- 
Best regards,
 Grzegorz                            mailto:goliatus@polzone.pl


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re[4]: Out of memory problem

Posted by Grzegorz Tañczyk <go...@polzone.pl>.
Hello Antonio,

  Thanks for the answer. We bought new hardware few days ago, and now
  I'm testing it. I can't understand one thing. I've set Xmx570m in
  java opts, freememory=500000000, heapsize= 560000000 in
  cocoon.xconf. In samples/status.html I see:
  * total: 563.69MB
  that is correct, but when I check with top command I see that java
  process takes 652mb(VIRT column). How to explain it?

  I use slackware10, cocoon-2.1.6, java1.5.0 and tomcat5.5.4 now on P4, 1gb memory

Tuesday, December 21, 2004, 10:07:00 AM, you wrote:
AG> JAVA_OPTS='-Xmx128m'

AG> In this case, tomcat will use 128 MB of ram. You mileage can vary. You can
AG> try ie: -Xmx256m

AG> Best Regards,

AG> Antonio Gallardo.

-- 
Best regards,
 Grzegorz                            mailto:goliatus@polzone.pl


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Re[2]: Out of memory problem

Posted by Antonio Gallardo <ag...@agssa.net>.
On Mar, 21 de Diciembre de 2004, 2:22, Grzegorz Tañczyk dijo:
> Hello Antonio,
>
> Tomcat 4.1 and java 1.4.2

I expected more exactly versions. :-D

Well, I hope you are using 1.4.2_06 and tomcat 4.1.31.

Are you tried to add more memory to tomcat?

A way to do that is to edit $TOMCAT_HOME/bin/catalina.sh and add there,
for example:

JAVA_OPTS='-Xmx128m'

In this case, tomcat will use 128 MB of ram. You mileage can vary. You can
try ie: -Xmx256m

Best Regards,

Antonio Gallardo.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org