PDA

View Full Version : Lighttpd / PHP Config


Martyn
Fri 23rd Mar '07, 7:44am
Hi,

After outgrowing our previous dedicated server we plumped for a new Dell PE1950 with dual Xeon 5160s, 4Gb RAM and 15K SAS drives.

The server consists of the following...

Ubuntu 6.10 (2.6.17-10-generic #2 SMP Tue Dec 5 21:16:35 UTC 2006 x86_64)
Lighttpd (1.4.13)
PHP w/fastcgi (PHP 5.1.6 with XCache v1.2.0)
MySQL (5.0.24a)

I'm pretty happy with the way the box runs, however it seems despite having "memory_limit = 32M" set in my PHP.INI we're still hiting the limit during certain search conditions. On the previous box it ran fine with it set to 8 or 16M but that was back when we were running Apache :confused:.

VB is version 3.6.5.

If you need any more details please let me know.

jason|xoxide
Fri 23rd Mar '07, 11:29am
A memory limit of 32MB really isn't that high. I've got a couple sites running at 128MB in order to keep the search from returning a white page. It really all depends on how large your DB is and how many results are returned.

Martyn
Fri 23rd Mar '07, 11:33am
Hi Jason,

Thanks for your input, I was worried about pushing the limit too high but it's obviously not even close.

The database is around 900mb and has the following stats.

Threads: 69,983, Posts: 839,001, Members: 18,952, Active Members: 10,142

jason|xoxide
Fri 23rd Mar '07, 11:37am
What do you have the search result limit set at?

Martyn
Fri 23rd Mar '07, 11:43am
Minimum Time Between Searches: 15s
Search Results Posts Per Page: 25
Maximum Search Results to Return: 500
Search Index Minimum Word Length: 3

kerplunk
Fri 23rd Mar '07, 1:09pm
How is Ubuntu working as a server operating system?

Martyn
Fri 23rd Mar '07, 6:17pm
I'm very happy with it, boots much much quicker than the other distros I've tried too.

Namesniper
Fri 23rd Mar '07, 6:35pm
Never tried Ubuntu,intersting to know.

Martyn
Tue 27th Mar '07, 4:21am
Any more ideas anyone?

eva2000
Tue 27th Mar '07, 9:42pm
tried updating PHP to 5.2.0 or 5.2.1 ?

jason|xoxide
Wed 28th Mar '07, 10:28am
tried updating PHP to 5.2.0 or 5.2.1 ?

PHP 5.2 changed the memory accounting subsystem so it SEEMS like PHP 5.2.x actually uses more memory than 5.1 and earlier (which is why the default was raised from 8M to 16M).

That said, if you monitor the process size, it really doesn't and it's been my experience that 5.2 performs better then 5.1. I'd agree, try upgrading.