Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 2 of 2

This is a discussion on odd 10 second delay on php commandline in the VPS & Dedicated forum
Hi all, I have a strange problem. Suddenly php on the commandline is delaying for 10 seconds before starting up, but only when I try ...

  1. #1
    JPC Member
    Join Date
    Apr 2003
    Posts
    12

    odd 10 second delay on php commandline

    Hi all,

    I have a strange problem.
    Suddenly php on the commandline is delaying for 10 seconds before starting up, but only when I try as a normal user. As root, it's immediate.

    It's not like the php program is slow itself, because it even waits 10 seconds to display "Could not open input file: kjhsdfkhsdkfj.php"

    Here are the results of "time php -i" when running as normal user in jailshell:
    (php info omitted)
    real 0m10.301s
    user 0m0.016s
    sys 0m0.011s

    Here is as root:
    (php info omitted)
    real 0m0.290s
    user 0m0.016s
    sys 0m0.013s

    The delay seems to be exactly 10 seconds every time.

    Also, I don't know if this is related, but SSH login has a very long delay after I input my (correct) password, up to 30 seconds or so. This seems to have started around the same time as the PHP delay.

    Any ideas?

  2. #2
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,312
    Yeah, I've seen this issue for logging in.

    Check your DNS resolution time by trying a simple
    Code:
    wget google.com
    on the command line. The results should be nearly instantaneous.

    PS don't do that command in your doc_root directory (www) as it will create an index.html file !
    Good luck

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •