Re: Re: Re: Increase JOnAS-EJB / EasyBeans Pool Timeout ? (avoid org.ow2.util.pool.impl.enhanced.api.TimeoutPoolException)
Florent BENOIT <[email protected]> Thu, 08 Sep 2011 16:10:48 +0200
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------040602080806090404000000
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Default timeout is 10seconds in IPoolConfiguration interface class
Regards,
Florent
On 09/07/2011 08:34 PM, Hans J. Prueller wrote:
> Thanks Florent !
>
> I will give it a try and keep you updated.
>
> Can you tell me the default value for the timeout ? (so I can set a
> useful larger value for my tests)
>
> regards,
> Hans
>
> Am Mittwoch, den 07.09.2011, 17:55 +0200 schrieb Florent BENOIT:
>> Hi,
>>
>> You may use -Deasybeans.useSimplePool=true in JAVA_OPTS/JONAS_OPTS so
>> that you'll get previous pool which is using lazy mode and do not
>> populate the pool with an init size.
>>
>> Also, with @PoolConfiguration or <pool> element in
>> META-INF/easybeans.xml, you can tune the size of the pool with the
>> timeout value that you're expecting
>>
>> Regards,
>>
>> Florent
>>
>> On 09/07/2011 05:10 PM, Hans J. Prueller wrote:
>>> Hi all,
>>>
>>> it seems that sometimes when I am working and testing our JOnAS 5.2
>>> based EAR on a slow machine or the machine is under heavy load,
>>> several org.ow2.util.pool.impl.enhanced.api.TimeoutPoolException are
>>> occuring during startup / initialisation of the application.
>>>
>>> (the app is initialized by doing some EJB calls in a servlet init()
>>> method after deployment)
>>>
>>> Is there a way to increase this timeout to a larger value on our dev
>>> machines to avoid above error ?
>>>
>>>
>>> regards,
>>> Hans
>>>
>>
>
--------------040602080806090404000000
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta content=3D"text/html; charset=3DUTF-8" http-equiv=3D"Content-Ty=
pe">
</head>
<body bgcolor=3D"#FFFFFF" text=3D"#000000">
Default timeout is 10seconds in IPoolConfiguration interface class<br=
>
<br>
Regards,<br>
<br>
Florent<br>
<br>
On 09/07/2011 08:34 PM, Hans J. Prueller wrote:
<blockquote cite=3D"mid:1315420492.13515.3.camel@kodos" type=3D"cite"=
>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DU=
TF-8">
<meta name=3D"GENERATOR" content=3D"GtkHTML/3.32.2">
Thanks Florent !<br>
<br>
I will give it a try and keep you updated.<br>
<br>
Can you tell me the default value for the timeout ? (so I can set
a useful larger value for my tests)<br>
<br>
regards,<br>
Hans<br>
<br>
Am Mittwoch, den 07.09.2011, 17:55 +0200 schrieb Florent BENOIT:<br=
>
<blockquote type=3D"CITE"> =C2=A0=C2=A0=C2=A0 Hi,<br>
<br>
You may use -Deasybeans.useSimplePool=3Dtrue in
JAVA_OPTS/JONAS_OPTS so that you'll get previous pool which is
using lazy mode and do not populate the pool with an init size.<b=
r>
<br>
Also, with @PoolConfiguration or <pool> element in
META-INF/easybeans.xml, you can tune the size of the pool with
the timeout value that you're expecting<br>
<br>
Regards,<br>
<br>
Florent<br>
<br>
On 09/07/2011 05:10 PM, Hans J. Prueller wrote: <br>
<blockquote type=3D"CITE"> Hi all,<br>
<br>
it seems that sometimes when I am working and testing our
JOnAS 5.2 based EAR on a slow machine or the machine is under
heavy load,<br>
several
org.ow2.util.pool.impl.enhanced.api.TimeoutPoolException are
occuring during startup / initialisation of the application.<br=
>
<br>
(the app is initialized by doing some EJB calls in a servlet
init() method after deployment)<br>
<br>
Is there a way to increase this timeout to a larger value on
our dev machines to avoid above error ?<br>
<br>
<br>
regards,<br>
Hans<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>
--------------040602080806090404000000--