[JBoss-user] [Messaging, JMS JBossMQ] - Re: Massive increase of TCP/IP connections when opening JMS

2005-11-18 Thread [EMAIL PROTECTED]
:-) You mean do what is says in the spec? And don't do what is says not to do in the spec? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3907982#3907982 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3907982

[JBoss-user] [Messaging, JMS JBossMQ] - Re: Massive increase of TCP/IP connections when opening JMS

2005-11-17 Thread schrouf
This is a TCP/IP operation system issue, not a JBoss issue. Google around for TCP and TIME_WAIT and read some stuff TIME_WAIT socket state und system tuning e.g http://www.octetstring.com/support/issues/Tuning-TIMEWAIT.php Regards Ulf View the original post :

[JBoss-user] [Messaging, JMS JBossMQ] - Re: Massive increase of TCP/IP connections when opening JMS

2005-11-17 Thread oglueck
No, this guy is creating InitialContexts in a loop. Man, creating an InitialContext is a expensive operation! How did you think RMI works? When in a bean, use the lookup methods of the EjbContext. On a client, create an InitialContext once. And don't forget to close it in a finally clause.