PHP Stalls before loading page fast

Discussion in 'PHP' started by razorz, Jul 19, 2010.

  1. razorz

    razorz New Member

  2. mistwang

    mistwang LiteSpeed Staff

    Try strace/truss/ktrace the lsphp5 process, it should show what stall PHP.
    Sometimes, it is a issue with DNS.
  3. razorz

    razorz New Member

    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?
  4. mistwang

    mistwang LiteSpeed Staff

    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.
  5. razorz

    razorz New Member

  6. mistwang

    mistwang LiteSpeed Staff

    That looks like a MySQL DB connection, you should investigate why. Maybe try different version of MySQL driver and socket type (TCP/Domain).

Share This Page