The eclipse startup parameter solves the issue that CPU usage is 100% and must be "ended immediately ".

Source: Internet
Author: User
Post:

Symptoms:
When using eclipse, you can click a button or icon or even enterCodeTime, the entireProgramWorker occupies CPU 50% (equivalent to a single CPU of 200), memory occupies more than MB, and the CPU and memory usage values remain unchanged. The fan of the machine starts to roar and waits for half a day. Click "close" to bring up the "close now" dialog box. You can only force exit without any help. Sometimes, when you encounter it more than 10 times a day, the availability is basically lost.

Find a solution:
Baidu and Google search. The general solution is to adjust the startup parameter-XMS-xmx to increase the heap memory. However, setting it to-xms512m-xmx512m on the above machine is still ineffective, by the time the response is lost, the memory occupied is still more than 200 MB.
It seems that this problem has to be solved by yourself. Run the following command to start Eclipse:
Java-xms512m-xmx512m-jar startup. Jar
When the response is lost, we find that Java is printed in the command line. lang. outofmemoryerror: permgen space, open workspace /. metadata /. log File, found many such strings, paste this paragraph on the search engine, found many such problems, but generally occurs in Tomcat, Weblogic and other Web applications, no one has reported that it will appear in eclipse. The solution is to add the startup parameters:
-XX: maxnewsize = 256 m-XX: maxpermsize = 256 m
In eclipse. ini, change the startup parameter:

- Xms512m - Xmx512m - XX: maxnewsize = 256 m - XX: maxpermsize = 256

It took a few days to start eclipse and there were no symptoms of losing response.

Or: Java-xms512m-xmx512m-jar startup. Jar

Related Article

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.