Re: Container stall leads to server hang [message #48742 is a reply to message #48741] |
Tue, 13 November 2012 14:56   |
seanfulton
Messages: 105 Registered: May 2007
|
Senior Member |
|
|
The lack of swap could be the problem, especially with limited RAM like you have. With the 2.6.32 kernel you should check the SWAPPAGES variable in /etc/vz/conf/*.conf and see if you told any of your VEs to swap. That could do it, or it could just be that the HN ran out of RAM and couldn't swap.
Easy way to add swap (and keep you from getting hung up again) is to create a swap file have the system swap to it. Here is a how-to. Just to be safe, if you have the room, make your swap extra big. The system will get really, really slow when it starts to swap a lot, so you will know it.
http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/
uses
dd if=/dev/zero of=/swapfile1 bs=1024 count=524288
for a 512M swap file. I would do count=2097152 for a 2G swap, or if you have the room,
count=4194304
Like I said, the system will get really, really slow when it starts to swap so you know know you are having a problem.
sean
|
|
|