We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

from yesterday cpu load to 100% | Forum

Simone
Simone Feb 15 '15
Hi,

from yesterday my vps sometimes go crash.


this is error log before one of this..


can you help me?

thank you 

Attachments:
  error.txt (67Kb)
ross Team
ross Feb 15 '15
Simone, according to the error logs, there's something wrong with the mysql socket or the host of your database. 

However you say that there's a cpu load. If everything works fine except for the high cpu. Contact your hosting provider to trace which part of the software causing this high CPU. 

Simone
Simone Feb 18 '15
Hi Ross!

I've a fully managed server and Arvixe tell me that is a php problem.


"

I can confirm that you do have moderate to high load on your server, but this is not a fault of the server itself. You have a PHP script under the user cenex that is using a lot of CPU:

root@cenexvps [~]# ps faux | grep cenex
root 3979 0.0 0.0 103240 860 pts/0 S+ 12:16 0:00 \_ grep cenex
cenex 3565 11.4 2.0 393424 31168 ? R 12:06 1:14 | \_ /usr/bin/php
cenex 3572 13.5 2.4 379792 36936 ? S 12:06 1:28 | \_ /usr/bin/php
cenex 3680 9.6 2.8 382872 44260 ? D 12:11 0:34 | \_ /usr/bin/php

"


I have Oxwall for a long time, I have buyed a lot of plugin (37 XD), install and uninstall it repeatly...


If I reinstall from 0 with the right plugin and import database and userfile, do you think can I resolve the issue?


two weeks ago it goes very well and cpu was always at 2% with 100+ users online.


Thank you

ross Team
ross Feb 18 '15
Which part of the script exactly Simone?
Simone
Simone Feb 19 '15
please take a look: 

these are the processes what are running now on your VPS:

root@cenexvps [/home]# ps aux | grep cenex
root 30516 0.0 0.8 76424 13556 ? SNs 01:50 0:00 backupadmin - cenex - ftp 505
root 30519 0.0 0.0 4056 396 ? SN 01:50 0:00 /usr/local/cpanel/bin/cpuwatch 4.0 /usr/local/cpanel/scripts/pkgacct cenex /home/30516.BIN_ADMIN_CPANEL_BACKUP_PL__.z1vQ74KqN_PBuGCT.tmp userbackup
root 30520 1.7 3.5 168712 54568 ? SNs 01:50 0:16 pkgacct - cenex - av: 3
cenex 30794 3.0 4.0 392900 62072 ? S 01:52 0:24 /usr/bin/php
cenex 30840 1.4 3.5 168872 54296 ? DN 01:52 0:11 pkgacct - cenex - av: 3
cenex 31680 0.4 2.9 389316 44380 ? S 02:00 0:01 /usr/bin/php
cenex 31684 0.9 3.6 386500 55340 ? S 02:00 0:02 /usr/bin/php
cenex 31819 0.6 2.3 379024 36672 ? S 02:02 0:01 /usr/bin/php
cenex 31856 0.6 2.8 387580 43944 ? S 02:02 0:01 /usr/bin/php
cenex 31872 1.0 3.5 385732 54448 ? S 02:03 0:01 /usr/bin/php
cenex 31873 0.7 2.9 387324 44776 ? S 02:03 0:00 /usr/bin/php
cenex 31874 1.4 4.5 398544 68924 ? S 02:03 0:01 /usr/bin/php
cenex 31875 0.7 3.8 390856 59268 ? S 02:03 0:00 /usr/bin/php
cenex 31876 0.6 2.2 389068 34620 ? S 02:03 0:00 /usr/bin/php
cenex 31884 1.0 3.1 379024 48324 ? S 02:04 0:01 /usr/bin/php
cenex 31892 0.8 2.4 378512 38200 ? S 02:04 0:00 /usr/bin/php
cenex 31894 1.3 3.5 387036 54796 ? S 02:04 0:01 /usr/bin/php
cenex 31895 1.9 4.1 392416 62920 ? S 02:04 0:01 /usr/bin/php
cenex 31899 2.1 3.8 388024 58464 ? S 02:04 0:01 /usr/bin/php
cenex 31908 3.0 4.2 391360 64776 ? S 02:04 0:01 /usr/bin/php
cenex 31909 2.3 4.2 391112 64584 ? S 02:04 0:00 /usr/bin/php
cenex 31910 1.0 2.2 379068 35024 ? S 02:04 0:00 /usr/bin/php


