0

I need to identify which application process issues a large number of MySQL connections on a Linux system.

The show processlist sql command or tools like innotop do not really help, as they only show db user and host, and i doubt that i catch all statements that way.

I was thinking to use something on the network level, like tcpdump or netstat. Any suggestions?

asked Apr 1, 2021 at 2:44
0

1 Answer 1

1

It seems

ss -p '( dport = :mysql )'

does the trick, listing the process ids of the processes on the local machine that connect to the mysql driver's port.

answered Apr 1, 2021 at 7:44

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.