All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Running cPanel, Excessive Load, Help Needed
Hi,
I use a 2 GB Ram + 1 GB (vSwap), 100 GB Space, 4 vCPU Cores (E5-2620) OpenVZ VPS for My cPanel Hosting. The Problem is about Server Load. I have identified the problem being with MySQL. Right Now, MySQL is using 44.1% CPU. I have checked my.cnf file and it appears as follows:
[mysqld] #open_files_limit=30880 innodb_use_native_aio = 0 max_connections = 100 key_buffer = 32M myisam_sort_buffer_size = 32M join_buffer_size = 1M read_buffer_size = 1M sort_buffer_size = 2M table_cache = 4000 thread_cache_size = 286 interactive_timeout = 25 wait_timeout = 7000 connect_timeout = 10 max_allowed_packet = 16M max_connect_errors = 10 query_cache_limit = 8M query_cache_size = 12M query_cache_type = 1 tmp_table_size = 16M max_heap_table_size = 16M local-infile=0 [mysqld_safe] open_files_limit = 8192 [mysqldump] quick max_allowed_packet = 16M [myisamchk] key_buffer = 64M sort_buffer = 64M read_buffer = 16M write_buffer = 16M [mysqlhotcopy] interactive-timeout
I run the Following Plugins for cPanel:
Resource Monitor, WHMSonic, Attracta SEO Tool, ConfigServer Explorer, ConfigServer Mail Manage, ConfigServer ModSecurity Control, ConfigServer Security & Firewall, cPremote, Mod Security, Nginx Admin, Softaculous, CloudFlare etc.
Checking deeper with Resource Monitor, I got that MailMan uses the MySQL most & I often get Mail from LFD Like this:
Time: Thu Jan 2 17:03:34 2014 +0600 Account: mailman Resource: Process Time Exceeded: 753889 > 1800 (seconds) Executable: /usr/bin/python Command Line: /usr/local/cpanel/3rdparty/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=ArchRunner:0:1 -s PID: 1274 (Parent PID:1261) Killed: No
Can Anyone help me out that what can decrease My Load ??
Thanks in Advance.
Comments
Check your pm
Replied, Please Check @INIZ
Iniz has private cPanel counseling now?
The first key is to find the problem, then you can approach the symptoms. If it's mysql, find out what user and why. May be that you need to focus attention on a site being attacked, perhaps even a need to introduce mod_qos.
Your friend here is "show processlist;"
@DamComp No, the fact is, My Provider is INIZ. So, Patrick is helping me. ;-) Thanks @INIZ
Let us all know what you do to fix it
@DeanClinton Of Course, I'll let all know about the solution if it got fixed. Made some changes, now waiting for result.
@ehostlab what is your IO Wait? I've seen this when disk IO is congested
Here are some quick and free tips for you.
Read this: http://forums.cpanel.net/f34/troubleshooting-high-server-loads-linux-servers-319352.html
https://github.com/major/MySQLTuner-perl
1A. wait_timeout is way too high. Set it to 30 and restart the mysql.
Home »Server Status »Daily Process Log
Set SpamAssassin to only work with one thread. So you can reduce the 'children' setting and reclaim some memory on your server for other apps to run with.
Disable services you are not using
Cpanel
Uncheck mailman (use other)
Uncheck named (if not hosting dns)
Uncheck Spamd (if hosting MX records somewhere else. Or see 3 if you need it)
5A. Try this in your .htaccess or make sure mod_sec is blocking connections without headers or others.