MODIFIED Test Client (added usleep function)
===================================
<?
include_once ("Stomp.php");
$c = new StompConnection("localhost","51516");
$c->connect();
$c->subscribe("/queue/FOO", array("activemq.prefetchSize"=>"1"));
While(true) {
$c->send("/queue/FOO", "Hello World!");
// Wait for the message to come in..
usleep(500000);
$result = $c->readFrame();
$c->acknowledge($result->headers["message-id"]);
}
$c->disconnect();
?>
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: http://www.nabble.com/Socket-Woes-tf4214291s2354.html#a12010727
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
|