You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by cooshal <ku...@gmail.com> on 2019/06/03 07:55:13 UTC
Re: Sporadic "Error while attempting to add new Connection to the
pool; nested exception is javax.jms.JMSException: Could not connect to
broker URL: tcp://localhost:61616. Reason: java.net.BindException: Address
already in use: connect"
Hi again:
has anyone encountered and resolved similar issue ?
My activemq configuration has the default stuffs. Should I configure
something there as well?
After I update my pax-jms configuration by adding pool=transx, I get
following log events:
INFO Updating configuration from org.ops4j.connectionfactory-consumer.cfg
09:48:10.597 INFO [CM Configuration Updater (Update:
pid=org.ops4j.connectionfactory.34183829-76f2-4bf7-8209-c265780d57b9)] Lost
service dependency:
(&(objectClass=org.ops4j.pax.jms.service.ConnectionFactoryFactory)(type=activemq))
09:48:10.611 INFO [CM Configuration Updater (Update:
pid=org.ops4j.connectionfactory.34183829-76f2-4bf7-8209-c265780d57b9)]
Waiting for service dependency:
(&(objectClass=org.ops4j.pax.jms.service.PooledConnectionFactoryFactory)(pool=transx)(xa=false))
It would be great if somebody could point me to some direction in resolving
this issue.
Regards,
Cooshal.
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Re: Sporadic "Error while attempting to add new Connection to the
pool; nested exception is javax.jms.JMSException: Could not connect to
broker URL: tcp://localhost:61616. Reason: java.net.BindException: Address
already in use: connect"
Posted by cooshal <ku...@gmail.com>.
Hi:
I just tried netstat, and I see majority of the connections as "TIME_WAIT".
And, there are a lot of connections.
Thank you for the pointers. I will dig further and post back later.
Regards,
Cooshal.
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Re: Sporadic "Error while attempting to add new Connection to the
pool; nested exception is javax.jms.JMSException: Could not connect to
broker URL: tcp://localhost:61616. Reason: java.net.BindException: Address
already in use: connect"
Posted by cooshal <ku...@gmail.com>.
Hi again:
I looked futher into this issue.
It is strange that, something seems to be wrong with my camel route bundles.
Initially, I was not able to replicate this issue on a different system.
Then, I used my camel routes bundle that was built 2 weeks ago. And, now I
see plenty of connections. I have not made any significant changes in the
bundles or the routes since then. It was the service reference availability
that I had changed from optional to mandatory. But that doesn't seem to have
an effect on this behaviour.
And now, with my newly built bundles, I have two different connections (as
seen in the activemq console)
Name Remote Address Active Slow
ID:MDK-10884-1559899975517-0:2 tcp://127.0.0.1:10942 true false
ID:MDK-10884-1559899975517-2:8 tcp://127.0.0.1:12448 true false
And inside ID:MDK-10884-1559899975517-2:8, I see all my consumers there.
And, few consumers have multiple sessions as well. I believe this is
expected and optimal, right?
It's good that I see a lot less connections, but now my confusion is, "why
does it work?" .
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Re: Sporadic "Error while attempting to add new Connection to the
pool; nested exception is javax.jms.JMSException: Could not connect to broker
URL: tcp://localhost:61616. Reason: java.net.BindException: Address already
in use: connect"
Posted by Tim Bain <tb...@alumni.duke.edu>.
This sounds to me like a misbehaving connection pool. Maybe jax-jms has a
bug?
I'd try to get a count of open and recently-closed sockets on the client
host (e.g. via netstat) to try to confirm that. If you see tens of
thousands, you'll want to try to dig into why they're being closed and
re-opened rather than just reused.
Tim
On Mon, Jun 3, 2019, 1:55 AM cooshal <ku...@gmail.com> wrote:
> Hi again:
>
> has anyone encountered and resolved similar issue ?
>
> My activemq configuration has the default stuffs. Should I configure
> something there as well?
>
> After I update my pax-jms configuration by adding pool=transx, I get
> following log events:
>
> INFO Updating configuration from org.ops4j.connectionfactory-consumer.cfg
> 09:48:10.597 INFO [CM Configuration Updater (Update:
> pid=org.ops4j.connectionfactory.34183829-76f2-4bf7-8209-c265780d57b9)] Lost
> service dependency:
>
> (&(objectClass=org.ops4j.pax.jms.service.ConnectionFactoryFactory)(type=activemq))
> 09:48:10.611 INFO [CM Configuration Updater (Update:
> pid=org.ops4j.connectionfactory.34183829-76f2-4bf7-8209-c265780d57b9)]
> Waiting for service dependency:
>
> (&(objectClass=org.ops4j.pax.jms.service.PooledConnectionFactoryFactory)(pool=transx)(xa=false))
>
> It would be great if somebody could point me to some direction in resolving
> this issue.
>
> Regards,
> Cooshal.
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>