Re: Increase JOnAS-EJB / EasyBeans Pool Timeout ? (avoid org.ow2.util.pool.impl.enhanced.api.TimeoutPoolException)

Florent BENOIT <[email protected]> Wed, 07 Sep 2011 17:55:20 +0200
Newsgroups gmane.comp.java.objectweb.jonas
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------020406070905060002080503
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

     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
>


--------------020406070905060002080503
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">
    =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.<br>
    <br>
    Also, with @PoolConfiguration or &lt;pool&gt; 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:
    <blockquote cite=3D"mid:1315408234.9705.2.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">
      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>
  </body>
</html>

--------------020406070905060002080503--