You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Erron Austin <er...@gmail.com> on 2007/04/06 21:29:05 UTC

Cocoon Portal 2.1.9 - Load Testing

In load testing our portal on Linux, Java 1.4.x (not quite sure of the
Ram),  I was throwing concurrent 400 users.  An issue that I'm seeing is
that I keep getting this message in the logs for each page:

..........

DEBUG (2007-04-06) 12:07.40:905 [sitemap] (/home/ese)
http-0.0.0.0-8080-105/DefaultComponentFactory:
ComponentFactory decommissioning instance of
org.apache.cocoon.portal.acting.PreparePortalAction.

DEBUG (2007-04-06) 12:07.40:932 [sitemap] (/home/)
http-0.0.0.0-8080-164/DefaultComponentFactory:
ComponentFactory decommissioning instance of
org.apache.cocoon.portal.acting.PreparePortalAction.

DEBUG (2007-04-06) 12:07.41:024 [sitemap] (/home/test1)
http-0.0.0.0-8080-164/DefaultComponentFactory: ComponentFactory
decommissioning instance of
org.apache.cocoon.portal.acting.PreparePortalAction.

DEBUG (2007-04-06) 12:07.41:055 [sitemap] (/home/test2)
http-0.0.0.0-8080-164/DefaultComponentFactory: ComponentFactory
decommissioning instance of
org.apache.cocoon.portal.acting.PreparePortalAction.

DEBUG (2007-04-06) 12:07.41:080 [sitemap] (/home/test3)
http-0.0.0.0-8080-164/DefaultComponentFactory: ComponentFactory
decommissioning instance of
org.apache.cocoon.portal.acting.PreparePortalAction.



Typically, if I was seeing this, I would pool the generator or transformer.
But this is an Action, which doesn't appear to be poolable.



Question #1, is this a performance bottleneck?

Ouestion #2, if so, what is the solution?



Thanks,



Erron

Re: Cocoon Portal 2.1.9 - Load Testing

Posted by Jason Johnston <co...@lojjic.net>.
Erron Austin wrote:
> In load testing our portal on Linux, Java 1.4.x (not quite sure of the 
> Ram),  I was throwing concurrent 400 users.  An issue that I'm seeing is 
> that I keep getting this message in the logs for each page:
>  
> ..........
> 
> DEBUG (2007-04-06) 12:07.40:905 [sitemap] (/home/ese) 
> http-0.0.0.0-8080-105/DefaultComponentFactory: ComponentFactory 
> decommissioning instance of 
> org.apache.cocoon.portal.acting.PreparePortalAction.
>  
> 
> Typically, if I was seeing this, I would pool the generator or 
> transformer.  But this is an Action, which doesn't appear to be poolable.  
> 
> Question #1, is this a performance bottleneck?

Probably, yes.

> Ouestion #2, if so, what is the solution?

Just did some cursory web searching, and from what I found there are two 
possibilities:

1) Just as you said, make your Action poolable.  AFAICT all you have to 
do is make your Action class implement the Poolable interface.

2) Make your Action class implement the Threadsafe interface, which has 
the effect of making the same instance be used for all requests, which 
is even faster than pooling.  You have to make sure your code is 
actually thread safe, of course. ;-)

See:
http://mail-archives.apache.org/mod_mbox/cocoon-users/200402.mbox/%3cc0b40j$r1u$1@sea.gmane.org%3e

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