A
A
Alexander Drek2015-04-25 09:59:07
MySQL
Alexander Drek, 2015-04-25 09:59:07

How to remove inactive threads in mysql?

I have a server with about 10 sites, and a lot of data in the database, a lot of requests for both writing / updating and reading.
Question two.
1. On one of the servers I saw this picture:
9d515d929f4e4948ad521e244198e9fd.png
It looks like this for me
fb6440b5b4a045b7b3116026f26fe074.png
(the screenshot was taken after the server was rebooted
) as I understand it, on this server, after a query is made to the database, the mysql thread is killed. And I have some threads live forever. I don't think this is good.
Can you tell me if this is the case and how to achieve this?
2. Can you recommend a good article/video/service for setting up mysql?
PS In general, the main problem of my server is that mysql, when performing unloading goods or similar (heavy) operations, takes all the processor resources.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
polozad, 2015-04-28
@drekon

Do you know about the connection pool? Do you have anything holding the persistent pool to the muscle? If so, then this is just right, rather than opening and closing connections every time.
And they cannot live forever. By default, the muscle terminates inactive connections older than 8 hours.

P
Puma Thailand, 2015-04-25
@opium

This is good and right.
Limit mysql resources in config.
Well, hire an admin to optimize your server and mysql.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question