OpenVZ Forum


Home » Mailing lists » Users » Can not allocate memory
Can not allocate memory [message #16111] Wed, 22 August 2007 14:08 Go to next message
leoman is currently offline  leoman
Messages: 3
Registered: July 2007
Location: Turkey
Junior Member

Hi all,

I installing a new openvz on debian etch via this document [1].
I create a new virtual machine this [1] configrations.
Ok, my vps running normally because i'm try to installing VHCS CP. I 
have got any error when installation time but i can see not running bind 
dns server. I try to starting manually (/etc/init.d/bind9 start) but i get

Starting domain name service...: bind/etc/init.d/bind9: line 24: 
/bin/mkdir: Cannot allocate memory
/etc/init.d/bind9: line 25: /bin/chmod: Cannot allocate memory
/etc/init.d/bind9: line 26: /dev/null: Too many open files in system
/etc/init.d/bind9: fork: Cannot allocate memory


errors. /bin/mkdir is running normally. (mkdir /root/test, ok)

Same problem for proftpd,

/etc/init.d/proftpd: line 13: /bin/grep: Cannot allocate memory
/etc/init.d/proftpd: fork: Cannot allocate memory
Starting ftp server: proftpd/etc/init.d/proftpd: line 94: 
/sbin/start-stop-daemon: Cannot allocate memory
failed!


Why i get this erros.

And How can I limited inbound and outbound network traffic per vps?

Thanks all.

uname -a : Linux vps01 2.6.18-openvz-12-1etch1-686 #1 SMP Sat May 5 00:26:59 CEST 2007 i686 GNU/Linux

Links :
[1] http://wiki.openvz.org/Installation_on_Debian

Configs:
[1] /etc/vz/conf/1.conf

ONBOOT="yes"
# UBC parameters (in form of barrier:limit)
# Primary parameters
AVNUMPROC="40:40"
NUMPROC="65:65"
NUMTCPSOCK="80:80"
NUMOTHERSOCK="80:80"
VMGUARPAGES="131072:153600"
# Secondary parameters
KMEMSIZE="2752512:2936012"
TCPSNDBUF="319488:524288"
TCPRCVBUF="319488:524288"
OTHERSOCKBUF="132096:336896"
DGRAMRCVBUF="132096:132096"
OOMGUARPAGES="6144:2147483647"
# Auxiliary parameters
LOCKEDPAGES="32:32"
SHMPAGES="8192:8192"
PRIVVMPAGES="49152:53575"
NUMFILE="2048:2048"
NUMFLOCK="100:110"
NUMPTY="16:16"
NUMSIGINFO="256:256"
DCACHESIZE="1048576:1097728"
DCACHESIZE="1048576:1097728"

PHYSPAGES="0:2147483647"
NUMIPTENT="128:128"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="10485760:10485760"
DISKINODES="200000:220000"
QUOTATIME="0"

# CPU fair sheduler parameter
CPUUNITS="1000"
VE_ROOT="/var/lib/vz/root/$VEID"
VE_PRIVATE="/var/lib/vz/private/$VEID"
OSTEMPLATE="debian-4.0-i386-minimal"
ORIGIN_SAMPLE="vps.basic"
IP_ADDRESS="x.x.x.x"
CPULIMIT="100"
HOSTNAME="mirror.test.net"
NAMESERVER="4.2.2.1"
Re: Can not allocate memory [message #16122 is a reply to message #16111] Thu, 23 August 2007 11:09 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

1. See http://wiki.openvz.org/Resource_shortage

2. Network traffic can be limited by standard Linux tools, i.e. tc. See
http://wiki.openvz.org/Traffic_shaping_with_tc

Leoman wrote:
> Hi all,
>
> I installing a new openvz on debian etch via this document [1].
> I create a new virtual machine this [1] configrations.
> Ok, my vps running normally because i'm try to installing VHCS CP. I
> have got any error when installation time but i can see not running
> bind dns server. I try to starting manually (/etc/init.d/bind9 start)
> but i get
>
> Starting domain name service...: bind/etc/init.d/bind9: line 24:
> /bin/mkdir: Cannot allocate memory
> /etc/init.d/bind9: line 25: /bin/chmod: Cannot allocate memory
> /etc/init.d/bind9: line 26: /dev/null: Too many open files in system
> /etc/init.d/bind9: fork: Cannot allocate memory
>
>
> errors. /bin/mkdir is running normally. (mkdir /root/test, ok)
>
> Same problem for proftpd,
>
> /etc/init.d/proftpd: line 13: /bin/grep: Cannot allocate memory
> /etc/init.d/proftpd: fork: Cannot allocate memory
> Starting ftp server: proftpd/etc/init.d/proftpd: line 94:
> /sbin/start-stop-daemon: Cannot allocate memory
> failed!
>
>
> Why i get this erros.
>
> And How can I limited inbound and outbound network traffic per vps?
>
> Thanks all.
>
> uname -a : Linux vps01 2.6.18-openvz-12-1etch1-686 #1 SMP Sat May 5
> 00:26:59 CEST 2007 i686 GNU/Linux
>
> Links :
> [1] http://wiki.openvz.org/Installation_on_Debian
>
> Configs:
> [1] /etc/vz/conf/1.conf
>
> ONBOOT="yes"
> # UBC parameters (in form of barrier:limit)
> # Primary parameters
> AVNUMPROC="40:40"
> NUMPROC="65:65"
> NUMTCPSOCK="80:80"
> NUMOTHERSOCK="80:80"
> VMGUARPAGES="131072:153600"
> # Secondary parameters
> KMEMSIZE="2752512:2936012"
> TCPSNDBUF="319488:524288"
> TCPRCVBUF="319488:524288"
> OTHERSOCKBUF="132096:336896"
> DGRAMRCVBUF="132096:132096"
> OOMGUARPAGES="6144:2147483647"
> # Auxiliary parameters
> LOCKEDPAGES="32:32"
> SHMPAGES="8192:8192"
> PRIVVMPAGES="49152:53575"
> NUMFILE="2048:2048"
> NUMFLOCK="100:110"
> NUMPTY="16:16"
> NUMSIGINFO="256:256"
> DCACHESIZE="1048576:1097728"
> DCACHESIZE="1048576:1097728"
>
> PHYSPAGES="0:2147483647"
> NUMIPTENT="128:128"
>
> # Disk quota parameters (in form of softlimit:hardlimit)
> DISKSPACE="10485760:10485760"
> DISKINODES="200000:220000"
> QUOTATIME="0"
>
> # CPU fair sheduler parameter
> CPUUNITS="1000"
> VE_ROOT="/var/lib/vz/root/$VEID"
> VE_PRIVATE="/var/lib/vz/private/$VEID"
> OSTEMPLATE="debian-4.0-i386-minimal"
> ORIGIN_SAMPLE="vps.basic"
> IP_ADDRESS="x.x.x.x"
> CPULIMIT="100"
> HOSTNAME="mirror.test.net"
> NAMESERVER="4.2.2.1"
>
>
>
Previous Topic: Trouble compiling ovz028stab039.1-combined
Next Topic: Checkpointing failed - SYSV IPC,
Goto Forum:
  


Current Time: Sun Jun 15 16:20:16 GMT 2025

Total time taken to generate the page: 0.01751 seconds