You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Carsten Ziegeler <cz...@sundn.de> on 2001/06/08 12:28:08 UTC
[4.0b1]: Exception when creating new components
Hi,
I am using the beta 1 of Cocoon 2 which uses Avalon 4.0b1.
On my linux machine (sun jdk 1.3.1) I get from time to
time under some load the following exception:
"Could not create enough Components to service your request"
This exception is thrown in the DefaultPool implementation.
What could be the reason for this?
Could it either be a threading problem or could it be that
we didn't release all components?
Carsten
Open Source Group sunShine - b:Integrated
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de mailto: cziegeler@sundn.de
================================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
Re: AW: [4.0b1]: Exception when creating new components
Posted by Berin Loritsch <bl...@apache.org>.
Carsten Ziegeler wrote:
>
> > Berin Loritsch wrote:
> >
> > Carsten Ziegeler wrote:
> > >
> > > Hi,
> > >
> > > I am using the beta 1 of Cocoon 2 which uses Avalon 4.0b1.
> > > On my linux machine (sun jdk 1.3.1) I get from time to
> > > time under some load the following exception:
> > >
> > > "Could not create enough Components to service your request"
> > >
> > > This exception is thrown in the DefaultPool implementation.
> > >
> > > What could be the reason for this?
> > >
> > > Could it either be a threading problem or could it be that
> > > we didn't release all components?
> >
> > Is this with the JdbcDataSourceComponent? If so, it uses
> > the HardResourceLimitingPool which extends the DefaultPool
> > implementation.
> >
> No, it is the DefaultComponentManager trying to get another XSLT
> transformer.
> The error occurs only sometimes and simply reloading the page
> solves the problem.
>
> > Another possibility is that the JDK can't respond quick enough
> > because under load, new components are created.
> >
> > Can you please give some more information--it will help track
> > down what is happening?
>
> If it helps, we could try to regenerate the error on Monday
> and send the whole cocoon.log.
Ok.
Keep in mind that if the TraxTransformer fails at any point during
initialization (constructor through init lifecycle phase), the Pool
will return the exception you are seeing. Check the TraxTransformer
for potential weak areas. It is a complex beast.
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
AW: [4.0b1]: Exception when creating new components
Posted by Carsten Ziegeler <cz...@sundn.de>.
> Berin Loritsch wrote:
>
> Carsten Ziegeler wrote:
> >
> > Hi,
> >
> > I am using the beta 1 of Cocoon 2 which uses Avalon 4.0b1.
> > On my linux machine (sun jdk 1.3.1) I get from time to
> > time under some load the following exception:
> >
> > "Could not create enough Components to service your request"
> >
> > This exception is thrown in the DefaultPool implementation.
> >
> > What could be the reason for this?
> >
> > Could it either be a threading problem or could it be that
> > we didn't release all components?
>
> Is this with the JdbcDataSourceComponent? If so, it uses
> the HardResourceLimitingPool which extends the DefaultPool
> implementation.
>
No, it is the DefaultComponentManager trying to get another XSLT
transformer.
The error occurs only sometimes and simply reloading the page
solves the problem.
> Another possibility is that the JDK can't respond quick enough
> because under load, new components are created.
>
> Can you please give some more information--it will help track
> down what is happening?
If it helps, we could try to regenerate the error on Monday
and send the whole cocoon.log.
Carsten
Open Source Group sunShine - b:Integrated
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de mailto: cziegeler@sundn.de
================================================================
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
Re: [4.0b1]: Exception when creating new components
Posted by Berin Loritsch <bl...@apache.org>.
Carsten Ziegeler wrote:
>
> Hi,
>
> I am using the beta 1 of Cocoon 2 which uses Avalon 4.0b1.
> On my linux machine (sun jdk 1.3.1) I get from time to
> time under some load the following exception:
>
> "Could not create enough Components to service your request"
>
> This exception is thrown in the DefaultPool implementation.
>
> What could be the reason for this?
>
> Could it either be a threading problem or could it be that
> we didn't release all components?
Is this with the JdbcDataSourceComponent? If so, it uses
the HardResourceLimitingPool which extends the DefaultPool
implementation.
Another possibility is that the JDK can't respond quick enough
because under load, new components are created.
Can you please give some more information--it will help track
down what is happening?
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org