Lighttpd uses all RAM on my VPS
Added by walterbyrd over 15 years ago
I have two VPSs with identical settups - both run debian etch, both have 128mb RAM, both use the following: lighttpd, fastcgi, and php5.
On the first VPS, debian by itself uses about 11mb of ram. When I run two wikis, and mysql, it uses about 50mb of ram.
On the second VPS, debian by itself uses about 11mb of ram. When I run lighttpd, it uses 127mb of ram, even if I just run a trival html file, or if I run nothing at all. If I stop lighttpd, the ram usage goes back to 11mb of ram used.
Replies (3)
RE: Lighttpd uses all RAM on my VPS - Added by nitrox over 15 years ago
Show us the numbers, e.g. from "top". I don´t think lighty ever used that much ram (except when proxying).
RE: Lighttpd uses all RAM on my VPS - Added by walterbyrd over 15 years ago
As I write this, my VPS ram is full that I hardly do anything. I can not even shut it down. lighttpd is about the only thing running. I am trying to run one simple php5 site. I am not running any databases. I can not do a top or even a free -m.
- ls
Inconsistency detected by ld.so: dl-minimal.c: 84: __libc_memalign: Assertion `page != ((void *) -1)' failed!
- shutdown -r "now"
shutdown: warning: cannot open /var/run/shutdown.pid
- init 6
<no response>
- ps -ef
ps: error while loading shared libraries: libproc-3.2.7.so: cannot map zero-fill pages: Cannot allocate memory
- top
top: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory
- free -m
<no reponse>
When I try to access my site I get:
Fatal error: Out of memory (allocated 262144) (tried to allocate 77824 bytes) in /var/www/mysite.com on line 148
RE: Lighttpd uses all RAM on my VPS - Added by walterbyrd over 15 years ago
Nevermind. It was mysql.
I did not think that mysql was running because it failed to install correctly, and when the apt-get install script tried to start mysql, I got the message "failed" in all red letters.
But the broken mysql was running - and totally screwing up my system.