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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > First request hangs

Reply
 
Thread Tools Display Modes
  #1  
Old 01-05-2013, 01:08 PM
ohhai ohhai is offline
New Member
 
Join Date: Dec 2012
Posts: 5
Default First request hangs

Ive currently got LSWS setup on Cloudlinux, and having an issue that is really bugging me.

The first request to a website will take very long. I tested one on pingdom and it took 6 seconds, simply re-testing right after and it loaded in less than half a second consistently. Ive tested this enough to confirm this is an issue across any site on the server.

I originally thought it may have been an opcode cache issue. I replaced eaccelerator with APC, disabled LS cache, disabled memcache.. No luck yet.

Has anyone else experienced this? Everything is up to date. Thank you.

Edit -
http://www.litespeedtech.com/support...ead.php?t=6367
This thread also mentions the issue, where it was written off as not a problem.
This is unacceptable for a production server. Hoping someone has a resolution.

Last edited by ohhai; 01-05-2013 at 01:55 PM..
Reply With Quote
  #2  
Old 01-05-2013, 09:20 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
please refer this thread:
http://www.litespeedtech.com/support...ad.php?p=38947
Quote:
database warming up has caused the delay.

to verify this, just put a phpinfo() page under the documentroot, if phpinfo() is fast at any time, then the culprit is mysql; otherwise, it may be related to litespeed.
Reply With Quote
  #3  
Old 01-05-2013, 09:42 PM
ohhai ohhai is offline
New Member
 
Join Date: Dec 2012
Posts: 5
Appreciate the response.
I have had issues previously where phpinfo page took time to load as well.
SQL is on the same server, and have never experienced the problem of taking time to "warm up". If such is the case, I find it odd it would only occur in conjunction with LS.

As I write this post, I am not having any issues.
For what its worth, I have created a ramdrive for the gzip and LS cache directory. Doubt its of any relevance, but will put this in for future documentation.
Reply With Quote
  #4  
Old 01-05-2013, 10:37 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
Quote:
SQL is on the same server, and have never experienced the problem of taking time to "warm up". If such is the case, I find it odd it would only occur in conjunction with LS.
if there are hundreds of databases in the SQL server, for 1st access of a low traffic site, it need load the database from hard disk into memory, and this may take long time if a)memory is not enough or b)disk I/O happen to be high at that time. for 2nd request which has database access, since the database already in memory, so no loading overhead and response fast. so please monitor the database performance as well and enable slow query log. also good idea to monitor the disk io and disk swap status. if disk swap happen, it's sure you'll feel the slowness of a website.
Reply With Quote
  #5  
Old 01-05-2013, 10:47 PM
ohhai ohhai is offline
New Member
 
Join Date: Dec 2012
Posts: 5
Certainly makes sense. However, the server is a dual quadcore with raid10 15k SAS drives, and only have about 4 accounts on it right now - with a single one live or active.

Now that I think of it, something that may affect this is the IO setting in CloudLinux. I currently have this set rather low for testing IO requirements - around 128 or 256. Ill do more testing with this and report back.
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 09:41 AM.



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