Announcement Announcement Module
No announcement yet.
Unknown Performance Issue in MVC Controller Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unknown Performance Issue in MVC Controller


    We use Spring 3.1.2. I'm debugging an ongoing problem where on occasion a request is shown to take way too long - between a couple seconds and 1 or 2 minutes. This is observed via NewRelic for a fraction of the total web requests, but it affects all URLs. The situation it occurs under is throughout the day (not just peak hours) and for all json requests, although possibly that is a red herring since all of our requests are json, and whether or not the controller is JDK or CGLib proxied.

    What I see in newrelic is that the web request has been fast up until it reaches the controller proxy [the EnhancerByCGLIB part], and is fast after it has reached the real controller method [for example, QuoteController.getMarketStatus]. The part that is slow seems to be what newrelic can't seem to show... it shows it below as "Application code"
      Application code (in QuoteController$$EnhancerByCGLIB$$e1184bec.getMarketStatus())
    As far as I know, everything that exhibits this problem has a RequestMapping annotation, on either the class or method level, or both.

    I do not know what is causing the issue, and could use some help debugging it, because I think it may be related to Spring controllers.