• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Timeout while acquiring a EJB instance from pool

 
Ben Ti
Greenhorn
Posts: 4
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

My min-pool is 3, and max-pool is 40 which should be enough.

Here is the error when no connexion is possible :

java.rmi.RemoteException: javax.ejb.EJBException: JBAS014516: N'a pas pu acquérir un permis dans 5 MINUTES
at org.jboss.as.ejb3.pool.strictmax.StrictMaxPool.get(StrictMaxPool.java:109) [jboss-as-ejb3-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:47) [jboss-as-ejb3-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1]
 
K. Tsang
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ben Ti wrote:java.rmi.RemoteException: javax.ejb.EJBException: JBAS014516: N'a pas pu acquérir un permis dans 5 MINUTES



What's that in English? Even thought I studied French in high school.

Edit: ok know what the jboss code means.

How is the EJB pool configured?
 
Ben Ti
Greenhorn
Posts: 4
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


These are default values in JBoss EAP, except max-pool size increased to 40 (default=20)

I guess ejb max-pool-size should be equal to database max pool size.

Thanks to this explanations from Wolf-Dieter Fink in this thread https://developer.jboss.org/thread/236044

I am gonna try to reduce instance acquisition timeout, event if it is a pain for performance.

 
Ben Ti
Greenhorn
Posts: 4
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok I finally found the solution.

The problem was in the application code, a JSP snipplet creating a deadlock in the database, creating more and more database sessions...

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic