Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How many client and server sockets does the current RMI implementation use?  RSS feed

 
joseph lam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone confirm whether the following statements are true:

1. each client "lookup" of a remote objects results in a unique client side socket.

2. each remote object type will be exported to (typically anonymous) unique port.

3. So the number of sockets used on both the server and client side equates to the number of remote objects (assuming a client normally perform one lookup for each remote object once.)

And here's a related question:

1. Does existing RMI multiplexes a socket with a number of remote objects (each being different type)? If not, is there a way? Do we do that through custom socket factory and custom socket, where perhaps the added logic of multiplexing happens? Is this a good idea to improve performance?
 
Mr. C Lamont Gilbert
Ranch Hand
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
on your client VM add

-Dsun.rmi.transport.proxy.logLevel=VERBOSE

If its a sun VM
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!