I don't know if my friends have any worries: Sometimes it is very slow to start Tomcat using MyEclipse. It may be less than 20 seconds a few minutes ago, but now it takes 200 seconds to open Tomcat; in the meantime, both the memory and CPU are heavily occupied, and the console output seems to be duplicate. When the startup is completed, it is found that the request response speed is several times slower than usual. This will not happen on another machine or on another MyEclipse/Eclipse.
At this time, you may be annoyed: it should not be a code issue.
In fact, this is a Bug in MyEclipse. Not surprisingly, the above will happen after you add a breakpoint!
We can see through illustration:
The breakpoint should not appear in the red box. If you double-click it, the breakpoint will normally appear in the first executable statement of the method (for example, in the blue box, from top down to third place ).
Under normal circumstances, we can only set a breakpoint on the method signature (such as the second breakpoint) and method body. It is impossible to set a breakpoint for annotations. However, if MyEclipse is sold out, we can easily set the breakpoint to comments, so I am responsible for telling you: The above situation will happen! (It is worth mentioning that if the code is not significantly modified, such as copying and pasting from other places, the above situation will not happen)
The solution is clear: remove these non-existent breakpoints!
However, you will soon find that: Please be easy to give away, you double-click again, but you cannot cancel the breakpoint! (In most cases)
But don't worry, please refer:
You can switch to the debugging mode, locate the breakpoint, and cancel it.
1. Although there are traces of breakpoints, it will not affect anything at this time.
Tomcat details: click here
Tomcat: click here
Load Balancing between Apache and multiple Tomcat clusters in Linux
Nginx Tomcat Cluster load balancing solution notes
Instance details Tomcat component installation + Nginx reverse proxy Tomcat + Apache use mod_jk and mod_proxy Reverse Proxy and load balancing
Build an Apache + Tomcat environment (JK deployment process)
In-depth analysis of Tomcat PDF