activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sapunce <n.sapundz...@gmail.com>
Subject Re: java.net.ConnectException: Connection refused: connect, while running performance test on AMQ 5.2/5.3
Date Wed, 10 Feb 2010 08:58:14 GMT

Helllo,

I have 10 connections available to AMQ, is this the default value?
How can I increase the max connections in AMQ?

Regards, 
Nace



H. Willstrand wrote:
> 
> On Tue, Feb 9, 2010 at 3:43 PM, sapunce <n.sapundziev@gmail.com> wrote:
>>
>> 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
>> 5.close both connections
>> The load on the servlet is 20 users.
> 
> Have you checked the number of open connections?
> e.g. if you use Linux:
> 
> netstat -nto
> 
> //HW
> 
>> 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
>>
>> Any ideas for solving this problem?
>>
>> Thanks,
>> Nace
>> --
>> View this message in context:
>> http://old.nabble.com/java.net.ConnectException%3A-Connection-refused%3A-connect%2C-while-running-performance-test-on-AMQ-5.2-5.3-tp27516281p27516281.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/java.net.ConnectException%3A-Connection-refused%3A-connect%2C-while-running-performance-test-on-AMQ-5.2-5.3-tp27516281p27527095.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message