Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

time consumption by the stub and the service methods  RSS feed

 
srinivas kumarr
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • 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!
 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • 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.
 
Essp Web
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think Naren is right.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!