Ubuntu System Androidstudio Modify memory size

Source: Internet
Author: User
<span id="Label3"></p><p><p>Studio64.vmoptions and Studio.vmoptions files located in the Android-studio/bin directory.</p></p><p><p>The xms,xmx,-xx:maxpermsize,-xx:reservedcodecachesize to change the larger, according to the size of the computer memory allocated a little More.</p></p><p><p>1.studio64.vmoptions file</p></p><p><p>-xms512m<br>-xmx2048m<br>-xx:maxpermsize=1024m<br>-xx:reservedcodecachesize=1024m<br>-ea<br>-dsun.io.usecanoncaches=false<br>-djava.net.preferipv4stack=true<br>-djna.nosys=true<br>-djna.boot.library.path=<br><br><br>-djna.debug_load=true<br>-djna.debug_load.jna=true<br>-djsse.enablesniextension=false<br>-xx:+usecodecacheflushing<br>-xx:+useconcmarksweepgc<br>-xx:softreflrupolicymspermb=50<br>-dawt.usesystemaafontsettings=lcd<br></p></p><p><p><br></p></p><p><p>2.studio.vmoptions file</p></p><p><p>-server<br>-xms518m<br>-xmx2048m<br>-xx:maxpermsize=1024m<br>-xx:reservedcodecachesize=1024m<br>-ea<br>-dsun.io.usecanoncaches=false<br>-djava.net.preferipv4stack=true<br>-djna.nosys=true<br>-djna.boot.library.path=<br><br><br>-djna.debug_load=true<br>-djna.debug_load.jna=true<br>-djsse.enablesniextension=false<br>-xx:+usecodecacheflushing<br>-xx:+useconcmarksweepgc<br>-xx:softreflrupolicymspermb=50<br>-dawt.usesystemaafontsettings=lcd</p></p><p><p>3. After the modification, execute file/invalidate cashes/restart in Androidstudio and click "Invalidate and Restart" in the pop-up dialog to Restart.</p></p><p><p>Ubuntu System Androidstudio Modify memory size</p></p></span>

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.