views:

8

answers:

0

Hi,

I'm playing around with ActiveMQ, connecting to it using Zend_Queue (and by extension Stomp).

At present, the PHP script I've written,

  1. Connects to queueA and receives data from it.
  2. The data is then processed into another format.
  3. This result is then sent to two other seperate queues, queueB and queueC, for later further processing.

This has been working fine until yesterday. I got the following error,

Error 8: fwrite(): send of 185 bytes failed with errno=11 Resource temporarily unavailable in <PATH>/library/Zend/Queue/Client/Stomp.php at ...

After this happens, my process stops running, but the PHP script is not terminated. When I terminate it manually, ActiveMQ admin still shows an active consumer (where a manual termination would usually reduce the count to the expected 0 consumers).

If I try running the process again, 1 message is taken from queueA, and is sent to queueB and queueC, but it is not received in queueB or queueC, and the process continues no further. Again, without error and the PHP script does not terminate. After a manual termination, the active consumer count is now on 2.

If I restart ActiveMQ, everything works properly again, until the error happens again with the same fwrite() message. Again, no other visible errors.

The time it takes for the error to occur and the volume of messages being sent is not consistent, however the error occurring is.

Does anyone have any idea what's going on here?