From: SQUILLACE M. <msq...@so...> - 2005-09-28 10:33:09
|
Hi Jost, =20 Having at last connected a PHP script to WebSphere MQ via the php-java-bridge I've been benchmarking the connection with Apache "ab", and while the results are good performance-wise, the following error is intermittently logged: =20 Exception in thread "JavaBridge" java.util.NoSuchElementException at java.util.LinkedList.remove(LinkedList.java:644) at java.util.LinkedList.removeFirst(LinkedList.java:134) at php.java.bridge.ThreadPool.getNextRunnable(ThreadPool.java:33) at php.java.bridge.ThreadPool.access$100(ThreadPool.java:7) at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:20) The error occurs only when I specify a concurrency level greater than 1 - in my current setup it is most evident when running 5 concurrent clients, which is not that much load. =20 From what I gather there may be a problem with thread synchronization in the bridge; what do you think? I'm still running php-java-bridge v.2.0.7 and plan to upgrade, but can't see anything in the changelog that addresses a similar problem. =20 On a side note, I observe decreasing throughput after running several benchmarks with identical parameters: the slugginess goes away when I restart the bridge ... do I need to explicitly invoke some "garbage collection" method at script's end? =20 Bye, Massimo |