Understanding Jboss - Threads, Pools yada yada
erroldc Nov 12, 2004 12:22 PMPlease forgive me. I am not a Jboss expert, nor am I trying to be. I hope you folks will be kind to me.
I am one of several people that support a java application that my company developed for one of our clients. The application runs on Jboss, but it is a version of Jboss that is supplied by Convera for use with their Retrieval Ware search product. My responsibility is really limitted to the hardware platforms, OS and related items, however I trying to gain some understanding (that the rest of the developers and support folks) don't seem to have that I think is essential in properly configuring jboss for this application..
Sun Solaris 5.8
Sunfire 280R w/ 2X UltraSparc III
2GB Ram
Jboss 3.0.7 (No, we can't upgrade :( )
Our application is back-ended on a Sun Fire 880 with 2 procs and 4GB of RAM.
As the subject says, I'm trying to understand the concept of pools and threads in Jboss. This application needs to support large number of simultanious connections and It seems to break at a certain number. We were stress testing a cluster of two identical machines (HW and appliation wise) and we came accross this error..
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,880 ERROR [STDERR] org.jboss.util.NestedSQLException: No ManagedConnections Available!; - nested throwable:
(javax.resource.ResourceException: No ManagedConnections Available!)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,881 ERROR [STDERR] at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.j
ava:106)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,881 ERROR [STDERR] at com.dfi.gov.mipt.tkb.DBConnection.getConnection(DBConnection.java:17)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,881 ERROR [STDERR] at com.dfi.gov.mipt.tkb.TKBUtil.getRecentNewsStories(TKBUtil.java:530)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,881 ERROR [STDERR] at org.apache.jsp.InTheNews$jsp._jspService(InTheNews$jsp.java:66)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,881 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,881 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,882 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,882 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,882 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,882 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,882 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,882 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java
:294)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,882 ERROR [STDERR] at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:192)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,883 ERROR [STDERR] at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:121)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,883 ERROR [STDERR] at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,883 ERROR [STDERR] at org.apache.jsp.FeedbackContent$jsp._jspService(FeedbackContent$jsp.java:313)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,883 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,883 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,883 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,883 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,884 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,884 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,884 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,884 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java
:294)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,884 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,884 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,884 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:5
07)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,885 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,885 ERROR [STDERR] at org.mortbay.http.HttpServer.service(HttpServer.java:863)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,885 ERROR [STDERR] at org.jboss.jetty.Jetty.service(Jetty.java:460)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,885 ERROR [STDERR] at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,885 ERROR [STDERR] at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,885 ERROR [STDERR] at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,885 ERROR [STDERR] at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,886 ERROR [STDERR] at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,886 ERROR [STDERR] at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,887 ERROR [STDERR] Caused by: javax.resource.ResourceException: No ManagedConnections Available!
INFO | jvm 1 | 2004/11/11 20:36:54 | 20:36:53,887 ERROR [STDERR] at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(In
ternalManagedConnectionPool.java:182)
What is a "managed connection" within Jboss? I mean, Jboss 3.0.7. How do these connections and threads and the pool relate to one another?
I hope someone can help me understand this. Already, folks are making changes and we don't understand the impact. Just trying to educate myself....
TIA,
Errol Neal