[jboss-user] [Performance Tuning] - checkConnection() consumes over 50% of CPU?

8forty do-not-reply at jboss.com
Tue Nov 6 12:16:55 EST 2007


I'm using JBoss AS 4.0.5, and have a @Service bean that, when called from a client, queues units of work that are forwarded to a @Stateless bean from a timer loop.  The @Stateless bean then spends a lot of time working.

When profiling the server (using yourkit), no matter how much CPU time the @Stateless bean spends on the work unit, more CPU time is spent in org.jboss.remoting.transport.socket.ServerSocketWrapper.checkConnection() (more specifically, all of the time is in ObjectInputStream.readByte()).  The @Stateless bean makes occasional calls to other @Stateless and @Service beans in the same JBoss instance/JVM, but makes no network calls.

I've googled and searched the forums and haven't found anything that helps explain the purpose of the checkConnection() calls.  Is there anything I can do to eliminate them, or at least reduce the load they are causing on my server?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102281#4102281

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102281



More information about the jboss-user mailing list