The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Sites takes 20~30 seconds to start loading

Discussion in 'Workarounds and Optimization' started by viniciusmunich, Jan 29, 2012.

  1. viniciusmunich

    Joined:
    Jan 29, 2012
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,
    My PHP handler is configured to use fastcgi.

    When I access a page hosted on my vps, it takes about 20~30 seconds to get a response from the server, and so begin loading. After that, the site opens normally and everything works perfectly. After a while without anyone accessing the site, the php process is terminated/killed, and if the site is accessed again, the delay to start loading happens again.

    This problem could be something wrong with my hard drives?

    I use Apache as webserver.
    I've tried using nginx as a proxy server, and there were no changes, just a smaller memory footprint.

    I opened a support ticket in the cPanel but got no solutions yet.

    My VPS has 8 cores, Intel (R) Xeon (R) E31230@3.20GHz CPU, 6GB DDR3, HDD 750GB, 7200 rpm, OpenVZ.
    My load average is maintained in most cases, below 1.
    The maximum memory consumption is about 20%.
    There is no problem with the internet connection.
    My I / O = 0 (highest priority).
    Any other VPS on the same server works normally.

    I am installing litespeed as webserver right now, but without much hope ..

    Can anyone help me?

    Thank you,
    Vinicius Munich

    EDIT: Litespeed installed .. In relation to the delay in starting to open the site, nothing has changed ... I'm running out of alternatives :/

    EDIT2: My Includes:

    pre_main_global.conf
    pre_virtualhost_global.conf
    post_virtualhost_global.conf
    :/
     
    #1 viniciusmunich, Jan 29, 2012
    Last edited: Jan 29, 2012
  2. hocquantrimang

    Joined:
    Feb 13, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    My sites has the same speed, and i think that is so normal
     
  3. qwershops

    qwershops Registered

    Joined:
    Feb 15, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    what kind of sites do you have?
     
  4. fosterdv

    fosterdv Registered

    Joined:
    Oct 16, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I was actually wondering the same thing qwershops asked. I know I had some issues with some Wordpress sites, loading very slow and everything, but that was something to do with the installation of Wordpress. All of my sites load pretty fast.

    Is this still an issue for you, and what type of sites are you running into these issues with?
     
  5. srpurdy

    srpurdy Well-Known Member

    Joined:
    Jun 1, 2011
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Check your resolv.conf it's possible that the ip addresses your using for DNS is not correct and that is causing a delay to getting to your site. If this is for all sites on the vps box than that could be the problem.

    20-30 second delay is not normal.
    Since your on a VPS also check that your not using too much resources and run cat /proc/user_beancounters see if you have any problems there.

    Shawn
     
Loading...

Share This Page