PDA

View Full Version : suggest: speed up local rmi invoke


steeven
Sep 11th, 2004, 11:50 PM
I made a 1000 loop test on local bean and RMI bean invokation:
testAccountService:40ms
testAccountServiceR:50ms
testRMIAccountService:7731ms (normal object rmi service with RmiInvocationWrapper)
testRMIAccountServiceR:1332ms (normal rmi service with Remote interface)

R means java.rmi.Remote interface.
it seemed that remoting invoke made great cost. so i think springframework should detect that whether the remoting service is located in same jvm, if true, local bean was derectly returned, else remote bean was returned.

steeven
Sep 12th, 2004, 02:54 AM
1000 loop test:

testDirectAccountService:10 ---direct java call
testDirectAccountServiceR:20
testAccountService:40 ---factory.getBean(xxx)
testAccountServiceR:40
testRMIAccountService:7711 ---normal object's rmi service
testRMIAccountServiceR:1402 ---Remote object's rmi service
testAccountServiceHessian:4637 ---normal object's hessian service
testAccountServiceBurlap:3726 ---normal object's hessian service
testAccountServiceHttpinvoker:16744 ---normal object's hessian service

here is test source:
http://www.cnblogs.com/Files/steeven/spring-remoting-test.rar