View and collect the JVM's memory usage in eclipse

Source: Internet
Author: User
Tags garbage collection memory usage

View the memory usage of the JVM in eclipse
Here's how:
1. Create a file in the Eclipse root directory, the file name options, do not add the suffix directly saved, file content Org.eclipse.ui/perf/showheapstatus=true
2. Modify the Eclipse.ini file in the Eclipse directory to begin adding the following:
-debug
Options
-vm
Javaw.exe
Restart Eclipse, you can see the status bar below the JVM more information

Or

Let your eclipse also show the current amount of memory used by the JVM:

1, in the Eclipse root directory to create a file, file name options, file content org.eclipse.ui/perf/showheapstatus=true

2. Use this command to start Eclipse:e:/eclipse3.1/eclipse.exe-debug OPTIONS-VM Javaw.exe or right-click Eclipse Shortcuts, and fill in the line in "target".

3. When you start eclipse, you can see that the following status bar shows the current JVM memory usage and also enforces garbage collection.

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.