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

Go Back   LiteSpeed Support Forums > External Applications > PHP > PHP Stalls before loading page fast

Reply
 
Thread Tools Display Modes
  #1  
Old 07-19-2010, 01:30 PM
razorz razorz is offline
New Member
 
Join Date: Jul 2010
Posts: 9
Default PHP Stalls before loading page fast

http://www.gamerconx.com/

http://www.gamerconx.com/bp/

Two different sets of code, same issue. It stalls and then loads fast.

Any ideas? PHP 5.3.2 w/ Zend.. tried with and without APC, with and without server side caching.

Solaris 10 SPARC
Reply With Quote
  #2  
Old 07-19-2010, 04:15 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Try strace/truss/ktrace the lsphp5 process, it should show what stall PHP.
Sometimes, it is a issue with DNS.
Reply With Quote
  #3  
Old 07-19-2010, 04:43 PM
razorz razorz is offline
New Member
 
Join Date: Jul 2010
Posts: 9
Could you give me some specific commands and what I am looking for? I can truss PID's and it shows either an idle state of lsphp5 or, when I request a page, tons of spam going down. What am I really looking for in the mess of files being opened?
Reply With Quote
  #4  
Old 07-19-2010, 06:08 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
let truss print out timestamps, and the amount of time each system call. I can do that with strace, not sure about truss.

Then, send a request that show the stall problem. from truss output, you can catch some pauses matching the stall period, log in that period is what you should pay attention. When the timestamp, you can always go over the log output and find out that section. If truss output does not pause, it could be something else.
Reply With Quote
  #5  
Old 07-19-2010, 08:20 PM
razorz razorz is offline
New Member
 
Join Date: Jul 2010
Posts: 9
http://pastebin.ca/1904123

2.5 second pause time. Bloody hell =/
Reply With Quote
  #6  
Old 07-19-2010, 09:22 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
That looks like a MySQL DB connection, you should investigate why. Maybe try different version of MySQL driver and socket type (TCP/Domain).
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 11:04 PM.



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