Many MYSQL processes on Linux
If you use Innodb as format databases, you can set a buffer limit.
exemple for 4G ram :
[mysqld]
innodb_buffer_pool_size=3G
innodb_io_capacity=6000

source : https://dev.mysql.com/doc/refman/5.7/en/innodb-buffer-pool-resize.html