Translated message

A translation of this page exists in English.

RHEL 6.4 で java -version コマンドに失敗し、"Could not reserve enough space for object heap" メッセージが表示されます

Solution Verified - Updated -

Issue

  • RHEL 6.4 で java -version コマンドを実行すると失敗し、以下のエラーが表示されます。
 Error occurred during initialization of VM
 Could not reserve enough space for object heap
 Error:Could not create the Java Virtual Machine.
 Error:A fatal exception has occurred.Program will exit.

システムを再起動すると問題は発生しなくなりますが、しばらくするとまた発生します。

  • 32 ビット OS で java -server -Xms512m -Xmx1190 コマンドを実行すると失敗し、以下のエラーが発生します。
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error:Could not create the Java Virtual Machine.
Error:A fatal exception has occurred.Program will exit.

-Xmx のメモリ制限はランダムなので、ケースバイケースでテストする必要があります。

  • 最新のエラータで RH6 をアップデートすると、tomcat6 を実行することができません。
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

Environment

  • Red Hat Enterprise Linux (RHEL) 6.4
    • kernel 2.6.32-358.11.1.el6 以降
  • OpenJDK 1.6/1.7
  • Oracle JDK/JRE 1.6/1.7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content