Mac OS System build Java EE environment < four > IntelliJ Idea memory optimization

Source: Internet
Author: User

1, on behalf of IntelliJ idea display content

2. Open idea.vmoptions File

Path is contens--bin--idea.vmoptions

A copy of the backup original configuration is copied before the modification

Original Configuration

The modified configuration

3, the meaning of the contents of the document

-xms128m
-xmx2048m
-xx:permsize=128m
-xx:maxpermsize=1024m
-xx:reservedcodecachesize=1024m
-xx:+usecompressedoops
-ea
-dsun.io.usecanoncaches=false
-dsun.awt.keepworkingsetonminimize=true
-djava.net.preferipv4stack=true
-djsse.enablesniextension=false
-xx:+usecodecacheflushing
-xx:+useconcmarksweepgc
-xx:softreflrupolicymspermb=50

-vmargs: description is followed by the parameters of the vm-xms128m: virtual machine occupies the System's minimum memory-xmx2048m: virtual machine occupies the System's maximum memory-xx:permsize: minimum heap size. Generally reported insufficient memory, is said that this is too small, heap space remaining less than 5% will be warned, it is recommended to set this slightly larger, but depending on the size of your machine memory to Set-xx:maxpermsi Ze: Maximum Heap Size. It's a little bit bigger. IntelliJ idea will take up memory to do some faster work, improve our development efficiency, and avoid some big items that will prompt memory overflow.

Mac OS System build Java EE environment < four > IntelliJ Idea memory optimization

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.