activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sapunce <n.sapundz...@gmail.com>
Subject java.net.ConnectException: Connection refused: connect, when running performance test
Date Tue, 09 Feb 2010 12:35:02 GMT

Hello, 

I'm running performance test on top of AMQ. The test is a servlet which :
1.create connection, session and sender on (queue/topic)
2.send 20 messages
3.create connection, session and receiver on (queue/topic)
4.receive the same 20 messages
The load on the servlet is 20 users.
Test is running OK for some time and start to fail with this exception:

java.lang.RuntimeException: javax.jms.JMSException: Could not connect to
broker URL: tcp://localhost:61616. Reason: java.net.ConnectException:
Connection refused: connect
	at
my.org.tests.jms.performace.SimpleServlet.testTopic(SimpleServlet.java:117)
	at my.org.tests.jms.performace.SimpleServlet.doGet(SimpleServlet.java:64)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
	at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
	at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
	at java.lang.Thread.run(Thread.java:619)
Caused by: javax.jms.JMSException: Could not connect to broker URL:
tcp://localhost:61616. Reason: java.net.ConnectException: Connection
refused: connect
	at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)
	at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:280)
	at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:224)
	at
org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:172)
	at
my.org.tests.jms.performace.SimpleServlet.testTopic(SimpleServlet.java:79)
	... 15 more
Caused by: java.net.ConnectException: Connection refused: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:525)
	at
org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:435)
	at
org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:401)
	at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:53)
	at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
	at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
	at
org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
	at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
	at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
	at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:260)
	... 18 more
-- 
View this message in context: http://old.nabble.com/java.net.ConnectException%3A-Connection-refused%3A-connect%2C-when-running-performance-test-tp27514498p27514498.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Mime
View raw message