LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > different sizes for same php-page returned?

Reply
 
Thread Tools Display Modes
  #1  
Old 11-08-2004, 11:30 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
Default different sizes for same php-page returned?

hey there,

I'm just trying out litespeed 2.0RC3.
I'm using it with php via fast-cgi and turck-mmcache and my app is a forum-software.

I enabled compression ... maybe thats the problem?

Here is the situation:
While running with ab (for benchmarking) I see failed requests reported (failed by size), i.e. around 30 requests of 1000. Yeah, I disabled hardlimit/softlimit and the pages don't change ;-).
If I look at the access-logs the different size is logged there too, i.e. 3002 instead of 2976 bytes or similar small differences.
That makes me curious about the accuracy of the compression.

Any ideas?

BTW. another question: would I see any performance increase in this configuration with the Professional-version as the most load is on the fast-cgi/php-side?


TIA,

thomas
Reply With Quote
  #2  
Old 11-08-2004, 12:10 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Thomas,

That's normal, lsws compress the response body on the fly, the result may vary due to the timing when response was received from PHP fast cgi, it will not cause any problem in real world usage. :-)

Quote:
would I see any performance increase in this configuration with the Professional-version as the most load is on the fast-cgi/php-side?
You definitely will see performance increases, but how big the increase is depends on your php side, the faster your php code runs, the bigger increase s you will see. :-) Also, you will get better scalability and better protection against DoS attacks. ;-)

Best regards,
George
Reply With Quote
  #3  
Old 11-09-2004, 04:13 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
Quote:
Originally Posted by mistwang
That's normal, lsws compress the response body on the fly, the result may vary due to the timing when response was received from PHP fast cgi, it will not cause any problem in real world usage. :-)
Strange though as I get the same sizes with other webservers ;-).
Reply With Quote
  #4  
Old 11-14-2004, 08:42 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
In order to reduce the latency introduced by the compression layer, LiteSpeed may flush the compression buffer after a big chunk of data being compressed, so it is sensitive to the timing and chunk size of received data.

We believe it is an advantage instead of draw back comparing to other web server's "compress the whole response body then start sending" algorithm. 8)

George
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
replacing system php felosi PHP 3 07-16-2007 11:23 PM
Usability issue with LSAPI PHP jrmarino PHP 5 05-08-2007 01:54 PM
setup php in rails template cswilliams Install/Configuration 2 01-25-2007 08:21 AM
Best configuration for PHP LiteSpeed SAPI jeff Install/Configuration 6 10-19-2005 09:54 AM
Custom PHP integration RikitZap Install/Configuration 2 04-25-2005 06:52 PM


All times are GMT -7. The time now is 06:33 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.