OpenVZ Forum


Home » Mailing lists » Users » Memory Error in VE starting TurboGears Project
Memory Error in VE starting TurboGears Project [message #23599] Tue, 20 November 2007 23:48 Go to next message
guen is currently offline  guen
Messages: 4
Registered: November 2007
Junior Member
Hi,

Iam trying to runt a Python TurboGear Web-Project (including the 
TurboGear application server) in a VE, but I just get the error message 
"MemoryError". Iam trying to get it run for days (Iam new to openvz and 
debian) - so big thanks for help!!!

Server:
AMD Athlon 64 X2
5600+ Dual Core
2 GB DDR2 RAM
2 x 400 GB
SATA II
1 GBit OnBoard

Host:
# uname -a
2.6.18-openvz-686 #1 SMP Tue Apr 10 20:28:40 CEST 2007 i686 GNU/Linux

VE:
# uname -a
2.6.18-openvz-686 #1 SMP Tue Apr 10 20:28:40 CEST 2007 i686 GNU/Linux


# free
             total       used       free     shared    buffers     cached
Mem:       2042324    1341492     700832          0     274236     960504
-/+ buffers/cache:     106752    1935572
Swap:      2104440          0    2104440


# cat /proc/user_beancounters
Version: 2.5
       uid  resource           held    maxheld    barrier      limit    failcnt
      300:  kmemsize         962067    1960462    2752512    2936012          0
            lockedpages           0          0         32         32          0
            privvmpages       29803      51114      49152      53575         66
            shmpages              0       1296       8192       8192          0
            dummy                 0          0          0          0          0
            numproc              23         43         65         65          0
            physpages          5091      18302          0 2147483647          0
            vmguarpages           0          0       6144 2147483647          0
            oomguarpages       5091      18302       6144 2147483647          0
            numtcpsock            2         17         80         80          0
            numflock              4         10        100        110          0
            numpty                1          3         16         16          0
            numsiginfo            0          5        256        256          0
            tcpsndbuf             0     321408     319488     524288       9236
            tcprcvbuf             0     481320     319488     524288       2428
            othersockbuf       4464      16864     132096     336896          0
            dgramrcvbuf           0       8376     132096     132096          0
            numothersock          4         13         80         80          0
            dcachesize            0          0    1048576    1097728          0
            numfile             493        852       2048       2048          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            10         10        128        128          0

KMEMSIZE="2752512:2936012"
LOCKEDPAGES="32:32"
PRIVVMPAGES="49152:53575"
SHMPAGES="8192:8192"
NUMPROC="65:65"
PHYSPAGES="0:2147483647"
VMGUARPAGES="6144:2147483647"
OOMGUARPAGES="6144:2147483647"
NUMTCPSOCK="80:80"
NUMFLOCK="100:110"
NUMPTY="16:16"
NUMSIGINFO="256:256"
TCPSNDBUF="319488:524288"
TCPRCVBUF="319488:524288"
OTHERSOCKBUF="132096:336896"
DGRAMRCVBUF="132096:132096"
NUMOTHERSOCK="80:80"
NUMFILE="2048:2048"
DCACHESIZE="1048576:1097728"
NUMIPTENT="128:128"
AVNUMPROC="40:40"
CPUUNITS="1000"
ONBOOT="no"
ORIGIN_SAMPLE="vps.basic"
DISKSPACE="1048576:1153434"
DISKINODES="200000:220000"
QUOTATIME="0"
ATIME="0"
OSTEMPLATE=debian-4.0
IP_ADDRESS="x.x.x.x"
NAMESERVER="x.x.x.x"
Re: Memory Error in VE starting TurboGears Project [message #23600 is a reply to message #23599] Wed, 21 November 2007 00:37 Go to previous messageGo to next message
Gregor Mosheh is currently offline  Gregor Mosheh
Messages: 62
Registered: April 2007
Member
guen wrote:
> Iam trying to runt a Python TurboGear Web-Project (including the 
> TurboGear application server) in a VE, but I just get the error message 
> "MemoryError".

MemoryError - That's a clue.
So are these fail counts:
>privvmpages       66
>tcpsndbuf         9236
>tcprcvbuf         2428

Up those limits and you should be A-OK.

That limit is about 260 MB, and I notice that the limit in your conf 
file is about 200. If I recall, TurboGears can be a bit of a memory hog, 
and you'd be best increasing the limit until things run smoothly, before 
trying to lower the limits.

-- 
Gregor Mosheh / Greg Allensworth
System Administrator, HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
  only if you can restore." - AMANDA
Re: Memory Error in VE starting TurboGears Project [message #23601 is a reply to message #23599] Wed, 21 November 2007 00:41 Go to previous message
efball is currently offline  efball
Messages: 41
Registered: September 2006
Location: Santa Rosa, California
Member
On Wed, Nov 21, 2007 at 12:48:31AM +0100, guen wrote:
> Hi,
>
> Iam trying to runt a Python TurboGear Web-Project (including the TurboGear 
> application server) in a VE, but I just get the error message 
> "MemoryError". Iam trying to get it run for days (Iam new to openvz and 
> debian) - so big thanks for help!!!
>
> # cat /proc/user_beancounters
> Version: 2.5
>       uid  resource           held    maxheld    barrier      limit    failcnt
>            privvmpages       29803      51114      49152      53575         66
>            tcpsndbuf             0     321408     319488     524288       9236
>            tcprcvbuf             0     481320     319488     524288       2428


Your settings for privvmpages, tcpsndbuf, and tcprcvbuf are too small.
Failcounts should all be zeros, or you've got a problem.

How did you configure your config file settings?  I recommend starting
with the vzsplit command (see "man vzsplit"), and making adjustments
from there if you need to.


-- 

   E Frank Ball                efball@efball.com
Previous Topic: Reapplying an OS template
Next Topic: Talking to a SCSI tape device from VPS
Goto Forum:
  


Current Time: Sun May 12 09:21:02 GMT 2024

Total time taken to generate the page: 0.01611 seconds