I have MySQL 5.6.27-0ubuntu0.14.04.1 that runs on an instance of Google Compute with 4 processors.
I noticed that if I have a connection that will sleep for a long time, then the server processor will increase linearly. I do not understand why? If I kill the dream, then the CPU will simply return to proper use.
So, to summarize, I have the following: I notice that the processor of my instance is increasing: 
Then I check the list of processes on my server
mysql> show processlist -> ; +-------+--------+-------------------+----------------+---------+------+-------+------------------+ | Id | User | Host | db | Command | Time | State | Info | +-------+--------+-------------------+----------------+---------+------+-------+------------------+ | 85949 | nafora | paper-eee-2:58461 | state_recorder | Sleep | 1300 | | NULL | | 85956 | nafora | paper-eee-2:58568 | state_recorder | Sleep | 64 | | NULL | | 85959 | root | localhost | NULL | Query | 0 | init | show processlist | +-------+--------+-------------------+----------------+---------+------+-------+------------------+
You can see that I only have 2 connections that Sleep and one here, from 1300 seconds (because I have a process that got stuck when opening the connection)
So, I kill connection 85949 and the processor just crashes. 
Can someone explain to me why one sleeping connection can affect my database as follows.
Thanks.
source share