Hi Sacha,

Thanks for replying.
I had posted this to Jboss Forum before hitting this list.

The reason behind posting this query to
Ejb-Interest forum is to know whether there is anything wrong
With my approach in general or any other such general issue.

I am using Jboss-3.0.3 and could not find any backlog in
jboss-service.xml.

Here goes the snippet from Jboss-Service.xml.

  <!--
==================================================================== -->
  <!-- Invokers to the JMX node
-->
  <!--
==================================================================== -->

  <!-- RMI/JRMP invoker -->
  <mbean code="org.jboss.invocation.jrmp.server.JRMPInvoker"
         name="jboss:service=invoker,type=jrmp">
    <attribute name="RMIObjectPort">4444</attribute>
    <!--
    <attribute name="RMIClientSocketFactory">custom</attribute>
    <attribute name="RMIServerSocketFactory">custom</attribute>
    <attribute name="RMIServerSocketAddr">custom</attribute>
    -->
  </mbean>

Thanks,
Saroj



>-----Original Message-----
>From: Sacha Labourey [mailto:[EMAIL PROTECTED]]
>Sent: Monday, January 06, 2003 2:45 PM
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Subject: RE: java.rmi.ConnectException: Connection refused to host
>
>
>Hello,
>
>First, you'd better keep JBoss specific questions out of
>EJB-interest and
>redirect them to JBoss forums.
>
>As for your problem, I suspect this is either the OS or the
>server socket
>that refuse to queue/handle so many concurrent connections.
>You may want
>either to check with your TCP stack configuration or, at the
>JBoss level,
>increase the value of the Backlog (change the JRMPInvoker
>MBean "Backlog"
>attribute in file JBOSS_HOME/server/default/conf/jboss-service.xml)
>
>BTW, are you sure it is JBoss 3.0.3? 3.0.3 was the first
>release to have a
>default backlog setting of 200 (and thus override the default
>JDK value of
>50 that could explain your behaviour).
>
>Cheers,
>
>
>                       Sacha
>
>
>
>> -----Message d'origine-----
>> De : A mailing list for Enterprise JavaBeans development
>> [mailto:[EMAIL PROTECTED]]De la part de saroj kumar
>> Envoye : lundi, 6 janvier 2003 10:04
>> A : [EMAIL PROTECTED]
>> Objet : Re: java.rmi.ConnectException: Connection refused to host
>>
>>
>> Hi Raghu,
>>
>> It keeps changing. Sometimes, it is 40, 50 or some other number.
>>
>> Thanks,
>> Saroj
>>
>> >-----Original Message-----
>> >From: Raghuram SM [mailto:[EMAIL PROTECTED]]
>> >Sent: Monday, January 06, 2003 2:14 PM
>> >To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
>> >Subject: RE: java.rmi.ConnectException: Connection refused to host
>> >
>> >
>> >
>> >Hi saroj,
>> >  Are you getting the exception every time at 45th or it is
>varying.??
>> >
>> >
>> > M.Raghu Rama Sarma
>> > Virtusa India Pvt.Ltd.
>> > Hyderabad
>> > Phone : 91 40 2341 4200
>> >
>> >*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
>> >an attempt may be failure,
>> >but there should not be failure in an attempt
>> >
>> >  - Albert Einstein
>> >
>> >-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
>> >
>> >
>> >-----Original Message-----
>> >From: saroj kumar [mailto:[EMAIL PROTECTED]]
>> >Sent: Sunday, January 05, 2003 10:44 PM
>> >To: [EMAIL PROTECTED]
>> >Subject: java.rmi.ConnectException: Connection refused to host
>> >
>> >
>> >Hi,
>> >
>> >I am trying to call 1 method on a SLSB remotely.
>> >I am running the method call in a thread which are being created
>> >In a loop.
>> >
>> >BASIC idea is to simulate 50 Users concurrently accessing
>> >
>> >If I create 40 threads then everything goes fine. But, the moment
>> >I cross 45, I start getting this error:
>> >
>> >java.rmi.ConnectException: Connection refused to host:
>192.168.146.134;
>> >nested exception is:
>> >        java.net.ConnectException: Connection refused: connect
>> >        at
>> >sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
>> >        at
>>
>>sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
>> >        at
>> >sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
>> >        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
>> >        at
>> >org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknow
>> >n Source)
>> >        at
>> >org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JR
>> >MPInvoker
>> >Proxy.java:129)
>> >        at
>> >org.jboss.invocation.InvokerInterceptor.invoke(InvokerIntercept
>> >or.java:1
>> >08)
>> >        at
>> >org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterc
>> >eptor.jav
>> >a:77)
>> >        at
>>
>>org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor
>.java:80)
>> >        at
>> >org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
>> >        at
>> >org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
>> >        at $Proxy4.create(Unknown Source)
>> >        at TestQE$Tester.run(TestQE.java:310)
>> >Caused by: java.net.ConnectException: Connection refused: connect
>> >        at java.net.PlainSocketImpl.socketConnect(Native Method)
>> >        at
>java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
>> >        at
>> >java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
>> >        at
>java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
>> >        at java.net.Socket.connect(Socket.java:425)
>> >        at java.net.Socket.connect(Socket.java:375)
>> >        at java.net.Socket.<init>(Socket.java:290)
>> >        at java.net.Socket.<init>(Socket.java:118)
>> >        at
>> >sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMI
>> >DirectSoc
>> >ketFactory.java:22)
>> >        at
>> >sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMI
>> >MasterSoc
>> >ketFactory.java:122)
>> >        at
>> >sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)
>> >        ... 12 more
>> >
>> >================================
>> >Code Implementation
>> >================================
>> >private void threadedTesting() throws Exception
>> >{
>> >          Context jndiContext=getInitialContext();
>> >         Object obj = jndiContext.lookup(JndiNames.QUERY_ENGINE);
>> >          qeHome =
>> >(QueryEngineHome)javax.rmi.PortableRemoteObject.narrow( obj,
>> >                        QueryEngineHome.class );
>> >       QueryEngine qe = (QueryEngine)qeHome.create();
>> >                for (int i=0; i <retry; i++)
>> >                {
>> >
>> >                        Tester t = new Tester(qe,i);
>> >                        t.start();
>> >                }
>> >        }
>> >
>> >        class Tester extends Thread
>> >        {
>> >                QueryEngine qe =  null;
>> >                int i;
>> >                public Tester(QueryEngine qe, int i)
>> >
>> >                {
>> >                        this.qe = qe;
>> >                        this.i = i;
>> >                }
>> >                public void run()
>> >                {
>> >                        try
>> >                        {
>> >
>> >                        System.out.println("Running Tester
>" + (i+1));
>> >                        Collection c = qe.getInboxDetails(new
>> >UserPK(12), 1,"1");
>> >                        System.out.println("Collection Size is =" +
>> >c.size());
>> >                        }
>> >                        catch(Exception e)
>> >                        {
>> >                                System.err.println("Error
>in iter " +
>> >i);
>> >                                e.printStackTrace();
>> >                        }
>> >
>> >                }
>> >        }
>> >
>> >If I call home.create() in run then I get this error at
>retry = 15-20.
>> >======
>> >Stats
>> >======
>> >
>> >Jboss 3.0.3
>> >JDK 1.4
>> >Win2k
>> >
>> >Any ideas???
>> >
>> >TIA
>> >-Saroj
>> >
>> >===============================================================
>> >============
>> >To unsubscribe, send email to [EMAIL PROTECTED] and
>> >include in the body
>> >of the message "signoff EJB-INTEREST".  For general help,
>send email to
>> >[EMAIL PROTECTED] and include in the body of the message "help".
>> >
>>
>> ==================================================================
>> =========
>> To unsubscribe, send email to [EMAIL PROTECTED] and include
>> in the body
>> of the message "signoff EJB-INTEREST".  For general help,
>send email to
>> [EMAIL PROTECTED] and include in the body of the message "help".
>>
>>
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to