buster
Sat 25th May '02, 2:39pm
I had some problems getting Gzip to work after a recent server change.
Red Hat 7.3, PHP 4.12, Apache 1.23-11, My SQL 3.23-49, dual p3 -550, 1 gig ram.
The server was not in any way heavily loaded (have two forums hosted on vBulletin 2.25 with average 15 users & one vBB2 forum with average 10 users atr any given time + some regular web sites & a bit of FTP on the server.
95% of the traffic is the two forums.
Its running on a dedicated 512kbit line (duplex).
Anyway several users were complaining page load was significantly slower. I turned on gzip in the forum and tried to install php accelerator.
php accelerator however killed the web server (not sure why, from what I can see I followed procedure exactly, but thats another point anyway). In the process of trying to sort it all out I ended up removing php accelerator installing mod gzip and disabling the forums own gzip option. Still slow.
Then I from checking around zeroed in on the php.ini settings. To be honest I am not 100% if it was me that disabled php out buffering in the process of trying to make the accelerator run or if it was so by default - anyway once turned on it zip started zipping & the forum speeded up remarkably. Instantly noticeable.
I had also installed Eva2000's recommended my.conf which I can see helps on query time but zip was the big one.
Afterwards I installed zend optimizer which also seems to help though not in anyway revolutionary as Gzip.
The reason I wanted mod_gzip rather than Vbb's gzip option is that mod_gzip is site wide not only for Vbulletin.
Anyway here comes my questions:
1) Am I correct in my assumption that php output buffering must be on for zip to work and that it is default off (at least the generic php.ini script that comes with zend optimizer also has it off) ?
1a) Is there any advantage in increasing output buffering beyond the 4k it defaults to when on?
2) I had to rely on user reports to zero in on where the troubles lay (think back from described symtom to possible cause). Are there some tools someone can recommend to test page creation time.
3) Any experience on what the time needs to be for users to feel they have a pretty much instant page? (Like 15 secs will be slow but whether its a quarter of a second or one and a half might not matter so much).
4) The load stats in top - what is the point where onwe should start worrying about server load?
5) Any other recommendations?
Red Hat 7.3, PHP 4.12, Apache 1.23-11, My SQL 3.23-49, dual p3 -550, 1 gig ram.
The server was not in any way heavily loaded (have two forums hosted on vBulletin 2.25 with average 15 users & one vBB2 forum with average 10 users atr any given time + some regular web sites & a bit of FTP on the server.
95% of the traffic is the two forums.
Its running on a dedicated 512kbit line (duplex).
Anyway several users were complaining page load was significantly slower. I turned on gzip in the forum and tried to install php accelerator.
php accelerator however killed the web server (not sure why, from what I can see I followed procedure exactly, but thats another point anyway). In the process of trying to sort it all out I ended up removing php accelerator installing mod gzip and disabling the forums own gzip option. Still slow.
Then I from checking around zeroed in on the php.ini settings. To be honest I am not 100% if it was me that disabled php out buffering in the process of trying to make the accelerator run or if it was so by default - anyway once turned on it zip started zipping & the forum speeded up remarkably. Instantly noticeable.
I had also installed Eva2000's recommended my.conf which I can see helps on query time but zip was the big one.
Afterwards I installed zend optimizer which also seems to help though not in anyway revolutionary as Gzip.
The reason I wanted mod_gzip rather than Vbb's gzip option is that mod_gzip is site wide not only for Vbulletin.
Anyway here comes my questions:
1) Am I correct in my assumption that php output buffering must be on for zip to work and that it is default off (at least the generic php.ini script that comes with zend optimizer also has it off) ?
1a) Is there any advantage in increasing output buffering beyond the 4k it defaults to when on?
2) I had to rely on user reports to zero in on where the troubles lay (think back from described symtom to possible cause). Are there some tools someone can recommend to test page creation time.
3) Any experience on what the time needs to be for users to feel they have a pretty much instant page? (Like 15 secs will be slow but whether its a quarter of a second or one and a half might not matter so much).
4) The load stats in top - what is the point where onwe should start worrying about server load?
5) Any other recommendations?