logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Long TTFB upon first request
Author
uofmrob



Joined: 15 Jun 2018
Posts: 1
Location: USA

PostPosted: Tue 03 Jul '18 15:39    Post subject: Long TTFB upon first request Reply with quote

Hi Everyone,
I've been trying to fix an issue on my Ubuntu 16.04 web server for some time. I've tried all of the fixes that I could find and nothing seems to help.

Basically, I've got an Apache 2.4 web server running with a half dozen or so virtual hosts with different domain names, some running PHP sites, some running straight HTML, and others with just a single HTML redirect.

When you first go to any of the sites, the time to first byte is at least 20 seconds, then any accesses after are instantaneous. If you open a site in Chrome, the TTFB is 20 seconds, followed by fast access, then if you try to open the same site in Firefox, again, the TTFB is 20 seconds, followed by rapid access.

I've added my domains to the /etc/hosts file, added the computer's hostname to 127.0.1.1, disabled .htacess temporarily to see if something there was causing the issue, tried http and https, so it's not an SSL issue, disabled HostnameLoookups and several other things that have worked for other people. I've looked at the apache error logs and nothing seems to pop up. There's not much traffic on any of the sites, so I don't think that it's a workload problem or anything (typical server load is around 0.02).

I'm hoping that someone can point me in some new directions for things to try to diagnose and fix the issue.
Thanks in advance!
Rob
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7294
Location: Germany, Next to Hamburg

PostPosted: Mon 16 Jul '18 15:44    Post subject: Reply with quote

Can you provide a screen shot of the network analyses from chrome? Or provide an url for testing.
Back to top


Reply to topic   Topic: Long TTFB upon first request View previous topic :: View next topic
Post new topic   Forum Index -> Apache