|
From: black <hq-...@hy...> - 2007-03-21 23:01:01
|
Hi, on my system I've seen that the hyperic agent uses a lot of memory; please look at ps output: > ps aux | grep java root 31927 0.0 6.6 499104 137508 ? Sl Mar19 1:26 /home/rackaid/hyperic-hq-agent-3.0.2/jre/bin/java -client -Dagent.propFile=agent.properties -Dorghyperic.hq.bizapp.agent.CommandsAPIInfo.camUpPort=56691 -Djava.security.auth.login.config=jaas.config -Xmx128m -Djava.net.preferIPv4Stack=true -classpath ./lib/AgentServer.jar:./lib/lather.jar:./pdk/lib/hq-product.jar:./pdk/lib/activation.jar:./pdk/lib/commons-beanutils.jar:./pdk/lib/hyperic-util.jar:./pdk/lib/log4j-12.14.jar:./pdk/lib/jakarta-oro-2.0.7.jar:./pdk/lib/tomcat-jk.jar:./pdk/lib/jdom_b8.jar:./pdk/lib/ant.jar:./pdk/lib/jxla.jar:./pdk/lib/commons-httpclient-2.0.jar:./pdk/lib/bcel-5.1.jar:./pdk/lib/junit.jar:./pdk/lib/snmp4j.jar:./pdk/lib/jsch-0.1.23.jar:./pdk/lib/commons-collections.jar:./pdk/lib/getopt.jar:./pdk/lib/commons-logging.jar:./pdk/lib/sigar.jar:./pdk/lib/dnsjava-2.0.3.jar: org.hyperic.hqagent.server.AgentDaemon As you can see it uses about 137Mb of memory; I think it's too much for an agent like this. Moreover the jre is started with -Xmx128m Can you tell me what can I do to reduce memory usage? is it possible to start the JRE with less memory, eg, -Xmx32m ? Do I risk to have "Out of Memory" errors? Thank you! Message was edited by: black |