OpenVZ Forum


Home » General » Support » OpenVZ hungry for resources?
OpenVZ hungry for resources? [message #11250] Fri, 16 March 2007 08:09 Go to next message
slybob is currently offline  slybob
Messages: 20
Registered: March 2007
Junior Member
Hi,

Ive been running openVZ under Debian on my old 1.8Ghz Celeron with 512 mb of ram for about a month. all VE's are ubuntu-6.06-i386-minimal. Daisy and buttercup are both www servers.

debian:~# vzlist -a
      VEID      NPROC STATUS  IP_ADDR         HOSTNAME
       101          5 running 192.168.0.101   ns.moonet.co.uk
       102          - stopped 192.168.0.102   daisy.moonet.co.uk
       110          - stopped 192.168.0.110   ssl.moonet.co.uk
       111         24 running 192.168.0.111   buttercup.moonet.co.uk


I'm getting some wierdness from apache on VEID 111 when I have all four VE's running. It seems to ignore the virtual hosts I have set up, reverting to factory mode. i.e http://192.168.0.111 will bring up /var/www/. getting it to serve to the several domains I have pointing at it. fails. Mysql is grumping too. When I shutdown 102 and 110 and restart apache on 111 everything seems tickety boo.

Apologies for my incoherent ramblings, I think this might be a problem with resources. Anyone with any bright ideas?

Thanks

Andy



How I learned to stop worrying and love SMTP
http://www.moonet.co.uk/

[Updated on: Fri, 16 March 2007 08:13]

Report message to a moderator

Re: OpenVZ hungry for resources? [message #11251 is a reply to message #11250] Fri, 16 March 2007 08:17 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Is there something in /var/log/messages after apache/mysql fail?

Thanks,
Vasily
Re: OpenVZ hungry for resources? [message #11252 is a reply to message #11250] Fri, 16 March 2007 08:21 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi Andy,

any failcnt in /proc/user_beancounters of your VE's ?

(-> see more at http://wiki.openvz.org/Proc/user_beancounters)
Re: OpenVZ hungry for resources? [message #11258 is a reply to message #11251] Fri, 16 March 2007 10:19 Go to previous messageGo to next message
slybob is currently offline  slybob
Messages: 20
Registered: March 2007
Junior Member
[Fri Mar 16 08:15:44 2007] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Fri Mar 16 08:15:54 2007] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Fri Mar 16 08:16:05 2007] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Fri Mar 16 08:16:15 2007] [error] (12)Cannot allocate memory: fork: Unable to fork new process
FATAL:  erealloc():  Unable to allocate 311296 bytes
[Fri Mar 16 08:16:25 2007] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Fri Mar 16 08:16:35 2007] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Fri Mar 16 08:16:45 2007] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Fri Mar 16 08:16:55 2007] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Fri Mar 16 08:17:05 2007] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Fri Mar 16 08:17:15 2007] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Fri Mar 16 08:17:25 2007] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Fri Mar 16 08:17:35 2007] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Fri Mar 16 08:17:46 2007] [error] (12)Cannot allocate memory: fork: Unable to fork new process


Smile should have thought of checking the logs Smile

I remember getting this error before on one of my early VE's I was unable to resolve the problem. I just started again.
I shall set up a fedora VE to see if that suffers from the same. It might be my Ubuntu template to blame.

Thanks,


