[[+content_image]]
D
D
dumbs2014-04-18 12:40:58
Java
dumbs, 2014-04-18 12:40:58

Java Keytool - Could not reserve enough space for object heap (CentOS 6)

Hello.
When using Java keytool on CentOS, the following error occurs:

[[email protected] java]# keytool -Xmx100m
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.

Adding -Xmx100m flag doesn't help,
whereas: java -Xmx100m -version works
[[email protected] java]# java -Xmx100m -version
java version "1.7.0_55"
OpenJDK Runtime Environment (rhel-2.4.7.1.el6_5-x86_64 u55-b13)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question