Why does MyEclipse start Tomcat slowly and Its Solution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.