OpenVZ Forum


Home » General » Support » Memory problem, please help
Memory problem, please help [message #9981] Thu, 01 February 2007 20:02 Go to next message
pennywize is currently offline  pennywize
Messages: 7
Registered: November 2006
Junior Member
Hello,

I am running openVZ at a 256MB dedicated server.
I want install an apache2 VE with 128MB RAM and an SQL Server at 2nd VE with 64MB RAM memory.
OK, back to point. VE #101 contains apache2 installment (Debian Sarge). Always appears in logs a message like this
(12)Cannot allocate memory: apr_thread_create: unable to create worker thread


My setup for that VE is this:

vzctl set 101 --privvmpages 32768:34000 --save


user_beancounters looks like this:

cat /proc/user_beancounters
Version: 2.5
       uid  resource           held    maxheld    barrier      limit    failcnt
      101:  kmemsize         390061     999538    2752512    2936012          0
            lockedpages           0          0         32         32          0
            privvmpages        1062      32917      32768      34000         13
            shmpages              0         52       8192       8192          0
            dummy                 0          0          0          0          0
            numproc               7         29         65         65          0
            physpages           692       1492          0 2147483647          0
            vmguarpages           0          0       6144 2147483647          0
            oomguarpages        692       1492       6144 2147483647          0
            numtcpsock            1          2         80         80          0
            numflock              1          2        100        110          0
            numpty                1          1         16         16          0
            numsiginfo            0          2        256        256          0
            tcpsndbuf             0          0     319488     524288          0
            tcprcvbuf             0          0     319488     524288          0
            othersockbuf       2232       2928     132096     336896          0
            dgramrcvbuf           0          0     132096     132096          0
            numothersock          1          4        120        120          0
            dcachesize            0          0    1048576    1097728          0
            numfile             133        592       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          


Its environment is a Debian Etch with Kernel 2.6.18-1-openvz
Memory: 256. I know it isn´t very much but it is there for testing purposes only. My boss want see openVZ in action and may to find an alternative to chroot areas and/or Xen.
Xen is running fine without probs with these memory settings.
The SQL VE should have 64MB RAM. Any hints about how to set up proper entries for RAM to each VE?

Many thanks for your help

Jasmin

[Updated on: Thu, 01 February 2007 20:03]

Report message to a moderator

Re: Memory problem, please help [message #9995 is a reply to message #9981] Fri, 02 February 2007 18:25 Go to previous messageGo to next message
pennywize is currently offline  pennywize
Messages: 7
Registered: November 2006
Junior Member
Many thanks for your great "support".
No worries, I won´t pestering again this community with my question.
I´ll try again with different settings, in case it doesn´t work, there´s a nice OS reinstall option and f*ck off OVZ.
Re: Memory problem, please help [message #10000 is a reply to message #9981] Sun, 04 February 2007 05:27 Go to previous messageGo to next message
victorskl is currently offline  victorskl
Messages: 28
Registered: September 2006
Junior Member
Laughing no patient at all..
look around vmguarpages and read the wiki bean_counter manual.. you have to increase it as well. But just <256MB, u should try those low resource consumption like lighthttpd..


http://static.openvz.org/userbars/openvz-user.png
Re: Memory problem, please help [message #10015 is a reply to message #9981] Mon, 05 February 2007 10:52 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

Don't be so severe with OpenVZ community Smile. We try to help all persons as soon as possible, but occasionally time presure is rather great. Moreover your initial post was on friday, and most of people don't work on weekends Smile.

As concerns the problem. You should increase pivvmpages limit. Privvmpages is not a RAM. It is a limit for allocated memory! Most of applications allocate huge amounts of memory but use only 20% of it. You can get more information about it at http://wiki.openvz.org/UBC_secondary_parameters

HTH,
Vasily.
Previous Topic: Problem with install
Next Topic: bridge-eth0
Goto Forum:
  


Current Time: Tue Jul 09 21:22:52 GMT 2024

Total time taken to generate the page: 0.02727 seconds