Intelliji idea is very slow in debug mode and it is running perfectly in normal mode

后端 未结 10 1765
甜味超标
甜味超标 2021-02-14 08:41

Intelliji idea is very slow in debug mode and it is running perfectly in normal mode.

I already tried by setting the below thing in /etc/hosts file sudo nano /etc/hosts

相关标签:
10条回答
  • 2021-02-14 09:22

    Make sure that you don't use "biz.paluch.logging.gelf.logback.GelfLogbackAppender" among your logs. In my case usage of such kind of appender was the cause of drastically slow starting in debug mode.

    0 讨论(0)
  • 2021-02-14 09:23

    In my case I just had to disable the option: "Show method returns values" Image of the option

    0 讨论(0)
  • 2021-02-14 09:29

    Remove breakpoint from DAO interface and all work nice!

    0 讨论(0)
  • 2021-02-14 09:31

    Remove breakpoints off your method and use them inside the method as that can cause your debug to take a very long time.

    Try running IntelliJ as admin. I had this issue at work where debugging was extremely slow and running as admin actually made it a lot faster.

    Method breakpoints may dramatically slow down debugging

    There is a simple explanation from the IntelliJ Team: "Method breakpoints will slow down debugger a lot because of the JVM design, they are expensive to evaluate"

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

    0 讨论(0)
  • 2021-02-14 09:31

    If you disable this options in Build, Execution, Deployment -> Debugger -> Data Views --> Java, things will start work faster when debugging.

    0 讨论(0)
  • 2021-02-14 09:38

    I had the similar issue. In my case it was method breakpoints. There was just one break point on a method. My spring boot app took around 20 mins to launch. When I removed the breakpoints it took 4 seconds to launch.

    I also changed the debugger settings.

    1. Unchecked - Enable alternative view view for Collections classes
    2. Unchecked - Enable 'toString()' object view:

    but these settings didn't make a difference.

    0 讨论(0)
提交回复
热议问题