Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Boot app in Intellij: Debug takes 10x longer than Run

I'm using Intellij Idea 2020.3.3. I have a number of Spring Boot apps (microservices) that I've been running for almost 2 years. One day I started them up in the debugger, and it now takes ~200 seconds to initialize, versus ~25 seconds without the debugger. Nothing changed from one day to the next - Debug mode just started 10x longer.

I'm not sure what information would be helpful to show here to diagnose this. Does anyone have a generic checklist of things that generally cause debug to slow down so drastically? It's not just the initialization - the whole application has become so slow that it's impossible to use. This applies to all of my apps.

like image 565
CNDyson Avatar asked Oct 22 '25 22:10

CNDyson


1 Answers

Breakpoints on Class Fields lead to this behavior here.

Also this article maybe helpful: https://intellij-support.jetbrains.com/hc/en-us/articles/206544799-Java-slow-performance-or-hangups-when-starting-debugger-and-stepping

like image 191
Fabian Barney Avatar answered Oct 24 '25 13:10

Fabian Barney



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!