VMware Cloud Community
scottpthompson
Contributor
Contributor

Agent throwing keystore / outofmemory error

I am attempting to use the latest (4.3) agent on a machine which has never had Hyperic on it before

We have 2 servers that are identical in hardware configuration and software to the best of my ability to tell. Hyperic Agent works terrific on one and fails on the other. On the one that works I just downloaded and started the service with 0 issues. On the one that is failing I have spent a ton of time trying a lot of things including removing, reinstalling, redownloading etc etc.

Both servers are Win 2003 with 4 CPUs and 4 g ram

I have tried increasing the initial mem, the max mem and the -Xmx settings in the <AGENT INSTALL>/bundles\agent-xxxx\conf\wrapper.conf file.

This is my error:

2010-06-25 11:27:35,214 ERROR [Thread-0] [AgentDaemon] Error starting plugin org.hyperic.hq.bizapp.agent.server.CommandsServer@4845aa
org.hyperic.hq.agent.server.AgentStartException: Failed to generate ../../data/keystore: [C:\hyperic-hq-agent-4.3.0\jre\bin\keytool -genkey -dname CN=AGENT-1277490447980-2612460526920733588-4765144366672678425, OU=HQ, O=hyperic.net, C=US -alias HQ -keystore ../../data/keystore -storepass storePW -keypass storePW -keyalg RSA ] Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.io.WinNTFileSystem.list(Native Method)
at java.io.File.list(Unknown Source)
at sun.security.provider.SeedGenerator$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.security.provider.SeedGenerator.getSystemEntropy(Unknown Source)
at sun.security.provider.SecureRandom.engineNextBytes(Unknown Source)
at java.security.SecureRandom.nextBytes(Unknown Source)
at java.math.BigInteger.randomBits(Unknown Source)
at java.math.BigInteger.<init>(Unknown Source)
at java.math.BigInteger.largePrime(Unknown Source)
at java.math.BigInteger.probablePrime(Unknown Source)
at sun.security.rsa.RSAKeyPairGenerator.generateKeyPair(Unknown Source)
at java.security.KeyPairGenerator$Delegate.generateKeyPair(Unknown Source)
at sun.security.x509.CertAndKeyGen.generate(Unknown Source)
at sun.security.tools.KeyTool.doGenKeyPair(Unknown Source)
at sun.security.tools.KeyTool.doCommands(Unknown Source)
at sun.security.tools.KeyTool.run(Unknown Source)
at sun.security.tools.KeyTool.main(Unknown Source)
at org.hyperic.hq.bizapp.agent.server.CommandsServer.createKeyStore(CommandsServer.java:298)
at org.hyperic.hq.bizapp.agent.server.CommandsServer.loadKeyStore(CommandsServer.java:313)
at org.hyperic.hq.bizapp.agent.server.CommandsServer.startup(CommandsServer.java:444)
at org.hyperic.hq.agent.server.AgentDaemon.startHandlers(AgentDaemon.java:708)
at org.hyperic.hq.agent.server.AgentDaemon.start(AgentDaemon.java:829)
at org.hyperic.hq.agent.server.AgentDaemon$RunnableAgent.run(AgentDaemon.java:926)
at java.lang.Thread.run(Unknown Source)
0 Kudos
0 Replies