Hi all ! I am currently making stress tests. Thereto I wrote a simple client program that starts (in my current case) 50 threads. The log I produce looks something like this: Client-987784556305 starts ... Client-987784556505 starts ... Client-987784556786 starts ... Client-987784556786 is back from EJB-Instantiation after <0.09> sec Client-987784556305 is back from EJB-Instantiation after <0.581> sec Client-987784556505 is back from EJB-Instantiation after <0.401> sec Client-987784556986 starts ... Client-987784556986 is back from EJB-Instantiation after <0.1> sec Client-987784557186 starts ... Client-987784557186 is back from EJB-Instantiation after <0.05> sec Client-987784557387 starts ... Client-987784557387 is back from EJB-Instantiation after <0.06> sec Client-987784557587 starts ... Client-987784557787 starts ... Client-987784557787 is back from EJB-Instantiation after <0.191> sec Client-987784557587 is back from EJB-Instantiation after <0.391> sec Client-987784557988 starts ... Client-987784557988 is back from EJB-Instantiation after <0.09> sec Client-987784558188 starts ... Client-987784558188 is back from EJB-Instantiation after <0.05> sec Client-987784558388 starts ... Client-987784558388 is back from EJB-Instantiation after <0.07> sec Client-987784558588 starts ... Client-987784558588 is back from EJB-Instantiation after <0.091> sec Client-987784556305 is back from startSession after <1.873> sec Client-987784557186 is back from startSession after <1.523> sec Client-987784556505 is back from startSession after <1.853> sec Client-987784556986 is back from startSession after <1.673> sec Client-987784556786 is back from startSession after <1.873> sec Client-987784558789 starts ... Client-987784558989 starts ... Client-987784559189 starts ... Client-987784559390 starts ... Client-987784559590 starts ... Client-987784559790 starts ... Client-987784559990 starts ... Client-987784560191 starts ... Client-987784560391 starts ... Client-987784560591 starts ... Client-987784560792 starts ... java.rmi.ConnectException: Connection refused to host: rackets; nested exception is: java.net.ConnectException: Connection refused: no further information java.net.ConnectException: Connection refused: no further information at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112) at java.net.Socket.<init>(Socket.java:273) at java.net.Socket.<init>(Socket.java:100) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect SocketFactory.java:25) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster SocketFactory.java:120) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190 ) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:83) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHom e(Unknown Source) at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java :248) at $Proxy0.create(Unknown Source) at bbt.cn.archprot.util.PseudoUseCase.run(PseudoUseCase.java:45) at java.lang.Thread.run(Thread.java:484) Client-987784560992 starts ... Client-987784558789 is back from EJB-Instantiation after <2.213> sec Client-987784557387 is back from startSession after <3.565> sec Client-987784558989 is back from EJB-Instantiation after <2.123> sec Client-987784559390 is back from EJB-Instantiation after <1.722> sec Client-987784559189 is back from EJB-Instantiation after <1.933> sec Client-987784561192 starts ... java.rmi.ConnectException: Connection refused to host: rackets; nested exception is: java.net.ConnectException: Connection refused: no further information java.net.ConnectException: Connection refused: no further information at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112) at java.net.Socket.<init>(Socket.java:273) at java.net.Socket.<init>(Socket.java:100) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect SocketFactory.java:25) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster SocketFactory.java:120) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190 ) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:83) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHom e(Unknown Source) at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java :248) at $Proxy0.create(Unknown Source) at bbt.cn.archprot.util.PseudoUseCase.run(PseudoUseCase.java:45) at java.lang.Thread.run(Thread.java:484) Client-987784561392 starts ... Client-987784559590 is back from EJB-Instantiation after <1.983> sec Client-987784561593 starts ... Client-987784558789 is back from startSession after <0.751> sec Client-987784560591 is back from EJB-Instantiation after <1.172> sec Client-987784561793 starts ... Client-987784559790 is back from EJB-Instantiation after <2.023> sec Client-987784560992 is back from EJB-Instantiation after <0.821> sec Client-987784561993 starts ... Client-987784562194 starts ... Client-987784562394 starts ... Client-987784560792 is back from EJB-Instantiation after <1.722> sec Client-987784560191 is back from EJB-Instantiation after <2.323> sec Client-987784561192 is back from EJB-Instantiation after <1.332> sec Client-987784561793 is back from EJB-Instantiation after <0.751> sec Client-987784562594 starts ... Client-987784562794 starts ... Client-987784562995 starts ... Client-987784563195 starts ... Client-987784561392 is back from EJB-Instantiation after <1.923> sec Client-987784559189 is back from startSession after <2.223> sec Client-987784563395 starts ... Client-987784561593 is back from EJB-Instantiation after <1.832> sec Client-987784563606 starts ... Client-987784563796 starts ... Client-987784563996 starts ... Client-987784564196 starts ... Client-987784564397 starts ... Client-987784564597 starts ... Client-987784564797 starts ... Client-987784561993 is back from EJB-Instantiation after <2.914> sec Client-987784564998 starts ... Client-987784562394 is back from EJB-Instantiation after <2.744> sec Client-987784557787 is back from startSession after <7.17> sec Client-987784557587 is back from startSession after <7.19> sec Client-987784565198 starts ... Client-987784565398 starts ... Client-987784565598 starts ... Client-987784565799 starts ... java.rmi.ConnectException: Connection refused to host: rackets; nested exception is: java.net.ConnectException: Connection refused: no further information java.net.ConnectException: Connection refused: no further information at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112) at java.net.Socket.<init>(Socket.java:273) at java.net.Socket.<init>(Socket.java:100) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect SocketFactory.java:25) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster SocketFactory.java:120) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190 ) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:83) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHom e(Unknown Source) at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java :248) at $Proxy0.create(Unknown Source) at bbt.cn.archprot.util.PseudoUseCase.run(PseudoUseCase.java:45) at java.lang.Thread.run(Thread.java:484) java.rmi.ConnectException: Connection refused to host: rackets; nested exception is: java.net.ConnectException: Connection refused: no further information java.net.ConnectException: Connection refused: no further information at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112) at java.net.Socket.<init>(Socket.java:273) at java.net.Socket.<init>(Socket.java:100) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect SocketFactory.java:25) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster SocketFactory.java:120) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190 ) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:83) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHom e(Unknown Source) at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java :248) at $Proxy0.create(Unknown Source) at bbt.cn.archprot.util.PseudoUseCase.run(PseudoUseCase.java:45) at java.lang.Thread.run(Thread.java:484) Client-987784565999 starts ... Client-987784562194 is back from EJB-Instantiation after <3.905> sec Client-987784560792 is back from startSession after <3.585> sec Client-987784560191 is back from startSession after <3.615> sec Client-987784566199 starts ... Client-987784562594 is back from EJB-Instantiation after <3.906> sec java.rmi.ConnectException: Connection refused to host: rackets; nested exception is: java.net.ConnectException: Connection refused: no further information java.net.ConnectException: Connection refused: no further information at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112) at java.net.Socket.<init>(Socket.java:273) at java.net.Socket.<init>(Socket.java:100) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect SocketFactory.java:25) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster SocketFactory.java:120) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190 ) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:83) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHom e(Unknown Source) at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java :248) at $Proxy0.create(Unknown Source) at bbt.cn.archprot.util.PseudoUseCase.run(PseudoUseCase.java:45) at java.lang.Thread.run(Thread.java:484) java.rmi.ConnectException: Connection refused to host: rackets; nested exception is: java.net.ConnectException: Connection refused: no further information java.net.ConnectException: Connection refused: no further information at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112) at java.net.Socket.<init>(Socket.java:273) at java.net.Socket.<init>(Socket.java:100) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect SocketFactory.java:25) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster SocketFactory.java:120) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190 ) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:83) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHom e(Unknown Source) at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java :248) at $Proxy0.create(Unknown Source) at bbt.cn.archprot.util.PseudoUseCase.run(PseudoUseCase.java:45) at java.lang.Thread.run(Thread.java:484) java.rmi.ConnectException: Connection refused to host: rackets; nested exception is: java.net.ConnectException: Connection refused: no further information java.net.ConnectException: Connection refused: no further information at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112) at java.net.Socket.<init>(Socket.java:273) at java.net.Socket.<init>(Socket.java:100) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect SocketFactory.java:25) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster SocketFactory.java:120) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190 ) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:83) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHom e(Unknown Source) at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java :248) at $Proxy0.create(Unknown Source) at bbt.cn.archprot.util.PseudoUseCase.run(PseudoUseCase.java:45) at java.lang.Thread.run(Thread.java:484) I don't understand, why some threads cannot make an ejb create (respective why the java.rmi.ConnectExceptions happen). And ... the count of java.rmi.ConnectExceptions is always different (budges between 0 and n). Does anybody has an idea, why this java.rmi.ConnectExceptions occur (and why sometimes not) ? If you need more information, please notice me, what kind of more information you need. Best regards, Roman Wittchen _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user