OpenVZ Forum


Home » General » Support » Container stall leads to server hang
Re: Container stall leads to server hang [message #48742 is a reply to message #48741] Tue, 13 November 2012 14:56 Go to previous messageGo to previous message
seanfulton is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CT starts in vz init, even if stopped before and disabled.
Next Topic: Gentoo template creation - stat(/vz/root/1001): No such file or directory
Goto Forum:
  


Current Time: Wed Oct 16 09:48:13 GMT 2024

Total time taken to generate the page: 0.04983 seconds