I am using Struts with OJB to build my web application. I checked every
Action class in my webapp that is using the broker, but seems that it is
still crashing.

PersistenceBroker broker = null;
try {
    broker = PersistenceBrokerFactory.defaultPersistenceBroker();
    ....
    return mapping.findForward("success");
}
finally {
    try { broker.close(); } catch (Exception e) { }
}

----- Original Message -----
From: "Armin Waibel" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>; "Christopher Cheng"
<[EMAIL PROTECTED]>
Sent: Wednesday, November 06, 2002 3:28 PM
Subject: Re: OJB.properties values


> Hi Christopher,
>
> OJB was shipped with stress tests (bin\build.bat performance2, ...
> performance)
> all tests passed with standard values
>
> maxActive=100
> maxConnectionsInPool=21
>
> Do you use the client/server mode?
> If not and you using PB-api and if your app is running for a while and
> then chrash, I think
> you have a PersistenceBroker leak (don't call broker.close() after use).
>
> regards,
> Armin
>
> ----- Original Message -----
> From: "Christopher Cheng" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, November 06, 2002 6:46 AM
> Subject: OJB.properties values
>
>
> My application always throws
> rethrown as org.apache.ojb.broker.PersistenceBrokerException: Could not
> borrow connection from pool -
> org.apache.ojb.broker.metadata.JdbcConnectionDescriptor:
> JdbcConnectionDescriptor
>
> What is an optmal/standard values in OJB.properties? Here is mine
>
> ServerThreadCount=100
> BrokerPoolSize=10000
> maxActive=10000
> maxIdle=-1
> maxWait=2000
> timeBetweenEvictionRunsMillis=1000
> minEvictableIdleTimeMillis=10000
> whenExhaustedAction=2
> maxConnectionsInPool=1000
>
>
> --
> To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>

Reply via email to