1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Web server slow loading even html pages (10 seconds time to first byte)

Discussion in 'Apache' started by postcd, Feb 26, 2019.

  1. #1
    Hello, my apache 2.x web server with suphp started loading all websites slow (before a few days it was OK and i made no config. changes). For example even a .html page loads like 10 seconds and when the page contains an image, i wait another 10 seconds for it to appear. So the problem is time to first byte (TTFB) of my web server apache.
    When i restart httpd, it shows problem with mixed ports, i bet it is not related and is soft error.

    time curl -v publicIPofRemotewebserver
    time curl -v publicIPofLocalwebserver

    first is loaded under 1s, second is 10 seconds...
    SEMrush
     
    Last edited: Feb 26, 2019
    postcd, Feb 26, 2019 IP
    SEMrush
  2. SpacePhoenix

    SpacePhoenix Well-Known Member

    Messages:
    125
    Likes Received:
    12
    Best Answers:
    1
    Trophy Points:
    120
    #2
    Have you tried pinging the server to see if there's a slow connection somewhere between your computer and the server?
     
    SpacePhoenix, Feb 26, 2019 IP
  3. postcd

    postcd Well-Known Member

    Messages:
    1,003
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    190
    #3
    This is not the issue. Slow down is evident also via other servers like webpagetest.org and even local webserver command "curl -v hxxp://hosteddomain.tld/page.html" is delayed. curl -v hxxps://google.com is not delayed.
     
    Last edited: Feb 26, 2019
    postcd, Feb 26, 2019 IP
  4. hostechsupport

    hostechsupport Well-Known Member

    Messages:
    411
    Likes Received:
    23
    Best Answers:
    7
    Trophy Points:
    138
    #4
    Where is the website hosted? If it's shared server you may contact the provider and ask them to check server response time because html sites should not take so much long unless there are heavy images or videos embedded on home page.
     
    hostechsupport, Feb 27, 2019 IP
  5. postcd

    postcd Well-Known Member

    Messages:
    1,003
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    190
    #5
    The issue disappeared after server restart, though if anyone have idea how to fix or discover cause without restart, please comment.
     
    postcd, Mar 14, 2019 IP
  6. SpacePhoenix

    SpacePhoenix Well-Known Member

    Messages:
    125
    Likes Received:
    12
    Best Answers:
    1
    Trophy Points:
    120
    #6
    Anything in the error logs around the time it started being slow?
     
    SpacePhoenix, Mar 14, 2019 IP
  7. postcd

    postcd Well-Known Member

    Messages:
    1,003
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    190
    #7
    I can not spot exact time. it was like +-3 days.. And who knows in which log file such possible error may be on cpanel server. apache error_log is 227MB big and is since January 6. I do not want to go line by line while not knowing what i am looking for.
     
    postcd, Mar 14, 2019 IP