OpenVZ Forum


Home » General » Support » Memory maxed
Memory maxed [message #34803] Tue, 03 February 2009 19:44 Go to next message
HostRail is currently offline  HostRail
Messages: 12
Registered: November 2008
Junior Member
I have openvz on a server with 4 gigs ram.

I have 5 vms.

ram usages usually shows as ~:
vm1 160/512
vm2 272/512
vm3 539/2048
vm4 381/512
vm5 279/512

I have 2 vms that keep crashing with the:
"Cannot Allocate Memory" error.

It doesn't matter how much ram I give them the ram usage suddenly spikes and the vm is unusable.

any ideas as to what is going on wild be great!!! Smile
Re: Memory maxed [message #34805 is a reply to message #34803] Wed, 04 February 2009 00:08 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

please post the ubc (user_beancounters) for "crashing" containers ...

on hardwarenode:
# cat /proc/bc/<CTID>/resources

or for all containers
# cat /proc/user_beancounters


in a container:
# cat /proc/user_beancounters

See more at http://wiki.openvz.org/Resource_shortage

bye,
Thorsten
Re: Memory maxed [message #34806 is a reply to message #34805] Wed, 04 February 2009 01:41 Go to previous messageGo to next message
HostRail is currently offline  HostRail
Messages: 12
Registered: November 2008
Junior Member
kmemsize 5069637 6009478 2147483646 2147483646 0
lockedpages 0 0 512 512 0
privvmpages 77465 131335 131072 131072 740347428
shmpages 685 1661 131072 131072 0
numproc 49 60 512 512 0
physpages 31184 86884 0 2147483647 0
vmguarpages 0 0 131072 2147483647 0
oomguarpages 31184 86884 131072 2147483647 0
numtcpsock 15 59 4096 4096 0
numflock 6 12 512 512 0
numpty 1 1 256 256 0
numsiginfo 1 43 512 512 0
tcpsndbuf 280784 931888 107374592 124151808 0
tcprcvbuf 287264 673312 107374592 124151808 0
othersockbuf 11600 46400 107374592 124151808 0
dgramrcvbuf 0 9760 107374592 124151808 0
numothersock 7 24 4096 4096 0
dcachesize 0 0 4718592 4718592 0
numfile 1527 1938 12288 12288 0
numiptent 18 18 512 512 0
swappages 0 0 9223372036854775807 9223372036854775807 0
Re: Memory maxed [message #34807 is a reply to message #34806] Wed, 04 February 2009 01:42 Go to previous messageGo to next message
HostRail is currently offline  HostRail
Messages: 12
Registered: November 2008
Junior Member
thats kind of a mess.

But yeah:
privvmpages 77465 131335 131072 131072 740347428

that fail count on this is huge 740347428.
But that doesn't really tell me a lot.
Re: Memory maxed [message #34809 is a reply to message #34807] Wed, 04 February 2009 08:17 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

show OpenVZ resouce "privvmpages" are to low
-> increase the "privvmpages" of this container ...

$ vzctl set <CTID> --privvmpages <limit:barrier> [--save]

like (1.5 * maxheld ):

$ vzctl set <CTID> --privvmpages --privvmages 197002:197002

Btw, can you descibe what kind of program are running inside this container ?

Bye,
Thorsten
Re: Memory maxed [message #34821 is a reply to message #34809] Wed, 04 February 2009 14:53 Go to previous message
HostRail is currently offline  HostRail
Messages: 12
Registered: November 2008
Junior Member
Ive increased that to 2 GB but it still maxes out suddenly/randomly.

It normally runs at about 200 MB ram usage. Its just a centos 5.2 install with webmin.
Previous Topic: CONFIG_AUDIT: Requested changes to the vanilla 2.6.18 + OpenVZ kernel rpm
Next Topic: Unable to create backup with vzdump
Goto Forum:
  


Current Time: Mon Aug 12 08:26:15 GMT 2024

Total time taken to generate the page: 0.02792 seconds