You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Geoff Cadien <gc...@gmail.com> on 2008/02/20 02:01:44 UTC
APR
I've started to do a little testing with APR (very little) and seem to be
having some problems I modified the proxy example to use APR and it was
much All I did was replace NioSocketAcceptor and NioSocketConnector with
AprSocketAcceptor and AprSocketConnector. I then ran about 100 req/s with
it proxying for apache. I got a lot of exceptions and cpu usage spiked to
almost 100% and stayed there after the test run was complete. Most of the
exceptions looked like:
[17:54:21] AprIoProcessor-5 WARN [] [] [
org.apache.mina.example.proxy.ServerToProxyIoHandler] - [/127.0.0.1:80]
EXCEPTION, please implement
org.apache.mina.example.proxy.ServerToProxyIoHandler.exceptionCaught() for
proper handling:
java.io.IOException: Unknown error 4294897281 (code: 70015)
at org.apache.mina.transport.socket.apr.AprIoProcessor.throwException(
AprIoProcessor.java:365)
at
org.apache.mina.transport.socket.apr.AprIoProcessor.setInterestedInWrite(
AprIoProcessor.java:291)
at
org.apache.mina.transport.socket.apr.AprIoProcessor.setInterestedInWrite(
AprIoProcessor.java:1)
at
org.apache.mina.common.AbstractPollingIoProcessor.updateTrafficMaskNow(
AbstractPollingIoProcessor.java:654)
at org.apache.mina.common.AbstractPollingIoProcessor.updateTrafficMask(
AbstractPollingIoProcessor.java:628)
at org.apache.mina.common.AbstractPollingIoProcessor.access$300(
AbstractPollingIoProcessor.java:43)
at org.apache.mina.common.AbstractPollingIoProcessor$Worker.run(
AbstractPollingIoProcessor.java:673)
at org.apache.mina.util.NamePreservingRunnable.run(
NamePreservingRunnable.java:51)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(
ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
I'm wondering if anyone else has run into this type of problem or might have
an idea of what I might have done wrong.
My testing was done with:
Linux 2.6.22
JDK 1.6.0_03
APR 1.2.7
Mina 2.0 trunk
Thanks,
-geoff