MySQL max_connection value
Max_connections is The total number of concurrent connections allowed by the MySQL server. If you are getting Too many connections' error, it means that you have reached this limit.

Also, You should observe threads_running variable value for a period of time to determine exact value for 'max_connections'. 

You can consider max_connection value as 


  MaxValue (threads_running)` + 10 = Max_connections