Filip Hanik - Dev Lists wrote:
thanks for the feedback, I'm testing with larger files now, 100k+ and also see APR->JIO->NIO NIO has a very funny CPU telemetry graph, it fluctuates way to much, so I have to find where in the code it would do this, so there is still some work to do. I'd like to see a nearly flat CPU usage when running my test, but instead the CPU goes from 20-80% up and down, up and down.

It's a bit mysterious.

during my test
(for i in $(seq 1 100); do echo -n "$i."; ./ab -n 1000 -c 400 http://localhost:$PORT/104k.jpg 2>1 |grep "Requests per"; done)

my memory usage goes up to 40MB, then after a FullGC it goes down to 10MB again, so I wanna figure out where that comes from as well. My guess is that all that data is actually in the java.net.Socket classes, as I am seeing the same results with the JIO connector, but not with APR(cause APR allocates mem using pools) Btw, had to put in the byte[] buffer back into the InternalNioOutputBuffer.java, ByteBuffers are way to slow.

With APR, I think the connections might be lingering to long as eventually, during my test, it stop accepting connections. Usually around the 89th iteration of the test. I'm gonna keep working on this for a bit, as I think I am getting to a point with the NIO connector where it is a viable alternative.

I agree, it seems it's better than java.io (although it's not faster, it seems more scalable, and I'm getting less errors during the tests).

Rémy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to