• Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring injection blocked for too long

 
Arumugam Jeganathan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,



This screenshot is from VisualVM profiler for a Apache CXF RESTful web service. What we see here is call stack between a service entry point SomeClass.total() and HelperClass.process(). HelperClass  is spring injected instance variable. Below is the sample code. Does anybody know what is the $Proxy322.total() doing for 945 seconds (16 mins)?


you can see the time taken on the right side. Whatever the helper.process() method does, it only takes about 6 seconds.. The remaining 939 seconds are spent between the first line of the code and actual invocation of the process() method

I have no clue why or where the Proxy come from. I was thinking it's from Spring. The first blacked out line in the image is com.test.SomeClass.total() from the snippet - that's what before the proxy. I see this happening various places in the application where there is spring injection
 
Vijitha Kumara
Bartender
Posts: 3953
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to CodeRanch!

Without much details about the big picture, I'd suggest you test without Spring injection (if that is the real issue) to make sure what causes the delay.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!