Because of the number of page views to my server (from 700,000 to 1 million a day) I\'m always trying to speed things up and reduce the amount of memory needed. I was helping a friend with problems he was having with his server and noticed that his libphp4.so file was about 1/2 the size that mine was (mine\'s about 2.5MB and his is about 1.3M😎. I quickly did a phpinfo() on his site to see what the difference was. He\'s running v4.0.5 and I\'m running v4.0.6 but other than that, there wasn\'t much difference. His configure command is:
./configure --with-mysql --disable-debug --enable-track-vars --with-apxs=/web/bin/apxs
My configure command is almost the same, but as a test I ran the exact same configure command on my system and it still compiled to 2.5MB. I then did a fresh v4.0.6 install and got the same result. Before, I was running v4.0.4pl1 which had a similar file size.
The question is, how in Sam\'s Hill is his libphp4.so file so small? Because of shared memory, I\'m not sure how much of a difference it would make, but with 500 concurrent httpd connections, even a little savings would be nice.
I\'m guessing there are some php configure tricks to disable certain features that are not typically needed. However, I can\'t find any good documentation on this topic. If someone has some insight on this, or knows a url where this topic is discussed, please let me know.
Bob