• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

time consumption by the stub and the service methods

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is a performance issue with the web services which is reported recently. The Service method i.e. in my case AccountBalanceService.initFactory is taking 380 milliseconds while the stub method is taking i.e. in my case availableBalanceServiceStub.availableBalance is taking 2 seconds. QA people reported about why it is taking more time while the service method is quick. What might be the cause here? For me, it's seems that it might be the networking issues, marshalling and unmarshalling of the soap files and the JVM settings on the machines.
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
Excuse my ignorance, but I do want to try to help but do not quite understand:
Where is the performance issue, on the client side or on the service side?
Are initFactory and availableBalance two different operations in the service?
Best wishes!
 
Ranch Hand
Posts: 577
Tomcat Server Notepad Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Srinivas,

The Service method i.e. in my case AccountBalanceService.initFactory is taking 380 milliseconds while the stub method is taking i.e. in my case availableBalanceServiceStub.availableBalance is taking 2 seconds


I presume you are comparing Dynamic Proxy and Generated Stub web service invocation mechanisms here. If so, I'd be surprised to see the results. I'd have thought Generated Proxy code takes less time compared to Dynamic Proxy, owing to extra time in generating proxies dynamically using reflection API in Dynamic Proxy. Are these results consistent? If so, did you manage to monitor line to line performance stats and notice where exactly it's taking more time in case of stubs?

For me, it's seems that it might be the networking issues, marshalling and unmarshalling of the soap files and the JVM settings on the machines.


As long as you are using same JVM to compare, I don't think the above would cause performance deviation as they'd pretty much same in both.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think Naren is right.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic