RHEL 6.4 で java -version コマンドに失敗し、"Could not reserve enough space for object heap" メッセージが表示されます
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
