Mantis - Resin
Viewing Issue Advanced Details
5186 minor always 08-21-12 20:58 10-25-12 11:13
fuyou001  
ferg  
normal  
closed 3.1.8  
fixed  
none    
none 4.0.33  
0005186: classLoader cause rmi network traffic
I deploy a RMI Service ,write a RMI Client(J2SE project) to access it and is ok .but the some code in web project,I use wireshark to find that every RMI request sent from our client to our server containing the list of all jars in the classpath for the application, My problem is similar to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6664389 [^] and https://issues.jboss.org/browse/JBAS-5022 [^]
 rmi.png [^] (163,474 bytes) 08-21-12 22:52

Notes
(0006011)
fuyou001   
08-22-12 01:11   
any patch to solve it,at it is online service.

JETTY also have the bug .it is reported at http://jira.codehaus.org/browse/JETTY-1540?focusedCommentId=306765&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-306765 [^]

Question also asked at http://stackoverflow.com/questions/12049951/rmi-performance-network-traffic [^]

(0006072)
ferg   
10-25-12 11:13   
Note: this is not a bug in Resin. It is an RMI bug.

Resin is correctly returning the URLs from the URLClassLoader.getURLs(). RMI is choosing to send those across the wire.

added a DynamicClassLoader.setDisableURLs(true) to disable the getURLs() to work around the RMI bug.

env/0067