Re: Please help with huge silva
Heiko Besemann <[email protected]> Sat, 25 Jul 2009 14:31:30 +0200
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Message-ID | <ca06578a34bb402526bc90c168e17a2a@localhost> |
I also run Silva on a Virtuozzo VPS. My experience is that when special parameters of the virtual machine like memory limits, open ports aso. are reached Virtuozzo kills processes at random hence crashing your Zope server. I think little can be done. A good starting point would be to remove Apache (in case you use it as a proxy to your ZServer) and replace it with NGINX or Lighty (Lighttpd). I personally prefer Lighty as its configuration is simple, offers a good bunch of standard plugins and gives me a lot of better performance on my VPS plus configured with flash video plugin you can setup Flowplayer or others to stream flash video. Compilation of Lighty is quite easy and saves you additional ram usage instead of apt-getting the full package. I am not sure where it can be found (ask Dr. Google) but Virtuozzo tells you somewhere in /proc how much ram your VPS eats and monitoring this over a few hours or days might give you ca clue whats wrong on your system. On Fri, 24 Jul 2009 13:37:15 +0200, Bengt Giger <[email protected]> wrote: > Mallow Geno schrieb: > >> I've run into a wall and I am desperate for answers. I don't know if >> this has anything to do with Silva but if one of you have experience the >> problem before then maybe you can lead me to the right direction. We >> host Silva in Zope on a VPS, our Data.fs file is 2.24Gb in size. >> >> Our VPS keeps crashing and it's making our website unavailable and >> preventing other functions on our server from functioning. >> The crashes are occurring due to memory resource called "privvmpages" > > Maybe Zope is short on memory. If you allow crawlers to access your site, > they will request every single page. There are hundreds of crawlers and > they constantly trash your caches if they are too small. > > Check your object cache (Control Panel -> Database management -> Cache > Parameters): if "Number of active objects" reaches "Target number of > objects in memory per cache", you have to increase the cache in > etc/zope.conf. > > Watch the server memory, the object cache defines the memory usage of Zope. > If the server starts to page, you have to increase your server memory. > > Regards > > Bengt