activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cronos <>
Subject Re: Socket Woes
Date Mon, 06 Aug 2007 03:50:34 GMT

MODIFIED Test Client (added usleep function)
 include_once ("Stomp.php");
 $c = new StompConnection("localhost","51516");
 $c->subscribe("/queue/FOO", array("activemq.prefetchSize"=>"1"));
 While(true) {
$c->send("/queue/FOO", "Hello World!");
// Wait for the message to come in..
$result = $c->readFrame();

Having added the usleep() function, the message consumption jumped
from 15,000 to 26,000 consistently over many test cycles. I figured 
usleep will delay the interval between message production and
consumption. Please, if u are running AMQ 4.1.1, please can u use the 
test client (without unsleep) to run at leat one test and post the
result... thanks
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message