Re: Re: Increase JOnAS-EJB / EasyBeans Pool Timeout ? (avoid org.ow2.util.pool.impl.enhanced.api.TimeoutPoolException)
"Hans J. Prueller" <[email protected]> Wed, 07 Sep 2011 20:49:44 +0200
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Organization | LBS logics GmbH |
| Message-ID | <1315421384.13515.10.camel@kodos> |
--=-XC0XrGUQT2jF/jbrJ4lk
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Hi again,
I was curious about setting the timeout value and gave it a try by just
setting it to 5 seconds (guess the value to be set is in millis):
@Pool (timeout=5000)
the problem ist, that I now get a ClassCastException when deploying the
EAR:
Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast
to java.lang.Integer
at
org.ow2.util.pool.impl.visitor.PoolVisitor.visit(PoolVisitor.java:122)
at
org.ow2.util.scan.impl.ScanAnnotationVisitor.visit(ScanAnnotationVisitor.java:66)
looks like abug in annotation processing or did I set something
wrong ???
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
> >
>
>
--=-XC0XrGUQT2jF/jbrJ4lk
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.32.2">
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#ffffff">
Hi again,<BR>
<BR>
I was curious about setting the timeout value and gave it a try by just setting it to 5 seconds (guess the value to be set is in millis):<BR>
<BR>
@Pool (timeout=5000)<BR>
<BR>
the problem ist, that I now get a ClassCastException when deploying the EAR:<BR>
<BR>
Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer<BR>
at org.ow2.util.pool.impl.visitor.PoolVisitor.visit(PoolVisitor.java:122)<BR>
at org.ow2.util.scan.impl.ScanAnnotationVisitor.visit(ScanAnnotationVisitor.java:66)<BR>
<BR>
looks like abug in annotation processing or did I set something wrong ??? <BR>
<BR>
regards,<BR>
Hans<BR>
<BR>
Am Mittwoch, den 07.09.2011, 17:55 +0200 schrieb Florent BENOIT:<BR>
<BLOCKQUOTE TYPE=CITE>
Hi,<BR>
<BR>
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.<BR>
<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=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>
</BODY>
</HTML>
--=-XC0XrGUQT2jF/jbrJ4lk--