Apache Lounge



Forum Index Downloads Search Register Log in  RSS Apache Lounge

Keep Server Online

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



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

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.

Long TTFB upon first request

Post new topic   Reply to topic    Apache Forum Index -> Apache

View previous topic :: View next topic  
Author Message

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, 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!
Back to top
James Blond

Joined: 19 Jan 2006
Posts: 6519
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

Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1