You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Gerhard Froehlich <g-...@gmx.de> on 2002/03/16 12:36:13 UTC

Performance Guide

Hi Team,
ok another one. Every new release rises up
the same question - Cocoon doesn't scale, what
can I do?

Often we can solve this problem, but we do that
very redundant. 

Ok tomorrow I will sit down on my ass and start
to write a peformance guide. I will use the
mail archive and my own experiences. I want
this performance guide as a top level document
on the Cocoon homepage. Maybe after "Installation".

What can you do? Hmm, give me any reference to the
Mail Archive or whatever you know, that I can
use to write this guide.

The problem is I'm on business travel the whole
next week and I don't know if I can finish it
in time with the new release. But it shouldn't
be a problem to add it later, or?

  ~Gerhard
 
--------------------------
Hey! It compiles! Ship it!
--------------------------


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


Re: Performance Guide

Posted by Ivelin Ivanov <iv...@iname.com>.
Gerhard,

I am sorry, but there seem to be a misunderstanding.
I am a Cocoon newcomer. Don't have a document nor experience with large
scale Cocoon tuning.

In production we use JSP+Struts for front end.

I would like to swap this for Cocoon as early as I know how to tune it to
scale to the numbers we need.

I can offer my help for figuring out these tuning techniques, but I need the
direction of a more experienced Cocoon developer.

Best regards,

Ivelin


----- Original Message -----
From: "Gerhard Froehlich" <g-...@gmx.de>
To: <co...@xml.apache.org>; "Ivelin Ivanov" <iv...@sbcglobal.net>
Sent: Sunday, March 17, 2002 5:55 AM
Subject: RE: Performance Guide


> Hi,
>
> >From: Ivelin Ivanov [mailto:ivelin@iname.com]
> >
> >The minute I have a document like that, I'll use it to do a performance
> >comparison demo in my company for JSP/Struts vs Cocoon.
> >
> >I've been trying to push it lately, but am not too agressive, because
don't
> >quite understand the performance implications for large scale portals.
Ours
> >is not the biggest, but handles about 1000 db inserts per second.
>
> Kool, just post it t the dev list. I can review the document and add the
things
> which are missing!
>
>   ~Gerhard
>
> "Sex... the pleasure is momentry, the position ridiculous,
> and the expense damnable.
> (Lord Chesterfield)"
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org


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


Re: Tomcat/Cocoon on Linux woes

Posted by Michael Hartle <mh...@hartle-klug.com>.
Matthew Langham wrote:

>What we have found is that reducing the number of file handles will cause
>the hang to happen sooner. This however may be a separate thing and have
>nothing to do with the original problem. Of course if file handles are being
>leaked somewhere then we would still need to find out where that problem is
>coming from.
>
>We are using Sun JDK 1.3.1, Tomcat 3.3.
>
Which versions of SuSE Linux did you try ?

We have a test development & presentation system up and running using 
SuSE Linux 7.2 Professional, Suns JDK 1.4.0 and Tomcat 4.0.1 that shows 
no such issues. When we tested several different configurations, we 
found that Suns JDK 1.3.1 would not run properly, but segfault often on 
our system (P4 1,5Ghz/512MB); switching to Blackdowns JDK 1.3.1 solved 
this issue completely.

