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

Puppet:无法为对象堆保留足够的空间。无法创建Java虚拟机,java,puppet,Java,Puppet,当我尝试在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 -trus

当我尝试在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.
而且

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.
(我已将我的域更改为domain.com)

我试图设置activemq_heap_mb参数,但没有帮助

我感谢您的建议:)


谢谢

您可以尝试将-Xmx128m添加到keytool命令中


如果仍然出现错误,请尝试-Xmx256m或-Xmx512m

看起来他没有足够的内存用于JVM,因此可能需要较小的堆,而不是较大的堆。这就是问题所在。谢谢