Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
615 views
in Q2A Core by

I wonder how many active connection on each page of my Q2A installation?

 

I am having the following message many days a week:

Warning: mysql_connect() [function.mysql-connect]: Can't create a new thread (errno 11)

 

I googled for it and I found that it means I am consuming the max limit of connections per user at a time which mean much memory usage.

Is Q2A using many connections on each page? Or am I getting DoS attack?

Any solutions?

by
There should only be one connection per page load, but if you're getting many visitors that will be multiple connections per second/minute.
by
I run two Q2A sites with decent traffic. MySQL has never been an issue. You should check your server resources.

1 Answer

+4 votes
by

Answering this question again (I had commented already once above). If you want to see the list of all queries on a page then set the QA_DEBUG_PERFORMANCE property to true in qa-config.php. This will output performance and MySQL query related information at the bottom:

...