Announcement Announcement Module
Collapse
No announcement yet.
suggest: speed up local rmi invoke Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • suggest: speed up local rmi invoke

    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.

  • #2
    another test result for performance

    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...oting-test.rar

    Comment

    Working...
    X