Java を実行すると Cannot allocate memory エラーが発生する

Solution Unverified - Updated -

Issue

  • java を実行すると、Cannot allocate memory エラーが発生するのはなぜですか?
$ java -version
OpenJDK 64-Bit Server VM warning:INFO: os::commit_memory(0x00007f487d000000, 4194304, 2097152, 1) failed; error='Cannot allocate memory' (errno=12)
OpenJDK 64-Bit Server VM warning:INFO: os::commit_memory(0x00000000b9c00000, 20971520, 2097152, 0) failed; error='Cannot allocate memory' (errno=12)
OpenJDK 64-Bit Server VM warning:INFO: os::commit_memory(0x00000000cdc00000, 41943040, 2097152, 0) failed; error='Cannot allocate memory' (errno=12)
OpenJDK 64-Bit Server VM warning:INFO: os::commit_memory(0x00000000f5a00000, 23068672, 2097152, 0) failed; error='Cannot allocate memory' (errno=12)
java version "1.7.0_51"
OpenJDK Runtime Environment (rhel-2.4.4.1.el6_5-x86_64 u51-b02)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

Environment

  • Red Hat Enterprise Linux 6.
  • バージョンが 1.7.0.45-2.4.3.2.el6_4 以降の java-1.7.0-openjdk
  • 静的 (クラシック) な hugepages が有効になっている
  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.