The situation is this: There is a certain store engine, which is hosted, among other things, on my server and does not chronically close connections with MySQL. As a result, there are whole sheets of sleeping connections, growing with each new visitor, and the DB eats memory as if not in itself. It is clear that it is necessary to kick people who gave birth to this web development burp, and ideally change the engine, but I would like to make this situation impossible in principle.
Therefore questions:
- What command kills connections to mysql?
- How to get a list of connections opened more than N minutes ago?
- Is it possible to configure the database so that it itself forcibly closes the old connections?