activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oscar Pernas <>
Subject ActiveMQ-CPP. mutex.wait( timeOut );
Date Mon, 17 Jan 2011 09:23:04 GMT
Hi all,

I am developing an application that uses JMS and needs to start with or
without the connection to broker was stablished or not. For this, I am
coding a reconnect thread that is spawned when the initial reconnects fail.
I've set this connection strings:


When the application starts and try to connect, if it fails, the thread is
spawned and trying to reconnect every 30 seconds, with this case I can see
two weirds behaviours.

- Every time that the thread wants to reconnect, the process eats the 100%
of the cpu. I've follow the code and I dont know why, but in the function

bool CountDownLatch::await( long long timeOut )

I have a mutex wait timeOut that is equal to 15000 seconds.

            mutex.wait( timeOut );

Why the code is waiting 15000 seconds? why it takes the 100% of the cpu?

The await function is called by:

Pointer<Response> ResponseCorrelator::request  -->  response =
futureResponse->getResponse( timeout );

Im developing in windows 2000.


Óscar Pernas Plaza.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message