Mysql 5.5.45 crashing after refreshing web page rapidly(Too Many Connection warning)
If that snapshot really says you are doing it, do not mix mysql_* interface calls with mysqli_* calls.  That could cause mysterious problems.

Do not use mysql_* at all.

You could try raising max_connections to 400.  But that is just a bandaid.