[jboss-user] [JBoss Remoting] - Re: Does Remoting allow load testing that 'simulates' a number of clients

Ron Sigal do-not-reply at jboss.com
Wed Jul 25 01:40:49 EDT 2012

Ron Sigal [https://community.jboss.org/people/ron_sigal] created the discussion

"Re: Does Remoting allow load testing that 'simulates' a number of clients"

To view the discussion, visit: https://community.jboss.org/message/750062#750062

Hi Mike,

When you say "RMI protocol feature", I'm assuming you're talking about the tool, rather than Remoting.  Remoting has an RMI transport, but, by default, EJB2 in JBoss AS uses the Remoting socket transport, so that's what I'll address.

A Remoting server using the socket transport doesn't see clients, per se.  It has a pool of worker threads, each of which manages a connection to a client.  Now, on the client side, multiple clients running in the same JVM and connected to the same server will share a connection pool, where each connection in the pool is affiliated with a distinct worker thread.   If you have 50 clients running in a single JVM and they never do more than one simultaneous invocation, there will be only one connection in use and only one worker thread for all of these clients.  But if a client makes an invocation and the single connection is in use, a new connection and a new worker thread will be created.  If the clients are very busy and make 50 simultaneous invocations, you will have 50 connections and 50 worker threads.

Now, if your 50 clients are all running in different JVMs, there won't be any sharing of connections, so they will each have their own connection and worker thread.

Hope that helps.


Reply to this message by going to Community

Start a new discussion in JBoss Remoting at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120725/9ed284df/attachment.html 

More information about the jboss-user mailing list