简体   繁体   English

up:无法为对象堆保留足够的空间。 无法创建Java虚拟机

[英]Puppet: Could not reserve enough space for object heap. Could not create the Java virtual machine

I've the following two errors on my puppetmaster when i try to run the manifests on the masternode: 当我尝试在masternode上运行清单时,我的puppetmaster出现以下两个错误:

change from absent to latest failed: Execution of '/usr/bin/keytool -importcert 
-noprompt -alias puppetca -file /etc/puppetlabs/puppet/ssl/certs/ca.pem 
-keystore /etc/puppetlabs/activemq/broker.ts -trustcacerts' returned 1: 
Error occurred during initialization of VM Could not reserve enough space for 
object heap Could not create the Java virtual machine.

and... 和...

change from absent to latest failed: Execution of '/usr/bin/keytool 
-importkeystore -srcstoretype PKCS12 -destkeystore 
 /etc/puppetlabs/activemq/broker.ks -srckeystore 
 /tmp/domain.com.20130221-957-17scina-0 -alias domain.com' returned 1: 
 Error occurred during initialization of VM Could not reserve enough space 
 for object heap Could not create the Java virtual machine.

(i've changed my domain to domain.com) (我已将域更改为domain.com)

I tried to set the activemq_heap_mb parameter, but it doesn't help. 我试图设置activemq_heap_mb参数,但这无济于事。

I appreciate any suggestions :) 我感谢任何建议:)

Thanks 谢谢

You can try adding a -Xmx128m to your keytool command. 您可以尝试将-Xmx128m添加到keytool命令中。

If you are still getting the error try -Xmx256m or -Xmx512m 如果仍然出现错误,请尝试-Xmx256m或-Xmx512m

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 VM 初始化过程中发生错误 无法为对象堆保留足够的空间 无法创建 Java 虚拟机 - Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine VM初始化期间发生错误; 无法为对象堆保留足够的空间; 无法创建Java虚拟机 - Error occurred during initialization of VM; Could not reserve enough space for object heap; Could not create the Java virtual machine Java:无法为对象堆保留足够的空间 - Java: Could not reserve enough space for object heap Java无法为对象堆保留足够的空间 - Java Could not reserve enough space for object heap Java:无法为对象堆保留足够的空间 - Java : Could not reserve enough space for object heap Java无法为对象堆保留足够的空间-多个Java进程 - Java could not reserve enough space for object heap - multiple java processes 运行Java -version时,“无法为对象堆保留足够的空间” - 'Could not reserve enough space for object heap' when running java -version 无法为对象堆保留足够的空间 - Could not reserve enough space for object heap 恐惧无法为对象堆保留足够的空间 - Dreaded Could not reserve enough space for object heap VM无法为对象堆保留足够的空间 - VM Could not reserve enough space for object heap
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM