So my blog has been slow for the past few months. It has been killing me. I run my own server - so I knew it was something that I did. However, I sadly thought that it was probably just the fact that I have a couple rather high bandwidth sites and only one server. I tried a lot of the “speed up wordpress” tricks and even installed and used wp-cache. but nothing worked.
Today I was doing some research on how to speed up threadless and our scaling issues. I was reading articles about how to speed up large scale web applications and I decided to look other places for scaling issue help. I often think that the articles that are written are not written by people who actually have to deal with large scale web apps - so I usually don’t really pay attention to what they say. So I started going to larger sites and seeing if I couldn’t find any information on how they scale and maintain speed while growing. I found a nice description of how mininova speeds things up and scales - its really nothing more than simple paragraph but it told me more than most whole articles. So mininova uses LightTPD and eAccelerator to keep things quick. Since I don’t want to use LightTPD - I decided to check out eAccelerator.
Since I really didn’t want to test eAcellerator on threadless (yea know.. money, transactions and the like), I decided to give it a test run on my own server. I went ahead and compiled it, installed it and restarted apache. BAM. immediately my load was down:
10:34:01 up 46 days, 16:05, 1 user, load average: 0.87, 3.82, 7.22
You can see that 15 min ago - the load was almost 7. This is what it has been for the past 2 months. Constantly pegged above 5. it was making me insane. So just seeing apache running and a load of 0.67 made me grin. It has been 2 hours now and I am still seeing great performance from eAccelerator:
12:40:32 up 46 days, 18:12, 1 user, load average: 0.33, 0.40, 0.37
It is pretty amazing. I mean - opcode caching is really a no-brainer. It is easy and makes sense. And anytime you are running a language like PHP, you will need to think about caching the compiled code rather than recompile on every request. I don’t know why I didn’t do this earlier.
My only worry is that the opcode cache will not clear fast enough during edits. I did some testing and it seemed to be pretty quick. I didn’t notice any stale scripts or negative impact. Apparently eAccelerator is pretty good at handling updates to its opcode cache.
So far - ALL of my sites are quicker. nice work.
6 Responses
Jacob
February 14th, 2007 at 4:54 pm
1When was the last time you restarted Apache?
Harper
February 14th, 2007 at 5:48 pm
2hmm. what do you mean. generally. i restarted it probably a week before.
Ben
February 15th, 2007 at 1:31 pm
3Rad. It seemed to be faster the last couple days. Glad to see that wasn’t just voodoo. So far, I’m loving your serviage.
mike
February 15th, 2007 at 7:36 pm
4I’m kind of php-stupid, but I assumed that most commercial or high-traffic sites probably *are* using one of the accelerators or just… Zend. I read some sort of rumor about some of the others creeping up on Zend, but isn’t it kind of the daddy of php serving?
Adsense results and website performance » Harper Reed: Tech, Phones, Parties, Yo-yoing
February 16th, 2007 at 10:52 am
5[...] - it had never been fast. So I was blind to it from the beginning. Then a couple days ago I installed eaccelerator as a test of its power. It sped up my site. Noticeably. It really made things [...]
Bart
March 15th, 2007 at 1:19 pm
6I’m the current project maintainer and developer of eAccelerator. If you use the default settings eAccelerator will check on each request the modification date of the script. So updates will be instantly!
Be sure and take a gander at my photos.
If you want to contact me click here to start a chat.
Status
Pictures
Friends
Popular Tags
action awesome blogs books bush cell chicago chris colorado crobar dylan family food games google hacking harper hiromi humor india insane internet iraq job juggle juggling matiss metal movies music nokia phone php politic reed rock school search server sick Sites Technology travel video war
search
Categories
Archives
Recent Entries
Recent Comments
Most Commented
Nata2.org is © 1997-2008 Harper Reed. Theme stoled and inspired by the great BloggingPro theme by: Design Disease