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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Swapping

Reply
 
Thread Tools Display Modes
  #11  
Old 10-17-2007, 03:43 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
did you try what mistwang suggested above?
Quote:
Originally Posted by mistwang
Please try setting "Max I/O buffer size" to "0", yes "zero", the swapping space will be limited by available disk space under /tmp.
Reply With Quote
  #12  
Old 10-17-2007, 07:36 AM
Giorgi Giorgi is offline
Member
 
Join Date: Oct 2007
Posts: 44
Quote:
Originally Posted by ts77 View Post
did you try what mistwang suggested above?
Yes of course, I am currently have it to zero and now perfomance is down, server waits about 5-6 seconds before page load and it still only uploads up to 500mb and thats all...

I dont understand, I thought Lsws was capable to handle large uploads and loads, thats why I moved to enterprise license, I am dissapointed but I really dont want to switch back to Apache.

is there any hope for me?
Reply With Quote
  #13  
Old 10-17-2007, 10:40 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Don't worry, we will have it addressed soon. Need to run some tests.
Besides the file uploads, do you serve file downloads though PHP as well? PHP read the file then send it to client? If you did so, you should change it to let LSWS serve it directly via a internal redirect in PHP.

http://www.litespeedtech.com/support...ernal_redirect


Serving large static files through PHP is extremely inefficient as well.
Reply With Quote
  #14  
Old 10-17-2007, 12:03 PM
Giorgi Giorgi is offline
Member
 
Join Date: Oct 2007
Posts: 44
Yes, it servers downloads too, but what it has to do with uploads? I am not php programmer, its just php script which uploads files and generates download links for it.

thats all
Reply With Quote
  #15  
Old 10-17-2007, 12:41 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Does the download link point to a PHP script or directly to the static file?

If static file is streamed through PHP script, the static file will be buffered by LSWS as well, so it is not efficient at all.
Reply With Quote
  #16  
Old 10-17-2007, 12:58 PM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
... and that has nothing to do with your upload problems, its "just" a "related note" .
Reply With Quote
  #17  
Old 10-17-2007, 03:00 PM
Giorgi Giorgi is offline
Member
 
Join Date: Oct 2007
Posts: 44
Yes its streamed over php I guess, since my static file is kind of masked in these kind of link:

Code:
http://mysite.com/index.php?p=download&hash=tpYMEw24zUY3
Reply With Quote
  #18  
Old 10-17-2007, 03:15 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
That's why you run out of buffer/swap space. LSWS caches the whole response body produced by PHP, so all download files will be stored in the buffer/swap.

You should have your developer to remove the streaming code and replace it with a internal redirect I mentioned earlier. Your site will be flying after that. The large upload might not be a problem any more.
Reply With Quote
  #19  
Old 10-18-2007, 12:58 PM
Giorgi Giorgi is offline
Member
 
Join Date: Oct 2007
Posts: 44
Unfortunatelly its impossible because of nature of the script

I guess there is no other way, either I should switch back to apache or increase TMP partition again
Reply With Quote
  #20  
Old 10-18-2007, 03:54 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
We will try to have your issue addressed in up coming 3.3 release.
It may not be the issue of your TMP partition. If you run lshttpd in 32bit system, you may run into virtual memory limit problem if there a few upload/download session for large files. 3.3 release will have it addressed. It is due in next week.
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


All times are GMT -7. The time now is 02:12 AM.



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