You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Tomasz Nowak <tn...@netventure.pl> on 2006/03/01 13:29:53 UTC

Re: Scaling Cocoon to handle a heavy load

David Bishop <d....@waypointsystems.co.uk> wrote:
>
> Hello,
> 
> I am hosting a website for a european project which hosts a number of
> complicated database driven questionnaires on genetic testing the
> site receives high peaks of usage and around 5000 visits, 200'000
> hits per month. The entire site is written in cocoon and I am having
> problems in that during peak usage cocoon starts to return blank
> pages and errors appear in the log from normally error free, the
> server begins after that point to degrade in performance and Tomcat
> ends up returning java.lang.OutOfMemoryError errors.

Quite the same problems here. 
http://www.mail-archive.com/users@tomcat.apache.org/msg07115.html

-- 
T.


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


Re: Scaling Cocoon to handle a heavy load

Posted by Tomasz Nowak <tn...@netventure.pl>.
Ralph Goers <Ra...@dslextreme.com> wrote:
>
> I had problems in production recently. When it hangs get a JVM stack
> trace.  You may find that you have lock contention or something else
> that will readily show up.

http://www.biochip.pl/hs_err_pid17443.log.txt

So what does it tell you?

It tells me only that:
- Java seems to dont care about my -XX:MaxPermSize=256m,
  (do you see the PSPermGen, OldGen?)
- If that crashed because of a PermSpace, why has it logged
  "OutOfMemoryError: Heap space" not "OutOfMemoryError: PermGen space"?

-- 
T.


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


Re: Scaling Cocoon to handle a heavy load

Posted by Ralph Goers <Ra...@dslextreme.com>.
I had problems in production recently. When it hangs get a JVM stack 
trace.  You may find that you have lock contention or something else 
that will readily show up.

Ralph

Tomasz Nowak wrote:
> Ralph Goers <Ra...@dslextreme.com> wrote:
>   
>> The version I am running in production is slightly older - it was a
>> snapshot a little bit before 2.1.7 was released.  We don't use XSPs,
>> database, mail or lucene though. And we see absolutely no memory
>> leaks. 
>>
>> Have you run your app under a profile?
>>     
>
> I'm evaluating jProfiler on development machine, but I can't
> replicate the hangs. I'm not sure if I able to plug the
> profiler class into the production server. Anyway I'm
> just a Cocoon user willing to build webapplication easily ;)
>
> PS. For the time being I've found out that increasing PermSpace
> to (!) 512m for 8 cocoon instances might be helpfull.
> Is that possible and reasonable?
>
>   

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


Re: Scaling Cocoon to handle a heavy load

Posted by Tomasz Nowak <tn...@netventure.pl>.
Ralph Goers <Ra...@dslextreme.com> wrote:
>
> The version I am running in production is slightly older - it was a
> snapshot a little bit before 2.1.7 was released.  We don't use XSPs,
> database, mail or lucene though. And we see absolutely no memory
> leaks. 
> 
> Have you run your app under a profile?

I'm evaluating jProfiler on development machine, but I can't
replicate the hangs. I'm not sure if I able to plug the
profiler class into the production server. Anyway I'm
just a Cocoon user willing to build webapplication easily ;)

PS. For the time being I've found out that increasing PermSpace
to (!) 512m for 8 cocoon instances might be helpfull.
Is that possible and reasonable?

-- 
T.


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


Re: Scaling Cocoon to handle a heavy load

Posted by Ralph Goers <Ra...@dslextreme.com>.
Tomasz Nowak wrote:
> Please read again the whole thread, also the fork of it.
>
> Tomcat 5.5.15, 1024m heap, 256m perm, 8 vhost, 8 webapps, each webapp
> is Cocoon 2.1.7, the only blocks: databases, xsp, mail, lucene.
> No advanced xsp's. Lucene not used. Total load < 20-30 concurrent req.
>
> And these Cocoons crash jvm 1.5.0_06-b05 - Tomcat hangs with no error
> at all or hangs with OOE heap space error. Randomly, once-twice a day.
>
> They say the webapp has memory leaks probably.
> Shall I believe them? ;)
>   
The version I am running in production is slightly older - it was a 
snapshot a little bit before 2.1.7 was released.  We don't use XSPs, 
database, mail or lucene though. And we see absolutely no memory leaks. 

Have you run your app under a profile?

Ralph

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


Re: Scaling Cocoon to handle a heavy load

Posted by Tomasz Nowak <tn...@netventure.pl>.
Ralph Goers <Ra...@dslextreme.com> wrote:
>
> I'm not sure about your problem since it doesn't mention Cocoon, but
> I'm wondering what version of Cocoon is being used. This sounds like
> problems with Jisp. That was solved by moving to ehCache.

Please read again the whole thread, also the fork of it.

Tomcat 5.5.15, 1024m heap, 256m perm, 8 vhost, 8 webapps, each webapp
is Cocoon 2.1.7, the only blocks: databases, xsp, mail, lucene.
No advanced xsp's. Lucene not used. Total load < 20-30 concurrent req.

And these Cocoons crash jvm 1.5.0_06-b05 - Tomcat hangs with no error
at all or hangs with OOE heap space error. Randomly, once-twice a day.

They say the webapp has memory leaks probably.
Shall I believe them? ;)

-- 
T.



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


Re: Scaling Cocoon to handle a heavy load

Posted by Ralph Goers <Ra...@dslextreme.com>.
I'm not sure about your problem since it doesn't mention Cocoon, but I'm 
wondering what version of Cocoon is being used. This sounds like 
problems with Jisp. That was solved by moving to ehCache.

Tomasz Nowak wrote:
> David Bishop <d....@waypointsystems.co.uk> wrote:
>   
>> Hello,
>>
>> I am hosting a website for a european project which hosts a number of
>> complicated database driven questionnaires on genetic testing the
>> site receives high peaks of usage and around 5000 visits, 200'000
>> hits per month. The entire site is written in cocoon and I am having
>> problems in that during peak usage cocoon starts to return blank
>> pages and errors appear in the log from normally error free, the
>> server begins after that point to degrade in performance and Tomcat
>> ends up returning java.lang.OutOfMemoryError errors.
>>     
>
> Quite the same problems here. 
> http://www.mail-archive.com/users@tomcat.apache.org/msg07115.html
>
>   

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