<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi,</p>
<p><br>
</p>
<p>I'm trying to track down why my Foreman Centos7 VM continuously crashes with out of Memory errors on my ovirt-3.6 hosts and what seems to happen is the following:</p>
<p><br>
</p>
<p>1. The Foreman VM only uses 1GB at the beginning and MOM over time reduces the memory size from 8GB Ram to the defined minimum of 2GB
<br>
</p>
<p><br>
</p>
<p>mom.log:<br>
2016-03-18 12:25:42,669 - mom.Controllers.Balloon - INFO - Ballooning guest:qvie-foreman from 2210584 to 2100054</p>
<p><br>
</p>
<p>2. When the VM needs RAM very quickly like if you do an 'cp /dev/zero /run/zero' the ovirt guest agent crashes with an out of memory error.</p>
<p><br>
</p>
<p>ovirt-guest-agent.log:</p>
<p>Traceback (most recent call last):<br>
File "/usr/share/ovirt-guest-agent/OVirtAgentLogic.py", line 239, in doWork<br>
self.sendUserInfo()<br>
File "/usr/share/ovirt-guest-agent/OVirtAgentLogic.py", line 355, in sendUserInfo<br>
cur_user = self.dr.getActiveUser()<br>
File "/usr/share/ovirt-guest-agent/GuestAgentLinux2.py", line 325, in getActiveUser<br>
users = os.popen('/usr/bin/users').read().split()<br>
OSError: [Errno 12] Cannot allocate memory<br>
<br>
3. Resulting in an MOM warning that it can't get any memory stats from the VM. Leaving the memory size at its minimum size:.<br>
</p>
<p><br>
</p>
<p>mom.log:<br>
</p>
<p>mom.Collectors.GuestMemory - WARNING - getVmMemoryStats() error: The ovirt-guest-agent is not active</p>
<p><br>
</p>
<p>Any chances to prevent that from happening? Or is this a bug in MOM / ovirt-guest-agent that should be fixed?<br>
</p>
<p><br>
</p>
<p>Greetings</p>
<p>Andreas<br>
<br>
</p>
</div>
</body>
</html>