How I learned to stop worrying and love SMTP
http://www.moonet.co.uk/
Re: OpenVZ hungry for resources? [message #11259 is a reply to message #11252] Fri, 16 March 2007 10:24 Go to previous messageGo to next message
slybob is currently offline  slybob
Messages: 20
Registered: March 2007
Junior Member
            tcprcvbuf             0       4100     319488     524288          0
            othersockbuf     130552     133376     132096     336896        180
            dgramrcvbuf           0          0     132096     132096          0


I think we have a suspect. Is this anything to do with the
vzctl set 101 --numothersock 120 --save


??

Thanks, Andy


How I learned to stop worrying and love SMTP
http://www.moonet.co.uk/
Re: OpenVZ hungry for resources? [message #11264 is a reply to message #11251] Fri, 16 March 2007 11:38 Go to previous messageGo to next message
slybob is currently offline  slybob
Messages: 20
Registered: March 2007
Junior Member
Ive been digging a little more, i would seem that the problem is with mysql apache's working for html pages but is falling over when asked to look at a database, as is webmin.

Cant find any errors in the logs for mysql tho


How I learned to stop worrying and love SMTP
http://www.moonet.co.uk/
Re: OpenVZ hungry for resources? [message #11355 is a reply to message #11250] Tue, 20 March 2007 21:55 Go to previous messageGo to next message
sPENKMAN is currently offline  sPENKMAN
Messages: 7
Registered: March 2007
Location: Arnhem, Netherlands
Junior Member
Apache is not able to start any childs which should process your requests. I had the same and solved it by increasing the privvmpages parameter.

What is your output of "cat /proc/user_beancounters" (execute within the VE)?


When you think you have fixed it, something else will fail soon enough
Re: OpenVZ hungry for resources? [message #11357 is a reply to message #11355] Tue, 20 March 2007 22:18 Go to previous messageGo to next message
slybob is currently offline  slybob
Messages: 20
Registered: March 2007
Junior Member
Thanks for the reply, Ive got to the bottom of the beancounter 'n stuff. happily apachein away.

Andy


How I learned to stop worrying and love SMTP
http://www.moonet.co.uk/
Re: OpenVZ hungry for resources? [message #11359 is a reply to message #11357] Tue, 20 March 2007 22:26 Go to previous messageGo to next message
sPENKMAN is currently offline  sPENKMAN
Messages: 7
Registered: March 2007
Location: Arnhem, Netherlands
Junior Member
slybob wrote on Tue, 20 March 2007 23:18

Thanks for the reply, Ive got to the bottom of the beancounter 'n stuff. happily apachein away.

Andy



Hehe, keep an close eye on your beancounter statistics. It explains most of the problems you encounter Wink


When you think you have fixed it, something else will fail soon enough
Re: OpenVZ hungry for resources? [message #11360 is a reply to message #11359] Tue, 20 March 2007 23:14 Go to previous messageGo to next message
slybob is currently offline  slybob
Messages: 20
Registered: March 2007
Junior Member
phew,too right. Been banging me head against a wall all day with Open-Xchange - till I looked at the numbers. Is there any kind of tool that keeps an eye on the beancounter? some kind of gui to show you how the resources are being allocated?

Andy


How I learned to stop worrying and love SMTP
http://www.moonet.co.uk/
Re: OpenVZ hungry for resources? [message #11365 is a reply to message #11250] Wed, 21 March 2007 15:51 Go to previous messageGo to next message
devonblzx is currently offline  devonblzx
Messages: 127
Registered: December 2006
Senior Member
Maybe if this was Windows and you had to pay for OpenVZ Wink, you could easily make a script that monitors the beancounters and changes the value, but I don't see why you would want to do that.

If a problem occurs, it isn't that hard to type 'cat /proc/user_beancounters' and look in the far right column, you should be monitoring it yourself anyways to make sure there aren't other issues.



http://static.openvz.org/userbars/openvz-user-2.png
ByteOnSite President
Re: OpenVZ hungry for resources? [message #11366 is a reply to message #11365] Wed, 21 March 2007 17:00 Go to previous message
slybob is currently offline  slybob
Messages: 20
Registered: March 2007
Junior Member
Embarassed I'm using it loads trust me, just thinking of when I get this thing upto production level, some kind of web based display would be handy. something that would send you mails when things were running a little hot!

might have found myself a wee project. Rolling Eyes


How I learned to stop worrying and love SMTP
http://www.moonet.co.uk/
Previous Topic: *SOLVED* Data Corruption on HN crash
Next Topic: *SOLVED* Different kernels in VE and hardware node
Goto Forum:
  


Current Time: Sun Sep 29 07:19:21 GMT 2024

Total time taken to generate the page: 0.04346 seconds