question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeMappedAnnotation.getValue(int,boolean,boolean) burns a lot of CPU, 2x total CPU usage on process after upgrade from 5.1 to 5.2

See original GitHub issue

Affects: 5.2 Type: Bug

SpringFramework 5.2 has a regression in CPU performance when dealing with RequestParameters with default values in combination with having a Filter that looks at the HttpServletRequest & HttpServletResponse (AccessLogging). The impact on CPU is massive when upgrading from 5.1 to 5.2.

I replicated the behaviour here https://github.com/jensim/spring-boot-compare-22-21

@philwebb @jhoeller @sbrannen

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sbrannencommented, Apr 26, 2020

@jensim in light of the fix for #24970, could you please try out a 5.2.6 snapshot build to see if that improves the situation for you?

Looking forward to your feedback!

0reactions
sbrannencommented, Apr 27, 2020

Its still a noticeable regression over 5.1, if you are looking for it.

We are indeed considering other ways to improve the performance of our annotation processing.

See #24981

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reintroduce synthesized annotation attribute value caching
TypeMappedAnnotation.getValue(int,boolean,boolean) burns a lot of CPU, 2x total CPU usage on process after upgrade from 5.1 to 5.2 #24961.
Read more >
Guidance for troubleshooting high CPU usage - Windows Server
This article helps you identify the cause of sustained high CPU usage. Keep in mind that you can expect CPU usage to increase...
Read more >
High CPU usage kernel_task with 2 monitors - Apple Developer
The following should fix the high kernel_task CPU usage: Disconnect both external monitors. Shut down the Mac. Plug in the MagSafe power adapter...
Read more >
Solved: Re: CPU Monitoring Is Disabled - NetApp Community
CPU usage can be tracked through performance counters collected by Performance Advisor. Use the CPU Utilization graph in "Storage System Summary View" to...
Read more >
K28018443: After upgrade to 16.1.x, CPU usage remain high.
After upgrade /booting up from 16.1.x, odd number CPU usage went high, ... determine if the java process has datasyncd as parent process....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found