That’s right you can pass in -Xmx to restrict maximum JVM heap size. An issue related to cloudstack agent was recently fixed on 4.3/4.4/4.5/master; https://github.com/apache/cloudstack/commit/19d73fe67d6c43ec4ef7c4a8e76c09e15e05a830
> On 26-Nov-2014, at 1:51 pm, Andrija Panic <[email protected]> wrote: > > This is what I see on ACS 4.4.2, so perhaps you make same/similar changes, > with limiting java RAM usage etc: > > [root@compute1 ~]# grep -ir Xmx /etc/ > /etc/cloudstack/management/tomcat6-nonssl.conf:JAVA_OPTS="-Djava.awt.headless=true > -Dcom.sun.management.jmxremote=false -Xmx2g -XX:+HeapDumpOnOutOfMemoryError > -XX:HeapDumpPath=/var/log/cloudstack/management/ -XX:PermSize=512M > -XX:MaxPermSize=800m" > > /etc/cloudstack/management/tomcat6.conf:JAVA_OPTS="-Djava.awt.headless=true > -Dcom.sun.management.jmxremote=false -Xmx2g -XX:+HeapDumpOnOutOfMemoryError > -XX:HeapDumpPath=/var/log/cloudstack/management/ -XX:PermSize=512M > -XX:MaxPermSize=800m" > /etc/cloudstack/management/tomcat6-ssl.conf:JAVA_OPTS="-Djava.awt.headless=true > -Dcom.sun.management.jmxremote=false > -Djavax.net.ssl.trustStore=/etc/cloudstack/management/cloudmanagementserver.keystore > -Djavax.net.ssl.trustStorePassword=vmops.com -Xmx2g > -XX:+HeapDumpOnOutOfMemoryError > -XX:HeapDumpPath=/var/log/cloudstack/management/ -XX:MaxPermSize=800m > -XX:PermSize=512M" > > On 26 November 2014 at 09:13, Jochim, Ingo <[email protected]> > wrote: > >> The upgrade to 4.4 is planned but we are looking for a short term solution. >> >> Ingo >> >> -----Ursprüngliche Nachricht----- >> Von: Andrija Panic [mailto:[email protected]] >> Gesendet: Mittwoch, 26. November 2014 08:57 >> An: [email protected] >> Betreff: Re: CS agent consumes a lot of RAM >> >> Had exact same issue, fixed in 4.3... >> >> Not sure how to limit it with some java option maybe... ? >> >> On 26 November 2014 at 08:41, Jochim, Ingo <[email protected]> >> wrote: >> >>> Hi all, >>> >>> on CS 4.2 we have the problem that the agent on the hypervisors >>> consumes a lot of memory sometimes. >>> If that happens the OS starts to kill the virtual machines. >>> >>> Are there any solutions out there or some java configurations for the >>> agent? >>> >>> Thanks and regards, >>> Ingo >>> >>> -- >>> This email was Virus checked by Astaro Security Gateway. >>> http://www.sophos.com >>> >> >> >> >> -- >> >> Andrija Panić >> >> -- >> This email was Virus checked by Astaro Security Gateway. >> http://www.sophos.com >> > > > > -- > > Andrija Panić Regards, Rohit Yadav Software Architect, ShapeBlue M. +91 88 262 30892 | [email protected] Blog: bhaisaab.org | Twitter: @_bhaisaab Find out more about ShapeBlue and our range of CloudStack related services IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//> CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/> CloudStack Software Engineering<http://shapeblue.com/cloudstack-software-engineering/> CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/> CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/> This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
