Ubuntu Error: Unable to allocate memory (ERRNO=12)

Source: Internet
Author: User

Today, I met a big hole, almost killed!

Previously installed Ubuntu dual system, later crashed, want to install VMware virtual machine, and then install Ubuntu, everything went well, until the virtual machine in Ubuntu install idea when there is a problem.
The installation process did not error, but after starting a project to run, the project has not yet loaded, and then exit directly, generate an error log, as follows:

  


  OpenJDK 64-bit Server VM warning:info:os::commit_memory (0x00000000f5a9b000, 66166784, 0) failed; Error= ' Unable to allocate memory ' (ERRNO=12)

Some of the content in the log is:

# There is insufficient memory for the Java Runtime environment to continue.
# Native memory allocation (MMAP) failed to map 66166784 bytes for committing reserved memory.
# Possible reasons:
# The system is out of physical RAM or swap space
# in + bit mode, the process size limit is hit
# Possible Solutions:
# Reduce Memory load on the system
# Increase physical memory or swap space
# Check If swap backing store is full
# Use a bit of Java on a A-bit OS
# Decrease Java Heap Size (-XMX/-XMS)
# Decrease number of Java threads
# Decrease Java Thread stack sizes (-XSS)
# Set Larger code cache with-xx:reservedcodecachesize=
# This output file could be truncated or incomplete.
#
# Out of Memory Error (os_linux.cpp:2627), pid=3309, tid=0x00007f0174cfc700
#
# JRE VERSION:OPENJDK Runtime Environment (8.0_112-B16) (build 1.8.0_112-release-736-b16)
# Java Vm:openjdk 64-bit Server VM (25.112-b16 mixed mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps has been disabled. To enable core dumping, try "ulimit-c unlimited" before starting Java again

Really go a lot of detours, tried countless times: reload the Idea,idea configuration file to configure the size of the JVM, the memory of the virtual machine to adjust a lot more, and so on.

most later according to (ERRNO=12) this search to an article, said:
Later saw a U.S. military article (http://www.enchantedage.com/node/235), plus a configuration:echo 1000000 >/proc/sys/vm/max_map_count

I saw myself. Virtual machine Ubuntu inside, the initial value of/proc/sys/vm/max_map_count is very small, only 6w more, decisive use this reset a bit.

Ah, finally good, too difficult.

  

Tags: virtual machine in Ubuntu install idea error Unable to allocate memory (ERRNO=12)

Original article, welcome reprint, Reprint please specify place!

Ubuntu Error: Unable to allocate memory (ERRNO=12)

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.