long time to first byte, due to webserver configuration or website ?

Hello

For my web site I have a rather long Time to First Byte (more than 6 sec).
How can I be sure of the main cause of this: webserver configuration (apache) or website generation itself (drupal)?

Any ideas ?:slight_smile:

Thank you

Odds are strongly that it is going to be in the website generation itself but the only way to know for sure is to measure. If you have root access to the server I highly recommend installing New Relic - it will tell you what is causing the slow times really quickly.

If you don’t have root access you will have to either instrument the code manually to log to a file or to use a plugin like this: http://drupal.org/project/performance

I am sure its drupal. Please be sure that you have enabled drupal cache and don’t have developers plugins like devel enabled.

Installing APC and fine tuning mysql can also help.
thanks