Site not responding error – taking long to load [closed]

You shouldn’t be blindly changing configs in my.cnf.

Use rackerhacker/MySQLTuner-perl · GitHub to test and check your my.cnf configs. It will give suggestions for memory allocations and all other aspects of MySQL tuning.

You also should configure httpd.conf for high loads. See Apache Performance Tuning – Apache HTTP Server