Then we found that the JDK1.3.1 still suffers from many VM-slowing or 
-killing bugs like a network/garbage-collector issue ("many parallel 
connections" definitely ring a bell here), a multithreading JPEG encoder 
bug and others. After switching to Suns JDK 1.4.0, these bugs seem to 
have disappeared and we are quite confident regarding the stability of 
the system.

Best regards,

Michael Hartle,
Hartle & Klug GbR



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


Tomcat/Cocoon on Linux woes

Posted by Matthew Langham <ml...@s-und-n.de>.
(Posted this yesterday from another email-address but it hasn't made it thru
yet)

--------------------------------------------------------
Help: Tomcat 3.3 with Cocoon 2.0 hangs(?) on SuSE Linux!
--------------------------------------------------------

We are currently experiencing a PITA problem on several SuSE Linux systems
(with different kernel versions) where Tomcat 3.3 will just seem to hang
after a while. I am hoping someone out there has perhaps an idea what we
need to examine to find out what is going on.

We are using WGET to send parallel requests into Cocoon 2.0. In all there
are about 4 - 6 requests being processed in parallel at any one time. The
actual pipeline that is called fetches XML data from an external source and
then uses the Cocoon caching mechanism to keep the data in the cache.

The systems will run ok for various lengths of time (we have seen 2000-3000
requests be processed before the hang - but also seen 17000 requests before
the same thing happens) before basically just stoping. There are no errors
to be found in any of the logs (tomcat, Cocoon, console). Tomcat just does
not respond. When looking at the vital signs of the system - what we see
does not really help us to see what is going on.

We are currently checking Cocoon and our additional components for memory
leaks (which would seem to be the most obvious cause) but if this is the
case shouldn't we be seeing OutOfMemory Errors somewhere? We have also
backported fixes that were made in the StoreJanitor stuff in later Cocoon
versions. Using TOP to check on the processes seems to indicate a growth in
the number of Java threads - but this is may be caused by the incoming
requests not being processed. So we are not sure whether this is the cause -
or just a result of the hang.

What we have found is that reducing the number of file handles will cause
the hang to happen sooner. This however may be a separate thing and have
nothing to do with the original problem. Of course if file handles are being
leaked somewhere then we would still need to find out where that problem is
coming from.

We are using Sun JDK 1.3.1, Tomcat 3.3.

Ok, so here are my questions to you Linux/Cocoon gurus out there:

Have you seen anything like this happen - and if so what caused it?
How many file handles do you have set on your Linux system? Do you have some
pointers to the number we should have?

We are also considering running the same application in Resin to see if this
prompts at least some error message. What do you think?

It really does seem as though the application is eating something up and
then running out of whatever it is - but it is just not telling us :(.

Sorry this is so long but I am hoping some of the information is setting off
an alarm-bell or two out there.

Any tips, ideas welcome.

Thanks

Matthew Langham

--
Open Source Group               sunShine - Lighting up e:Business
=================================================================
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  mlangham@s-und-n.de - http://www.s-und-n.de
           Weblogging at: http://www.need-a-cake.com
=================================================================



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


Tomcat/Cocoon on Linux woes

Posted by Matthew Langham <ml...@s-und-n.de>.
(Posted this yesterday from another email-address but it hasn't made it thru
yet)

--------------------------------------------------------
Help: Tomcat 3.3 with Cocoon 2.0 hangs(?) on SuSE Linux!
--------------------------------------------------------

We are currently experiencing a PITA problem on several SuSE Linux systems
(with different kernel versions) where Tomcat 3.3 will just seem to hang
after a while. I am hoping someone out there has perhaps an idea what we
need to examine to find out what is going on.

We are using WGET to send parallel requests into Cocoon 2.0. In all there
are about 4 - 6 requests being processed in parallel at any one time. The
actual pipeline that is called fetches XML data from an external source and
then uses the Cocoon caching mechanism to keep the data in the cache.

The systems will run ok for various lengths of time (we have seen 2000-3000
requests be processed before the hang - but also seen 17000 requests before
the same thing happens) before basically just stoping. There are no errors
to be found in any of the logs (tomcat, Cocoon, console). Tomcat just does
not respond. When looking at the vital signs of the system - what we see
does not really help us to see what is going on.

We are currently checking Cocoon and our additional components for memory
leaks (which would seem to be the most obvious cause) but if this is the
case shouldn't we be seeing OutOfMemory Errors somewhere? We have also
backported fixes that were made in the StoreJanitor stuff in later Cocoon
versions. Using TOP to check on the processes seems to indicate a growth in
the number of Java threads - but this is may be caused by the incoming
requests not being processed. So we are not sure whether this is the cause -
or just a result of the hang.

What we have found is that reducing the number of file handles will cause
the hang to happen sooner. This however may be a separate thing and have
nothing to do with the original problem. Of course if file handles are being
leaked somewhere then we would still need to find out where that problem is
coming from.

We are using Sun JDK 1.3.1, Tomcat 3.3.

Ok, so here are my questions to you Linux/Cocoon gurus out there:

Have you seen anything like this happen - and if so what caused it?
How many file handles do you have set on your Linux system? Do you have some
pointers to the number we should have?

We are also considering running the same application in Resin to see if this
prompts at least some error message. What do you think?

It really does seem as though the application is eating something up and
then running out of whatever it is - but it is just not telling us :(.

Sorry this is so long but I am hoping some of the information is setting off
an alarm-bell or two out there.

Any tips, ideas welcome.

Thanks

Matthew Langham

--
Open Source Group               sunShine - Lighting up e:Business
=================================================================
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  mlangham@s-und-n.de - http://www.s-und-n.de
           Weblogging at: http://www.need-a-cake.com
=================================================================



---------------------------------------------------------------------
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>


RE: Performance Guide

Posted by Gerhard Froehlich <g-...@gmx.de>.
Hi,

>From: Ivelin Ivanov [mailto:ivelin@iname.com]
>
>The minute I have a document like that, I'll use it to do a performance
>comparison demo in my company for JSP/Struts vs Cocoon.
>
>I've been trying to push it lately, but am not too agressive, because don't
>quite understand the performance implications for large scale portals. Ours
>is not the biggest, but handles about 1000 db inserts per second.

Kool, just post it t the dev list. I can review the document and add the things 
which are missing!

  ~Gerhard
 
"Sex... the pleasure is momentry, the position ridiculous,
and the expense damnable.
(Lord Chesterfield)"

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


Re: Performance Guide

Posted by Ivelin Ivanov <iv...@iname.com>.
All right !

The minute I have a document like that, I'll use it to do a performance
comparison demo in my company for JSP/Struts vs Cocoon.

I've been trying to push it lately, but am not too agressive, because don't
quite understand the performance implications for large scale portals. Ours
is not the biggest, but handles about 1000 db inserts per second.


----- Original Message -----
From: "Gerhard Froehlich" <g-...@gmx.de>
To: "Cocoon Developer List" <co...@xml.apache.org>
Sent: Saturday, March 16, 2002 5:36 AM
Subject: Performance Guide


> Hi Team,
> ok another one. Every new release rises up
> the same question - Cocoon doesn't scale, what
> can I do?
>
> Often we can solve this problem, but we do that
> very redundant.
>
> Ok tomorrow I will sit down on my ass and start
> to write a peformance guide. I will use the
> mail archive and my own experiences. I want
> this performance guide as a top level document
> on the Cocoon homepage. Maybe after "Installation".
>
> What can you do? Hmm, give me any reference to the
> Mail Archive or whatever you know, that I can
> use to write this guide.
>
> The problem is I'm on business travel the whole
> next week and I don't know if I can finish it
> in time with the new release. But it shouldn't
> be a problem to add it later, or?
>
>   ~Gerhard
>
> --------------------------
> Hey! It compiles! Ship it!
> --------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


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