Also, the apache's error log:

[Thu Feb 19 02:05:12 2015] [warn] [client 95.240.149.105] mod_fcgid: read data timeout in 90 seconds
[Thu Feb 19 02:05:12 2015] [error] [client 95.240.149.105] Premature end of script headers: index.php
[Thu Feb 19 02:05:12 2015] [error] [client 95.240.149.105] File does not exist: /home/cenex/public_html/500.shtml
[Thu Feb 19 02:05:40 2015] [error] [client 66.249.64.163] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Thu Feb 19 02:05:40 2015] [error] [client 66.249.64.163] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Thu Feb 19 02:05:50 2015] [error] [client 66.249.64.167] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Thu Feb 19 02:05:50 2015] [error] [client 66.249.64.167] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
There might be an issue with your .htaccess redirection rules . I have renamed your .htaccess file to .htaccess_backup
Simone
Simone Feb 19 '15

htaccess file


Options +FollowSymLinks

RewriteEngine On


AddEncoding gzip .gz

AddEncoding gzip .gzip

<FilesMatch "\.(js.gz|js.gzip)$">

  ForceType text/javascript

</FilesMatch>

<FilesMatch "\.(css.gz|css.gzip)$">

  ForceType text/css

</FilesMatch>



RewriteCond %{REQUEST_URI} !^/index\.php

RewriteCond %{REQUEST_URI} !/ow_updates/index\.php

RewriteCond %{REQUEST_URI} !/ow_updates/

RewriteCond %{REQUEST_URI} !/ow_cron/run\.php

RewriteCond %{REQUEST_URI} !/e500\.php

#RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]

RewriteCond %{REQUEST_FILENAME} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]

RewriteRule (.*) index.php

Simone
Simone Feb 19 '15
root@cenexvps [~]# ps aux | grep cenex cenex 4890 3.7 5.1 398736 79040 ? S 03:06 0:06 /usr/bin/php cenex 4917 0.9 0.0 0 0 ? Z 03:08 0:00 [php] <defunct> cenex 4920 9.0 4.2 386500 65144 ? S 03:08 0:08 /usr/bin/php cenex 4925 2.5 5.2 401808 79816 ? S 03:08 0:01 /usr/bin/php cenex 4928 1.2 3.5 378512 54976 ? S 03:08 0:00 /usr/bin/php cenex 4931 2.5 4.7 396944 73152 ? S 03:08 0:01 /usr/bin/php cenex 4958 0.0 0.1 138496 2376 ? Ss 03:09 0:00 wget -q -O /dev/null http://incontrirock.com/ow_ cron/run.php cenex 4960 1.8 3.6 387016 56488 ? S 03:09 0:01 /usr/bin/php cenex 4964 0.0 1.4 374520 21732 ? S 03:09 0:00 /usr/bin/php cenex 4966 3.3 3.9 381584 60156 ? S 03:09 0:01 /usr/bin/php cenex 4971 19.1 3.7 379280 57648 ? S 03:09 0:09 /usr/bin/php cenex 4976 17.3 4.1 384204 62828 ? S 03:09 0:08 /usr/bin/php cenex 5021 26.7 5.0 398224 76568 ? R 03:09 0:01 /usr/bin/php root 5024 0.0 0.0 103244 880 pts/0 S+ 03:09 0:00 grep cenex