Hey everyone,
I've been testing my production server (dynamic, heavy database driven -- but no benchmarking was done) within the last week due to it being slower than normal. Now, don't get me wrong this slowness hasn't just turned up, but I never noticed it until it was brought to my attention.
So, anyway, I've been doing a lot of testing with eAccelerator, Zend Optimizer and PHP's APC.
When it was going slow all I had on was Zend Optimizer. This obviously did what it said on the tin. Sped up the time to serve PHP pages. There was just one slight glitch. Connection. Somehow it was still slow waiting for a connection. At first, I thought it had to be something to do with the DNS or the few routers you connect through to get there; but in the end, it wasn't either of them.
I decided to increase the KeepAliveTimeout variable to 60 in the httpd.conf as it was set to something low, like 5 -- to keep processes from spawning. Once I did that everything returned to normal and it was faster than before. However, there was one draw back. Those processes spawning. It eventually brought my server to a halt. So for me I had to find something different or return back to having a fast server ('cause I wanted a faster server).
I came across PHP's APC and installed it right away. Turned off Zend Opti., installed APC and right away it made my server faster overall. No waiting for connections!
After about 50 minutes of it running it had cached 108MB or around 2,000 files with about 20MB left. It ate another 10MB from my memory and no one could connect to my server any more (just through HTTPD). I wasn't impressed.. at all.
I find eAccelerator and installed this instead. eAccelerator is the only thing currently running on my server as a Zend extension, without Zend Opti (I've ran them both alongside each other with terrible consequences too).
eAccelerator caches the pages to the server, not memory. So now I have on average 50-70MB of memory freed.
It's faster too. With KeepAliveTimeout set to the original 5 it still connects to the server like it should when it was set to 60.
I'm quite surprised, but it's been going for 24 hours already and there's been no crashes or anything else. It's used 154M on the server.
I would suggest people to try it out just by itself. I obviously don't want to guarantee any advantages, but I have had tremendous ones; and since it's simple to install and 'switch' Zend Opti. off and eAccelerator on it's worth a shot!
If anyone does this, please reply back here. I've been running Zend Opti. for over 2 years (and I've tried everything, putting them together with eAccelerator -- but I never thought to just have one running and not the others). I guess the hype of everyone wanting Zend Opti. installed and the reviews it got, just made me put it on. Especially when I saw that it did speed up my server.
I've been testing my production server (dynamic, heavy database driven -- but no benchmarking was done) within the last week due to it being slower than normal. Now, don't get me wrong this slowness hasn't just turned up, but I never noticed it until it was brought to my attention.
So, anyway, I've been doing a lot of testing with eAccelerator, Zend Optimizer and PHP's APC.
When it was going slow all I had on was Zend Optimizer. This obviously did what it said on the tin. Sped up the time to serve PHP pages. There was just one slight glitch. Connection. Somehow it was still slow waiting for a connection. At first, I thought it had to be something to do with the DNS or the few routers you connect through to get there; but in the end, it wasn't either of them.
I decided to increase the KeepAliveTimeout variable to 60 in the httpd.conf as it was set to something low, like 5 -- to keep processes from spawning. Once I did that everything returned to normal and it was faster than before. However, there was one draw back. Those processes spawning. It eventually brought my server to a halt. So for me I had to find something different or return back to having a fast server ('cause I wanted a faster server).
I came across PHP's APC and installed it right away. Turned off Zend Opti., installed APC and right away it made my server faster overall. No waiting for connections!
After about 50 minutes of it running it had cached 108MB or around 2,000 files with about 20MB left. It ate another 10MB from my memory and no one could connect to my server any more (just through HTTPD). I wasn't impressed.. at all.
I find eAccelerator and installed this instead. eAccelerator is the only thing currently running on my server as a Zend extension, without Zend Opti (I've ran them both alongside each other with terrible consequences too).
eAccelerator caches the pages to the server, not memory. So now I have on average 50-70MB of memory freed.
It's faster too. With KeepAliveTimeout set to the original 5 it still connects to the server like it should when it was set to 60.
I'm quite surprised, but it's been going for 24 hours already and there's been no crashes or anything else. It's used 154M on the server.
I would suggest people to try it out just by itself. I obviously don't want to guarantee any advantages, but I have had tremendous ones; and since it's simple to install and 'switch' Zend Opti. off and eAccelerator on it's worth a shot!
If anyone does this, please reply back here. I've been running Zend Opti. for over 2 years (and I've tried everything, putting them together with eAccelerator -- but I never thought to just have one running and not the others). I guess the hype of everyone wanting Zend Opti. installed and the reviews it got, just made me put it on. Especially when I saw that it did speed up my server.
Last edited: