<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">The memory limit is set through cgroup.<br>
You can change this through lxc-cgroup -n [Container]
memory.limit_in_bytes = XG <br>
Or echo into the /sys/fs/cgroup/lxc/[Container]
memory.limit_in_bytes<br>
(and change this in container config:
lxc.cgroup.memory.limit_in_bytes = XG)<br>
<br>
Regards,<br>
Andreas<br>
<br>
Am 21.03.2014 10:28, schrieb Mingjiang Shi:<br>
</div>
<blockquote
cite="mid:CALNLGa9MCHwfBedQQavuuxrsbLewpkLimgtb5RCZhN1bTCz8vg@mail.gmail.com"
type="cite">
<div dir="ltr">Hi there,
<div>My application in the container is running out of memory.
How to set the resource such as memory limits to a container
so that it gets more memory? I googled a lot but didn't find
straightforward tutorials. Thanks!<br clear="all">
<div><br>
</div>
-- <br>
Thanks<br>
-Mingjiang
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
lxc-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a></pre>
</blockquote>
<br>
</body>
</html>