Re: JMS server connection issue
"George H" <[email protected]> Thu, 27 Dec 2007 06:43:48 -0500
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
--===============1035461748== Content-Type: multipart/alternative; boundary="----=_Part_11096_13886295.1198755828628" ------=_Part_11096_13886295.1198755828628 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 12/27/07, Govinda Rao Deyyam <[email protected]> wrote: > > Hi Tim, > > > > The same issue is keep-on occurring in our production system. I have few > queries regarding this > > > > 1. How/where to check the JMS connection pool size. And how to set > it? > 2. what are all possible reasons for the below exception > 3. How to find out the open JMS connections list at particular > time=85I tried netstat but any special tool for this in openJMS will b= e > helpful > 4. Is it a good practice to close JMS connections every time there > is a failure in send/receive? I think we need not close the connection > rather we can close the session and recreate the session on the same > connection object. Pls advise? > > I'm not Tim but maybe this will help Are you talking about when the network connection fails to the JMS server ? or when the client program dies and loses it's connection ? In my experianc= e I had problems with the 2nd one only with durable subscribers which resulte= d in having to restart the OpenJMS server. When using a regular subscriber th= e problem went away but I had to do my own message persistance thing outside. > 1. Are the inactive JMS connections will be automatically closed by > JMS server? Or we have to take care of closing the connections? > > Pls provide your expert comments on this. > > > > Thanks > > Govind > ------------------------------ > > *From:* openjms-user-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto: > openjms-user-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] *On Behalf Of *Govinda Rao > Deyyam > *Sent:* Wednesday, December 26, 2007 4:30 PM > *To:* [email protected] > *Subject:* [openjms-user] JMS server connection issue > > > > Hi Tim, > > > > We are facing some problem with OpenJMS server where it suddenly failing > in providing the connections. Due to this all the applications are gettin= g > hung. > > Attached are the logs for your reference. > > Can you please throw some light on this? > > > > 19:04:35.456 INFO [EventManager-Worker-2] - DMGC Collected 0 > destinations, 23 remaining. > > 19:04:39.064 ERROR [server-1186] - Failed to createDestinationCache > org.exolab.jms.messagemgr.FailedToInitializeException: Error initialising > org.exolab.jms.m > > essagemgr.MessageLeaseHelperException: Failed to create lease helper for > request6-true b/c org.exolab.jms.persistence.PersistenceException: Failed > to get pool > > ed connection > > 19:04:39.147 ERROR [Thread-0] - Failed to create new connection > > java.net.SocketException: Too many open files > > at java.net.PlainSocketImpl.socketAccept(Native Method) > > at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353) > > at java.net.ServerSocket.implAccept(ServerSocket.java:448) > > at java.net.ServerSocket.accept(ServerSocket.java:419) > > at org.exolab.core.mipc.MultiplexConnectionServer.run( > MultiplexConnectionServer.java:141) > > 19:05:39.464 ERROR [Thread-0] - Failed to create new connection > > java.net.SocketException: Too many open files > > at java.net.PlainSocketImpl.socketAccept(Native Method) > > at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353) > > at java.net.ServerSocket.implAccept(ServerSocket.java:448) > > at java.net.ServerSocket.accept(ServerSocket.java:419) > > at org.exolab.core.mipc.MultiplexConnectionServer.run( > MultiplexConnectionServer.java:141) > > > > > > > > [cocom@lonros56 log]$ more basicqueueprovider > > 25.12.2007-21:50:02 [main] : >>> QueueProviderFactory: > initializeJMSConnection requested > > 25.12.2007-21:50:02 [main] : exception javax.naming.NamingException: > Failed to connect to JNDI provider [Root exception is > java.net.ConnectException: Conn > > ection refused] > > 25.12.2007-21:50:02 [main] : <<< QueueProviderFactory: > initializeJMSConnection failed > > 25.12.2007-21:50:02 [main] : >>> reawake: initializeJMS requested > > 25.12.2007-21:50:02 [main] : >>> QueueProviderFactory: > initializeJMSConnection requested > > 25.12.2007-21:50:02 [main] : exception javax.naming.NamingException: > Failed to connect to JNDI provider [Root exception is > java.net.ConnectException: Conn > > ection refused] > > > > > **************** CAUTION - Disclaimer ***************** > This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended > solely for the use of the addressee(s). If you are not the intended > recipient, please notify the sender by e-mail and delete the original > message. Further, you are not to copy, disclose, or distribute this e-mai= l > or its contents to any other person and any such actions are unlawful. Th= is > e-mail may contain viruses. Infosys has taken every reasonable precaution= to > minimize this risk, but is not liable for any damage you may sustain as a > result of any virus in this e-mail. You should carry out your own virus > checks before opening the e-mail or attachment. Infosys reserves the righ= t > to monitor and review the content of all messages sent to or from this > e-mail address. Messages sent to or from this e-mail address may be store= d > on the Infosys e-mail system. > ***INFOSYS******** End of Disclaimer ********INFOSYS*** > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > openjms-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openjms-user > > ------=_Part_11096_13886295.1198755828628 Content-Type: text/html; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline <br><br><div><span class=3D"gmail_quote">On 12/27/07, <b class=3D"gmail_sen= dername">Govinda Rao Deyyam</b> <<a href=3D"mailto:GovindaRao_D@infosys.= com">[email protected]</a>> wrote:</span><blockquote class=3D"gma= il_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0= pt 0pt 0.8ex; padding-left: 1ex;"> <div link=3D"blue" vlink=3D"purple" lang=3D"EN-US"> <div> <p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: navy;">Hi Tim,</span></font></p> <p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: navy;"> </span></font></p> <p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: navy;">The same issue is keep-on occurrin= g in our production system. I have few queries regarding this</span></font></p> <p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: navy;"> </span></font></p> <ol style=3D"margin-top: 0in;" start=3D"1" type=3D"1"> <li style=3D"color: navy;"><font color=3D"navy" face=3D"Arial" size=3D"2">= <span style=3D"font-size: 10pt; font-family: Arial;">How/where to check the JMS connection pool size. And how to set it?</span></font= ></li> <li style=3D"color: navy;"><font color=3D"navy" face=3D"Arial" size=3D"2">= <span style=3D"font-size: 10pt; font-family: Arial;">what are all possible reasons for the below exception</span></font></li> <li style=3D"color: navy;"><font color=3D"navy" face=3D"Arial" size=3D"2">= <span style=3D"font-size: 10pt; font-family: Arial;">How to find out the open JMS connections list at particular time=85I tried netstat but any special tool for this in openJMS will be helpful</span= ></font></li> <li style=3D"color: navy;"><font color=3D"navy" face=3D"Arial" size=3D"2">= <span style=3D"font-size: 10pt; font-family: Arial;">Is it a good practice to close JMS connections every time there is a failure= in send/receive? I think we need not close the connection rather we can c= lose the session and recreate the session on the same connection object. Pl= s advise?</span></font></li></ol></div></div></blockquote><div>I'm n= ot Tim but maybe this will help<br> <br> Are you talking about when the network connection fails to the JMS server ? or when the client program dies and loses it's connection ? In my experiance I had problems with the 2nd one only with durable subscribers which resulted in having to restart the OpenJMS server. When using a regular subscriber the problem went away but I had to do my own message persistance thing outside.<br> <br> </div><br><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid= rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div li= nk=3D"blue" vlink=3D"purple" lang=3D"EN-US"><div><ol style=3D"margin-top: 0= in;" start=3D"1" type=3D"1"> <li style=3D"color: navy;"><font color=3D"navy" face=3D"Arial" size=3D"2"><= span style=3D"font-size: 10pt; font-family: Arial;">Are the inactive JMS connections will be automatically closed by JMS serve= r? Or we have to take care of closing the connections?</span></font></li></o= l></div></div></blockquote><blockquote class=3D"gmail_quote" style=3D"borde= r-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-le= ft: 1ex;"> <div link=3D"blue" vlink=3D"purple" lang=3D"EN-US"><div><p><font color=3D"n= avy" face=3D"Arial" size=3D"2"><span style=3D"font-size: 10pt; font-family:= Arial; color: navy;">Pls provide your expert comments on this.</span></fon= t></p> <p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: navy;"> </span></font></p> <p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: navy;">Thanks</span></font></p> <p><font color=3D"navy" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: navy;">Govind</span></font></p> <div> <div style=3D"text-align: center;" align=3D"center"><font face=3D"Times New= Roman" size=3D"3"><span style=3D"font-size: 12pt;"> <hr align=3D"center" size=3D"2" width=3D"100%"> </span></font></div> <p><b><font face=3D"Tahoma" size=3D"2"><span style=3D"font-size: 10pt; font= -family: Tahoma; font-weight: bold;">From:</span></font></b><font face=3D"T= ahoma" size=3D"2"><span style=3D"font-size: 10pt; font-family: Tahoma;"> <a href=3D"mailto:openjms-user-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org" target=3D"_bl= ank" onclick=3D"return top.js.OpenExtLink(window,event,this)">openjms-user-= [email protected]</a> [mailto:<a href=3D"mailto:openjms-user-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org" targe= t=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event,this)">openj= ms-user-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org</a>] <b><span style=3D"font-weight: b= old;"> On Behalf Of </span></b>Govinda Rao Deyyam<br> <b><span style=3D"font-weight: bold;">Sent:</span></b> Wednesday, December = 26, 2007 4:30 PM<br> <b><span style=3D"font-weight: bold;">To:</span></b> <a href=3D"mailto:open= [email protected]" target=3D"_blank" onclick=3D"return top.js.= OpenExtLink(window,event,this)">[email protected]</a><br> <b><span style=3D"font-weight: bold;">Subject:</span></b> [openjms-user] JM= S server connection issue</span></font></p> </div><div><span class=3D"e" id=3D"q_1171a56234cb444c_1"> <p><font face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt= ;"> </span></font></p> <p><font face=3D"Arial" size=3D"2"><span style=3D"font-size: 10pt; font-fam= ily: Arial;">Hi Tim,</span></font></p> <p><font face=3D"Arial" size=3D"2"><span style=3D"font-size: 10pt; font-fam= ily: Arial;"> </span></font></p> <p><font face=3D"Arial" size=3D"2"><span style=3D"font-size: 10pt; font-fam= ily: Arial;">We are facing some problem with OpenJMS server where it suddenly failing in providing the connections. Due to this all the applicat= ions are getting hung.</span></font></p> <p><font face=3D"Arial" size=3D"2"><span style=3D"font-size: 10pt; font-fam= ily: Arial;">Attached are the logs for your reference.</span></font></p> <p><font face=3D"Arial" size=3D"2"><span style=3D"font-size: 10pt; font-fam= ily: Arial;">Can you please throw some light on this? </span></font></p> <p><font face=3D"Arial" size=3D"2"><span style=3D"font-size: 10pt; font-fam= ily: Arial;"> </span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;">19:04:35.456 INFO [EventManager-Worker-2] - DMGC Collected 0 destinations, 23 remaining.</spa= n></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;">19:04:39.064 ERROR [server-1186] -= Failed to createDestinationCache org.exolab.jms.messagemgr.FailedToInitializeException: Error initialising org.exolab.jms.m</span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;">essagemgr.MessageLeaseHelperExcept= ion: Failed to create lease helper for request6-true b/c org.exolab.jms.persistence.PersistenceException: Failed to get pool</span><= /font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;">ed connection</span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;">19:04:39.147 ERROR [Thread-0] - Fa= iled to create new connection</span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;">java.net.SocketException: Too many= open files</span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;"> &nbs= p; at java.net.PlainSocketImpl.socketAccept(Native Method)</span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;"> &nbs= p; at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)</span></font><= /p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;"> &nbs= p; at java.net.ServerSocket.implAccept(ServerSocket.java:448)</span></font></p= > <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;"> &nbs= p; at java.net.ServerSocket.accept(ServerSocket.java:419)</span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;"> &nbs= p; at org.exolab.core.mipc.MultiplexConnectionServer.run(MultiplexConnectionServe= r.java:141)</span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;">19:05:39.464 ERROR [Thread-0] - Fa= iled to create new connection</span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;">java.net.SocketException: Too many= open files</span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;"> &nbs= p; at java.net.PlainSocketImpl.socketAccept(Native Method)</span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;"> &nbs= p; at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)</span></font><= /p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;"> &nbs= p; at java.net.ServerSocket.implAccept(ServerSocket.java:448)</span></font></p= > <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;"> &nbs= p; at java.net.ServerSocket.accept(ServerSocket.java:419)</span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;"> &nbs= p; at org.exolab.core.mipc.MultiplexConnectionServer.run(MultiplexConnectionSe= rver.java:141)</span></font></p> <p><font face=3D"Arial" size=3D"2"><span style=3D"font-size: 10pt; font-fam= ily: Arial;"> </span></font></p> <p><font face=3D"Arial" size=3D"2"><span style=3D"font-size: 10pt; font-fam= ily: Arial;"> </span></font></p> <p><font face=3D"Arial" size=3D"2"><span style=3D"font-size: 10pt; font-fam= ily: Arial;"> </span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;">[cocom@lonros56 log]$ more basicqueueprovider</span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;">25.12.2007-21:50:02 [main] : >&= gt;> QueueProviderFactory: initializeJMSConnection requested</span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;">25.12.2007-21:50:02 [main] : exception javax.naming.NamingException: Failed to connect to JNDI provider [Root exception is java.net.ConnectException: Conn= </span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;">ection refused]</span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;">25.12.2007-21:50:02 [main] : <&= lt;< QueueProviderFactory: initializeJMSConnection failed</span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;">25.12.2007-21:50:02 [main] : >&= gt;> reawake: initializeJMS requested</span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;">25.12.2007-21:50:02 [main] : >&= gt;> QueueProviderFactory: initializeJMSConnection requested</span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;">25.12.2007-21:50:02 [main] : exception javax.naming.NamingException: Failed to connect to JNDI provider [Root exception is java.net.ConnectException: Conn= </span></font></p> <p><font color=3D"blue" face=3D"Arial" size=3D"2"><span style=3D"font-size:= 10pt; font-family: Arial; color: blue;">ection refused]</span></font></p> <p><font face=3D"Arial" size=3D"2"><span style=3D"font-size: 10pt; font-fam= ily: Arial;"> </span></font></p> <p><font face=3D"Arial" size=3D"2"><span style=3D"font-size: 10pt; font-fam= ily: Arial;"> </span></font></p> </span></div></div> </div><div><span class=3D"e" id=3D"q_1171a56234cb444c_3"> <table><tbody><tr><td bgcolor=3D"#ffffff"><font color=3D"#000000">*********= ******* CAUTION - Disclaimer *****************<br> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.<br> ***INFOSYS******** End of Disclaimer ********INFOSYS***<br> </font></td></tr></tbody></table></span></div><br>-------------------------= ------------------------------------------------<br>This SF.net email is sp= onsored by: Microsoft<br>Defy all challenges. Microsoft(R) Visual Studio 20= 05. <br><a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D"htt= p://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target=3D"_blank">htt= p://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br>_______________= ________________________________ <br>openjms-user mailing list<br><a onclick=3D"return top.js.OpenExtLink(wi= ndow,event,this)" href=3D"mailto:[email protected]">openjm= [email protected]</a><br><a onclick=3D"return top.js.OpenExtLink= (window,event,this)" href=3D"https://lists.sourceforge.net/lists/listinfo/o= penjms-user" target=3D"_blank"> https://lists.sourceforge.net/lists/listinfo/openjms-user</a><br><br></bloc= kquote></div><br> ------=_Part_11096_13886295.1198755828628-- --===============1035461748== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --===============1035461748== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ openjms-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openjms-user --===============1035461748==--