Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
530 views
in Q2A Core by
edited by
I am encountering an issue where approximatly once or twice a minute one request is facing a very high response time of 26 seconds. Its completely normal otherwise

Tried enabling the built in performance debug mode in Qa-config.php

I notice 99% of time is comsumed by Setup up where as control, view and theme is 0% relatively.

out of 99% setup time, 98% falls under PHP rest 1% under Other category.

This is resulting in very high waiting (TTFB) on the browser. - around 28 seconds...occasionly.

How can i debug this further ? and what does this Setup mean ?
Q2A version: 1.7.4
by
Does this happen on specific pages? Question lists, question pages, user profiles, etc.

1 Answer

+2 votes
by
selected by
 
Best answer
"Setup" is everything that's done before a page request is actually processed by the scripts in qa-include/pages/

It includes a few things like normalising the request and parameters (ie deciding which page script to use), setting up plugins and external users if you're using that.

If you're getting slowness in that part, it's most likely due to external users or a plugin that does some work before being called.

Try removing plugins and see if one of them is causing the issue.
...