Eclipse uses jetty plug-in for memory overflow solution

Source: Internet
Author: User
Tags garbage collection

The system runs under the jetty plugin in Maven and prompts Outofmemoryerror:permgen space when the eclipse is shipped clean jetty:run.


Workaround:
Set the property VM arguments under the Run as--->run configuragtions--->jre tab:

-server-xms512m-xmx1024m-xx:permsize=512m-xx:maxpermsize=512m-xx:+cmsclassunloadingenabled-xx:+printgcdetails- Xloggc:%m2_home%/gc.log-xx:+heapdumponoutofmemoryerror-xx:heapdumppath=%m2_home%/java_pid.hprof

The parameters are described as follows:

-xx:+cmspermgensweepingenabled: Allow Permgenspace garbage collection

-xx:+cmsclassunloadingenabled:allows the garbage collector to remove even classes from the memory

-xx:permsize=256m-xx:maxpermsize=256m:raises The amount of memory allocated to the Permgenspace

To resolve a failure case:
1. Add maven_opts= "-xms40m-xmx512m-xx:permsize=512m" to the system environment variable.

2. Adding-xms40m-xmx512m-xx:permsize=512m to the Eclipse.ini file is not possible.

3. Run as--->run configuragtions the properties VM arguments under the >jre tab:

-xms512m-xmx1024m

Eclipse has a memory overflow solution using the jetty plugin

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.