The JVM cannot be started, and JPS cannot run, prompting that the memory is insufficient.

Source: Internet
Author: User

Cause: the system setting does not allow over commit.

So, cannot allocate enough memory

 

/Etc/sysctl. conf

VM. overcommit_memory = 1
Or
Sysctl VM. overcommit_memory = 1

Or

Echo 1>/proc/sys/Vm/overcommit_memory kernel parameters are described as follows: The overcommit_memory file specifies the kernel's memory allocation policy. The value can be 0, 1, or 2. 0 indicates that the kernel will check whether there is enough available memory for use by the process. If there is enough available memory, the memory application will be allowed; otherwise, the memory application will fail, and return the error to the application process.
1 indicates that the kernel allows all physical memory allocation regardless of the current memory status.
2. indicates that the kernel is allowed to allocate more memory than the total physical memory and swap space.

The JVM cannot be started, and JPS cannot run, prompting that the memory is insufficient.

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.