Trojan Activity - Running Perl With High CPU Usage, With User Apache
Running programs named Perl with Heavy CPU usage, with the ownership of user apache.
We found the problem on Fedora 3 and Fedora 6.
In our case, it was the result of a Trojan activity.
Quick Solution
Check the cron jobs of user apache
crontab -u apache -e
*/1 * * * * perl /tmp/.tmp/tmpfile
delete the cronjob entry.
Also delete the file /tmp/.tmp/tmpfile
also added "apache" to the file /etc/cron.deny
That's all
Problem and solution in detail....
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
How To Find What Perl Script Is Causing High CPU Usage
How to find what Perl script is causing high CPU usage? I logged into my CentOS box tonight and notice after viewing the output of the "top" command that there are the following lines of output that have me concerned. What command can I use to find the source of the Perl script that is causing the CPU spike? It seems it's been running for some time too. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 30120 apache 25 0 6908 4544 1216 R 99.8 0.2 13416:07 perl 30654 apache 25 0 8028 4508 1212 R 99.4 0.2 13417:22 perl 21273 apache 25 0 7584 4528 1200 R 98.1 0.2 2225:12 perl 20516 apache 25 0 6760 4540 1232 R 96.8 0.2 2221:30 perl
View Replies!
View Related
What Causes High CPU Usage
I know about high CPU usage and how it works against a webmaster when his host decides to suspend an account over this. My question is what kinds of scripts usually cause CPU Usage to bulk up. Basically what the script is doing, that just makes it happen. I tried Google, but i guess poor choice of keywords .
View Replies!
View Related
My Server Is Very Slow, High CPU, High Apache Load
My server is very slow, High CPU, High Apache load.... I got a new server and i had setup a script on it. No server tweaks has been done. I run a filehosting site so it gets very slow when traffic is high. Here is some info: Code: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 4135 filedip 19 0 12812 8892 2212 R 18.9 0.4 0:00.74 index.cgi 3140 apache 15 0 22624 9604 2768 S 17.3 0.5 1:54.45 httpd 3556 apache 15 0 22792 9592 2768 S 17.3 0.5 0:43.53 httpd 3739 apache 15 0 22672 9556 2744 S 17.3 0.5 1:09.67 httpd 3884 apache 15 0 22664 9560 2744 S 17.3 0.5 0:23.98 httpd 3474 apache 15 0 22672 9572 2756 R 16.1 0.5 1:34.09 httpd 3548 apache 15 0 22792 9560 2740 S 16.1 0.5 1:33.67 httpd 3991 apache 15 0 22640 9588 2756 S 15.1 0.5 0:22.44 httpd 3475 apache 15 0 22672 9580 2756 S 13.2 0.5 1:31.42 httpd 3493 apache 15 0 22664 9592 2768 S 12.9 0.5 1:15.52 httpd 3769 apache 15 0 22664 9580 2756 S 12.9 0.5 0:45.19 httpd 3638 apache 15 0 22664 9576 2756 S 12.3 0.5 0:32.82 httpd 3724 apache 16 0 22664 9580 2756 R 12.3 0.5 0:34.25 httpd 3626 apache 15 0 22672 9580 2756 S 11.7 0.5 0:52.54 httpd 4023 apache 16 0 22792 9560 2740 R 11.3 0.5 0:13.16 httpd 3882 apache 15 0 22664 9576 2756 S 10.1 0.5 0:38.56 httpd 3005 apache 15 0 22672 9588 2768 R 9.1 0.5 2:06.61 httpd I dont know much about server managment... how to fix this so server doesnt go slow?
View Replies!
View Related
High CPU Usage How To Reduce It
My server details Intel 2.4 Ghz P4 Celeron os-redhat RAM-2GB DDR harddisk-160+50Gb bandwith-3000Gb now iam haveing more that 0.50-1.20 cpu useage,also cpu useage is also increased i hosted only 6 site out what only one site use MSQL all other site are plain download site,how to reduce the cpu load can u figure me out this issue also give me some tips to reduce the cpu usage
View Replies!
View Related
High Cpu Usage (httpd)
I noticed high cpu usage on my server since a couple of days ago. I neither updated software nor changed the configurations on the server. The server load was about 0.5 ~ 1.0 but now the average CPU load does not go below 5.0 when I stop apache (1.3) the load goes down and as soon as I start it up the load start increasing. I checked for DoS but it seems nothing exists of this type. I tried to follow the access_log file but from the first view nothing is strange there. I don't have any control panel on the server. just Apache, FTP and SSH installed.
View Replies!
View Related
Named High Cpu Usage
Since yesterday named started to use more cpu than usual. Techs "refuse" to work with that issue and saying that its's normal. Though all the time had no problems, haven't added hundreds of domains yesterday and there were no changes from my end. There was one change from techs side however. "the MX record for the domain was going to localhost, rather than the domain name. I have changed the MX record to domain..." Anything I should check? Logs doesn't provide anything valuable, just notices.
View Replies!
View Related
Mysql Usage: High CPU %, How Do I Find Out Who's Using What
just noticed mysql cpu usage has shot up from its usual 5-10% cpu to 30%+. domains are as normal and no extraordinary php processes. any way i can tell what users are most heavily running mysql? (as in number queries / slow queries etc?) i know mysqladmin processlist but that only gives me a snapshot, whereas i want to see over 24 hours, who used mysql the most...
View Replies!
View Related
CPU Usage HIGH - Spamd Child
I have just moved my sites from shared host to a vps. After several initial problems (cpanel issue, config not set up correctly, memory spikes and sites down every morning due to backup and stats) I thought everything was going to be ok. hmm. My server load starts off fine first thing (less than 1) then creeps up nearly 1 per hour, ie been 3.5 hours now and it is at 2.57. Sites are ok at the moment but yesterday load got up to nearly 7 and sites were extremely slow. CPU usage is HIGH for one site and goes up very quickly throughout the day. Yesterday it reached well over 90%. First thing today it was already amber and showing 14%. It is now 70.54% and shows below it : Top Process %CPU 80.2 spamd child Top Process %CPU 79.8 spamd child Top Process %CPU 79.4 spamd child I have a ticket open and they (Liquid Web) they are not sure what the deal is, but are apparently monitoring it to see if they can isolate the cause of the problem. But that was a couple of days ago and now the ticket is due for closure. I telephoned them (expensive as I'm in the UK!) and raised my concerns, but was just told that everything looked ok on the vps, cpu usage was in fact not high and to ignore the warnings. So, I am posting here to see if anybody can help me get to the root of this. I understand that spamd child is to do with email / spam assassin? My problem is that this is the first vps I have had and don't have a clue now where to go or what to do. Anybody understand about spamd child that can explain it to a poor dumb blonde and how to fix it?
View Replies!
View Related
Load Is Low CPU Usage Is High
I was wondering is someone can shed some light on a curious situation for me. I am running a linux server (Gentoo) and the CPU usage spikes to 90-100% but the load of the server when viewed by top is only 0.4 - 1.5 (max). The memory is OK with .5 gig free and there is no paging going on. So my question is: Is this server over used or not? Below is the output of top 3 times over aprox 2 min... please enlighten me... :-) top - 17:39:57 up 3 days, 10 min, 1 user, load average: 0.55, 0.66, 0.66 Tasks: 66 total, 2 running, 64 sleeping, 0 stopped, 0 zombie Cpu(s): 27.3% us, 0.0% sy, 0.0% ni, 72.0% id, 0.7% wa, 0.0% hi, 0.0% si Mem: 2058848k total, 2037140k used, 21708k free, 176904k buffers Swap: 2008116k total, 168k used, 2007948k free, 618380k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5501 sdb 25 0 570m 202m 18m S 26.3 10.1 1076:22 kernel 5579 root 19 0 2107m 729m 33m S 1.0 36.3 188:28.30 java 4814 root 16 0 30336 2360 1832 R 0.3 0.1 0:00.04 sshd 1 root 16 0 2560 556 472 S 0.0 0.0 0:00.20 init 2 root 34 19 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/0 3 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/0 4 root 19 -5 0 0 0 S 0.0 0.0 0:00.00 khelper 5 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread 7 root 10 -5 0 0 0 S 0.0 0.0 0:01.20 kblockd/0 10 root 15 0 0 0 0 S 0.0 0.0 0:00.00 khubd 75 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0 74 root 15 0 0 0 0 S 0.0 0.0 0:17.43 kswapd0 660 root 15 0 0 0 0 S 0.0 0.0 0:00.00 kseriod 716 root 16 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0 720 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 ata/0 737 root 15 0 0 0 0 S 0.0 0.0 0:12.73 kjournald 788 root 21 -4 2560 512 420 S 0.0 0.0 0:00.01 udevd 4944 root 15 0 5024 824 596 S 0.0 0.0 0:00.01 syslog-ng 5357 root 16 0 17124 1772 1396 S 0.0 0.1 0:00.00 sshd 5370 root 16 0 56260 3704 2420 S 0.0 0.2 0:03.88 apache2 5437 ntp 16 0 15848 4656 3548 S 0.0 0.2 0:00.10 ntpd 5473 root 16 0 8956 788 644 S 0.0 0.0 0:00.04 cron 5483 apache 15 0 56120 3512 2236 S 0.0 0.2 0:00.00 apache2 5490 sdb 15 0 16992 1772 1476 S 0.0 0.1 0:00.27 vserver 5491 sdb 20 0 16992 1708 1416 S 0.0 0.1 0:00.00 vserver 5496 sdb 16 0 49444 7232 5928 S 0.0 0.4 0:00.74 kernel 5566 root 18 0 8736 1300 1076 S 0.0 0.1 0:00.00 run.sh top - 17:40:39 up 3 days, 10 min, 1 user, load average: 0.55, 0.65, 0.65 Tasks: 66 total, 2 running, 64 sleeping, 0 stopped, 0 zombie Cpu(s): 95.0% us, 0.3% sy, 0.0% ni, 4.7% id, 0.0% wa, 0.0% hi, 0.0% si Mem: 2058848k total, 2037264k used, 21584k free, 176908k buffers Swap: 2008116k total, 168k used, 2007948k free, 618448k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5501 sdb 25 0 570m 202m 18m S 83.6 10.1 1076:44 kernel 5579 root 19 0 2107m 729m 33m S 10.7 36.3 188:29.79 java 3738 sdb 15 0 23660 2056 1628 S 0.3 0.1 0:00.15 vserver 1 root 16 0 2560 556 472 S 0.0 0.0 0:00.20 init 2 root 34 19 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/0 3 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/0 4 root 19 -5 0 0 0 S 0.0 0.0 0:00.00 khelper 5 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread 7 root 10 -5 0 0 0 S 0.0 0.0 0:01.20
View Replies!
View Related
Access RAM Memory & CPU Usage By User Files
I don't really now how this can be done, but as far as I can remember when I was in shared hosting, they always complaint about memory usage.... but they always know what specific files were cosing the most load on the server. So, I remember I have this count.php file that was constantly hited and the complaint and tell me exactly what file it was cosing the heavy load. This is just an example, but looks like they always knew the specific files that were cosing problems, so what the hell, this can be done! Now that I have my own server I would like to know these things as well, so I can know what files need to be optimized. I searched and searched and searched and... OK, you'll get the point, and I just HAVE NOT find any information on this. Can someone tell me this "secret"? What do you use to get the files that are cosing the most heavy load on a Linux server?
View Replies!
View Related
CPanel Server, High CPU Usage From PHP
I just moved from a P4 Dual Core (2mb cache) to a Dual Xeon (512k cache) and everything has gone to sh*t. I had the server optimized/security hardened (for the most part) and last night, I had a RAM upgrade to 4GB. As soon as the server came back up after the upgrade, CPU usage was into the mid hundreds. RAM usage is fine.... Presently, I'm showing PHP using a ton of CPU. I tweaked mysql a little bit, and that helped slightly. Also, last night, I had the DC run diagnostics on the RAM and hard drive. Both check out OK. Here's the specs: 2x Intel Xeon 2.80GHz 4GB RAM cPanel CENTOS Enterprise 5.2 i686 PHP 5.x MySQL 5.x Exim When viewing TOP or status in WHM, php scripts use the most CPU. With average CPU load around 60+
View Replies!
View Related
MySQL High CPU Usage Put On RAM
I need some help my CPU (Intel Core 2 Duo 1.7 Ghz) always gets high usage from mysql sometimes its using 95% cpu etc... How can I modify my.cnf to use less CPU and more ram since I have 3gb ram installed? here is my.cnf Code: [mysqld] back_log = 5 skip-innodb max_connections = 400 key_buffer = 190M myisam_sort_buffer_size = 156M join_buffer_size = 4M read_buffer_size = 4M sort_buffer_size = 5M table_cache = 1024 record_buffer = 1024 thread_concurrency = 2 long_query_time = 1 thread_cache = 1024 thread_cache_size = 992025 wait_timeout = 13 connect_timeout = 5 tmp_table_size = 64M max_heap_table_size = 16M max_allowed_packet = 16M max_connect_errors = 500 read_rnd_buffer_size = 1024 bulk_insert_buffer_size = 32M query_cache_limit = 1M query_cache_size = 64M query_cache_type = 1 query_prealloc_size = 163840 query_alloc_block_size = 32768 low_priority_updates=1 default-storage-engine = MyISAM [mysqld_safe] nice = -2 open_files_limit = 4096 [mysqldump] quick max_allowed_packet = 16M [myisamchk] key_buffer = 64M sort_buffer = 64M read_buffer = 32M write_buffer = 32M
View Replies!
View Related
Upgraded Network Port And Now CPU Usage Is Sky High
Today I upgraded my dual opteron dedicated server from a 10mbps port to 100mbps. While the number of apache access have dropped by about a quarter my CPU usage has increased also by about a quarter, my CPU is touching on 95-100% now. What’s most likely to be the cause? What’s also interesting is my network port is only showing 20mbps usage, nowhere near the 100mbps its been upgraded to.
View Replies!
View Related
Limiting User Activity
I am interested in setup user activity limits to avoid peaks on the server load, I have readen a lot about PAM and limits.conf but still have no idea on how set this limits. Most of the examples are similar to this page http://www.seifried.org/lasg/users/ but they are still confusing to me >> I would like to setup rules like this: Customers may not use more than 2% CPU daily, 3% memory daily, run more than 10 simultaneous processes per user, allow any process to run for longer than 30 CPU seconds, run any process that consumes more than 20% of available CPU at any time, or run any process that consumes more than 16 MB of memory.
View Replies!
View Related
High Apache CPU Load
I've search around quite a bit, but I can't seem to find a clear answer. I've turned on mod_status, and on the status page, I'm worried Apache is being overworked. Code: CPU Usage: u334.883 s94.5703 cu177.422 cs0 - 43.3% CPU load 54.1 requests/sec - 181.5 kB/second - 3435 B/request 178 requests currently being processed, 52 idle workers __RKKK__K___KW_CKCKC_KC_KCK_KKCCK_K_KKWCKCCKCWKKKCRCKKKK._K_C__K KK_K__K_K_KK_C_KKKKK_KKW.KRCKWKKW_CCKWKRK..___KKCKKKKKKKR_KKKW.W _KK_____RKRC.KKCKCCRK__CK._KWCK_KKRCCK.C__CR.CWCCKCRKK.RR.K_CR_K C_KW._._K.K..KKK_KRCCKWKK__..R.CRWCKK.KCK.K.KK_K....._...KK..... ......KC.CK...C...CK......W........C............................ ................................................................ ................................................................ ................................................................ At the time I took this particular snapshot, it's not near its peak... it's not uncommon for the CPU load approach 60%. Reading around, it seems the CPU load should normally be under 1% (such as 0.0139% or what-not). Is this true? The weird thing though... I have no idea where that number is coming from, because according to "top", the CPU is actually 90% idle. Here is my Apache MPM settings: Code: ServerLimit 512 <IfModule mpm_prefork_module> StartServers 10 MinSpareServers 15 MaxSpareServers 50 MaxClients 1024 MaxRequestsPerChild 0 </IfModule> I actually just raised the MaxClients from 512 to 1024 because I was hitting a constant cap of 40 requests/sec... and I was worried it was going to bottleneck. When I raised that value, the max requests per second now seem to be freed up. If the actual CPU of the server is 90% idle... am I okay? Anyone know where Apache's getting the CPU Load info from?
View Replies!
View Related
Lighttpd - 95% Cpu Usage. Apache - All Ram Used, Swap Comes In
I've hired *name* to take care of my server, but it's just getting so frustrating, as it seems they can't fix my server/optimize it correctly. I just want some input as to what the problem is here. I got them to install lighttpd along with xcache. After about 15-18 hours, the server's CPU slowly increases to be using 90-90%, giving me the 500 Internal Server Error. I've asked them to optimize xcache and lighttpd, but I keep getting these responses: Quote: The should be pretty optimized. Xcache has limited optimization features. Quote: Lighttpd itself is pretty optimized, the problem is php. Php runs as its own binary and theres not many parameters that can be tweaked. Is that even correct? ------------------------- So I got them to enable apache, and disable lighttpd. This time, it's the other way around. My ram get's completely used up, forcing the server to use Swap; making the load shoot to 50+. CPU usage is fine the entire way. ------------------------- This has been going back and forth, enabling/disabling lighttpd and re-enabling apache but a problem always comes up each time. Am I asking for too much? Server specs; Intel C2D E6400 4GB Ram There is only one IPB board on this server - nothing else. Average users is 70-200 users within 15 minutes. This is what I'm getting when lighttpd is on: Code: top - 22:56:02 up 18:46, 1 user, load average: 23.38, 22.84, 22.44 Tasks: 117 total, 17 running, 100 sleeping, 0 stopped, 0 zombie Cpu(s): 95.0%us, 4.3%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.2%hi, 0.5%si, 0.0%st Mem: 4147196k total, 1346888k used, 2800308k free, 203144k buffers Swap: 2907756k total, 0k used, 2907756k free, 712584k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2401 mysql 15 0 318m 107m 3868 S 44 2.6 49:02.02 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --datadir=/var/lib 3279 root 15 0 27712 15m 2900 S 12 0.4 10:33.81 /usr/local/lighttpd/bin/php-cgi 3272 root 16 0 29752 16m 2908 R 11 0.4 10:15.94 /usr/local/lighttpd/bin/php-cgi 3266 root 15 0 27536 14m 2920 S 11 0.4 10:40.14 /usr/local/lighttpd/bin/php-cgi 3270 root 16 0 27624 14m 2908 R 11 0.4 10:36.71 /usr/local/lighttpd/bin/php-cgi 3267 root 16 0 27796 14m 2972 R 10 0.4 10:35.22 /usr/local/lighttpd/bin/php-cgi 3268 root 15 0 28148 15m 3112 S 10 0.4 10:49.86 /usr/local/lighttpd/bin/php-cgi 3276 root 16 0 27696 15m 2900 R 10 0.4 10:29.73 /usr/local/lighttpd/bin/php-cgi 3269 root 16 0 28312 15m 2916 R 10 0.4 10:23.57 /usr/local/lighttpd/bin/php-cgi 3274 root 16 0 27924 15m 2912 R 10 0.4 10:44.51 /usr/local/lighttpd/bin/php-cgi 3275 root 16 0 29368 16m 2928 R 9 0.4 10:41.84 /usr/local/lighttpd/bin/php-cgi 3278 root 15 0 29432 16m 2876 S 9 0.4 10:28.52 /usr/local/lighttpd/bin/php-cgi 3271 root 16 0 26784 14m 2900 R 9 0.3 10:41.61 /usr/local/lighttpd/bin/php-cgi 3277 root 16 0 27156 14m 2928 R 9 0.4 10:31.07 /usr/local/lighttpd/bin/php-cgi 3265 root 15 0 28408 15m 2880 S 8 0.4 10:46.89 /usr/local/lighttpd/bin/php-cgi 3280 root 16 0 27036 14m 2880 R 8 0.3 10:43.20 /usr/local/lighttpd/bin/php-cgi 3273 root 15 0 24676 12m 2952 R 8 0.3 10:43.57 /usr/local/lighttpd/bin/php-cgi 3262 root 15 0 13356 11m 632 R 3 0.3 3:04.27 /usr/local/lighttpd/sbin/lighttpd -f /etc/lighttpd.conf 1 root 15 0 2032 648 552 S 0 0.0 0:00.36 init [3] 2 root RT 0 0 0 0 S 0 0.0 0:00.00 [migration/0] 3 root 34 19 0 0 0 R 0 0.0 0:00.00 [ksoftirqd/0] 4 root RT 0 0 0 0 S 0 0.0 0:00.00 [watchdog/0] 5 root RT 0 0 0 0 S 0 0.0 0:00.00 [migration/1] 6 root 34 19 0 0 0 S 0 0.0 0:00.00 [ksoftirqd/1] 7 root RT 0 0 0 0 S 0 0.0 0:00.00 [watchdog/1] 8 root 10 -5 0 0 0 S 0 0.0 0:00.00 [events/0] 9 root 10 -5 0 0 0 S 0 0.0 0:00.00 [events/1] 10 root 10 -5 0 0 0 S 0 0.0 0:00.00 [khelper] 11 root 11 -5 0 0 0 S 0 0.0 0:00.00 [kthread] 15 root 10 -5 0 0 0 S 0 0.0 0:00.00 [kblockd/0] 16 root 10 -5 0 0 0 S 0 0.0 0:00.00 [kblockd/1]
View Replies!
View Related
Apache 2.2.8 & High CPU Load
if anyone has had problems with high cpu load after upgrading APACHE to 2.2.8. We were running 1.3.5 with comfortable CPU loads of 2-10 on dual Xeon 2.8's. Now the loads are 20-70 with most of the CPU being used by many many httpd processes. I've heard that APACHE v2 does consume more resources, but am wondering if there was a problem with the build, or is it that much more demanding. OTHER INFO: WHM:11.15 CPANEL: 11.18 OS: CENTOS 4.6 KERNAL: 2.6.20.4-ts.grh.mh.i386
View Replies!
View Related
Apache Utlizing High CPU & Server Get Hangs Often
We have flash files site hosted on dedicated server in that Apache is utilizing the more CPU. When the server reached more than 1000 connections server get down automatically. Hard Server Limit : 2048 MaxClients : 2000 Please find below the TOP status. 8450 nobody 16 0 19 0:20.52 1.2 39404 23m 3008 R httpd 3242 nobody 15 0 16 1:07.17 1.2 39696 24m 3032 S httpd 9492 nobody 16 0 12 0:00.39 0.7 29616 14m 3000 R httpd 3372 nobody 15 0 12 1:23.31 0.5 24864 9992 3036 S httpd 9477 nobody 15 0 11 0:00.88 0.5 24692 9784 3000 S httpd 9021 nobody 15 0 10 0:01.69 1.2 39660 24m 2996 S httpd 3240 nobody 15 0 10 1:39.71 1.2 39664 24m 3420 R httpd 4141 nobody 16 0 10 1:30.65 1.2 39792 24m 3032 R httpd 5458 nobody 15 0 10 1:04.21 0.5 24720 9824 3012 S httpd 9466 nobody 15 0 10 0:00.96 0.5 24672 9764 3000 S httpd 9478 nobody 15 0 10 0:00.98 0.5 24676 9764 2996 S httpd 3354 nobody 16 0 10 1:23.78 0.5 25132 9m 3044 R httpd 3361 nobody 15 0 10 1:21.61 0.5 24864 10m 3576 S httpd 5451 nobody 16 0 10 1:09.14 1.2 39664 23m 3036 R httpd 5457 nobody 15 0 10 1:12.76 1.2 39664 24m 3556 S httpd 9444 nobody 16 0 10 0:01.72 1.2 39656 24m 2996 R httpd 9481 nobody 15 0 10 0:00.65 1.2 39652 24m 3000 R httpd 3338 nobody 16 0 9 1:32.72 1.2 39256 23m 3036 R httpd 3360 nobody 15 0 9 1:44.38 1.2 39772 24m 3440 R httpd 4142 nobody 15 0 9 1:40.64 1.2 39760 24m 3440 S httpd 9493 nobody 15 0 9 0:01.25 0.5 24704 9796 3024 S httpd 9504 nobody 15 0 9 0:00.29 0.5 24688 9744 2984 S httpd 3305 nobody 16 0 9 1:08.11 1.2 39404 23m 3012 R httpd 3359 nobody 15 0 9 0:47.17 0.5 24812 9936 3032 S httpd 3363 nobody 16 0 9 1:44.42 1.2 39432 23m 3044 R httpd 5450 nobody 15 0 9 1:18.81 0.5 24900 9996 3032 S httpd 9486 nobody 16 0 9 0:00.59 1.2 39664 23m 2996 R httpd 3358 nobody 16 0 9 1:46.50 1.2 39520 24m 3452 R httpd 9096 nobody 16 0 9 0:07.87 1.1 38612 23m 3004 R httpd 3370 nobody 16 0 8 1:32.55 1.2 39200 23m 3012 R httpd 8515 nobody 16 0 8 0:12.52 1.2 39404 23m 3024 R httpd 9445 nobody 16 0 8 0:02.70 1.2 39404 23m 3000 R httpd Apache Compailed with following modules. ./configure' '--disable-pdo' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-sockets' '--prefix=/usr/local' '--with-apxs=/usr/local/apache/bin/apxs' '--with-curl=/opt/curl/' '--with-freetype-dir=/usr' '--with-gd' '--with-jpeg-dir=/usr' '--with-libxml-dir=/opt/xml2/' '--with-mhash=/opt/mhash/' '--with-mysql' '--with-png-dir=/usr' '--with-ttf' '--with-xpm-dir=/usr/X11R6' '--with-zlib' '--with-zlib-dir=/usr' Apache : 2.2.8 PHP : 5.2.4 MySQL : 4.1.1 RAM : 2 GB CPU : Intel(R) Xeon(R) Cpanel Installed
View Replies!
View Related
Apachetop / Munin / Nagios - Best Way To View Apache + Other Service Activity
On Cpanel/WHM. I have just moved from a VPS to a dedicated server. I reinstalled munin, so get some stats via that. I used to have apachetop loaded on my VPS for when I wanted a 'near realtime' streaming view of apache access. I'm wondering what the best solution is to get a good view of apache, like what apachetop did, plus also it would be nice to have a real-time monitor of MySQL activity, HDD activity (such as I/O queues, etc. Something along the lines of the perfmon on Windows servers. What is my best option? Also, with Nagios, when I look at the website, it seems there are two options. Load it on a single server and then load the stats via [url]or have the Nagios 'stat collector' on one machine, and have it gathering stats from multiple machines. If you only install it on a single dedicated server, do you really have to be on the console and connect to the Nagios stats via localhost, rather than connecting remotely? Ideally, I would like a quick, easy to setup solution, but if it takes some configuring, I can deal with it, as long as there is some documentation. My main goal is to get the real time type monitoring, you get with window's perfmon.
View Replies!
View Related
Cpu Usage... Is It The Same As Cpu Cycles- And Any Good Webhost Monitoring Sites
I'm trying to write an article about webhosting. I've completed most of the article but there are some points I still can't figure out. a) I'm actually confused about this: is limiting of cpu usage the same as limiting cpu cycles or even cpu throttling? I see these terms mentioned everywhere but they're all quite confusing. b) And also, where can I find good sites for tracking webhost uptime and with some comprehensive data? I've only found this comprehensive site so far but have failed to find any others: [url] And any other sites I found have been mediocre.
View Replies!
View Related
Running Perl Script On Cron
I tried using this perl script which supposedly restarts apache when server load reaches 5 and above Code: #!/usr/bin/perl -w #use strict; $|++; open(LOAD,"/proc/loadavg") || die "couldn't open /proc/loadavg: $! "; my @load=split(/ /,<LOAD>); close(LOAD); if ($load[0] > 5) { `/sbin/service httpd restart`; } and placed it in /usr/local/script/loadavg.pl and chmod to 755 and added this to my crontab */1 * * * * root /usr/local/script/loadavg.pl my server load went up to 20 and waited if it will automatically go down via the script but it seems it's not working. I had to restart apache manually.
View Replies!
View Related
Installed Imagemagick Perl Module But Its Not Running
I have installed image::magick perl module but its not running error is :-- Can't load '/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Image/Magick/Magick.so' for module Image::Magick: libMagickCore.so.1: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230. at flickr.pl line 55 Compilation failed in require at flickr.pl line 55. BEGIN failed--compilation aborted at flickr.pl line 55.
View Replies!
View Related
Blocking Perl In User Accounts
I would like to dissable from executing perl scripts on user accounts. For example,now user can upload perl script for example with name script.pl: Code: #!/usr/bin/perl -w print "Hello World!"; I would like to block it via mod_security - I don't want to allow running perl scripts with .pl extension at all. Is it possible for Apache 1.x?
View Replies!
View Related
Server High Load/high Mysql Usage
I have a site that is eating up my server resources and need to know what the best solution for this is. I'm thinking of getting another server just for mysql but do not know what specs the server should be to handle the current traffic/database load and have the site run smoothly without slowing down to a snail's pace. An alternative is to get another server just for the videos being served and leave the database and html on the current server. This is where I'm stuck and don't know what route to take with this. My current server stats: Dual Xeon 5130 4GB RAM 250GB 50 Mbit/sec CentOS 3.9 Website traffic stats: 15,000 visitors/day 150,000 pageviews/day Serving videos I've attached screenshots of top and bandwidth usage per day. Hopefully with this information you could tell me if I need another server or if there are any things I can do to the current server to help things move faster.
View Replies!
View Related
Perl Install Constantly Fails With Out Of Memory, But Nothing's Running
an inexpensive VPS host and based on reviews on this forum, went with Web Wide Hosting. I had a smooth signup and thanks to Jon at WWH, managed to get a payment snafu with Paypal resolved smoothly. However, I've been struggling a lot with getting most recommended steps to actually work in my VPS and I'm getting increasingly frustrated. The latest problem I have is that trying to install Perl modules fails with a "cannot allocate memory" error. First google hits suggest increasing memory, which really isn't an option for me right now. More puzzling is the fact that both HyperVM and user_beancounters suggest I have enough headroom atleast to install perl modules! Output from session: cpan> install Authen::PAM CPAN: Storable loaded ok Going to read /root/.cpan/sources/authors/01mailrc.txt.gz Going to read /root/.cpan/sources/modules/02packages.details.txt.gz Database was generated on Mon, 11 Aug 2008 07:02:52 GMT HTTP::Date not available There's a new CPAN.pm version (v1.9205) available! [Current version is v1.7602] You might want to try install Bundle::CPAN reload cpan without quitting the current session. It should be a seamless upgrade while we are running... Going to read /root/.cpan/sources/modules/03modlist.data.gz Could not pipe[/bin/gzip --decompress --stdout /root/.cpan/sources/modules/03modlist.data.gz |]: Cannot allocate memory at /usr/lib/perl5/5.8.8/CPAN.pm line 5726. # cat /proc/user_beancounters Version: 2.5 uid resource held maxheld barrier limit failcnt 6050: kmemsize 2383965 4269136 2147483646 2147483646 0 lockedpages 0 0 99 99 0 privvmpages 6418 26175 25600 25600 38 shmpages 685 1981 25600 25600 0 dummy 0 0 0 0 0 numproc 22 38 99 99 0 physpages 3147 22279 0 2147483647 0 vmguarpages 0 0 25600 2147483647 0 oomguarpages 3147 22279 25600 2147483647 0 numtcpsock 5 42 792 792 0 numflock 3 9 99 99 0 numpty 1 3 50 50 0 numsiginfo 0 3 99 99 0 tcpsndbuf 55900 411424 20971520 24215552 0 tcprcvbuf 81920 4136784 20971520 24215552 0 othersockbuf 2236 11744 20971520 24215552 0 dgramrcvbuf 0 8380 20971520 24215552 0 numothersock 9 20 792 792 0 dcachesize 113634 194947 912384 912384 0 numfile 495 856 2376 2376 0 dummy 0 0 0 0 0 dummy 0 0 0 0 0 dummy 0 0 0 0 0 numiptent 14 14 99 99 0 Not even getting started on the problems I'm having trying to mount /tmp as a noexec,nosuid partition
View Replies!
View Related
High CPU Load But No High Process
I have extremely high CPU load average, but when I run TOP command there are not any process with high CPU CPU load averages: 211.65 (1 min) 227.29 (5 mins) 247.89 (15 mins) Tasks: 364 total, 2 running, 360 sleeping, 2 stopped, 0 zombie Cpu(s): 0.0%us, 0.3%sy, 0.0%ni, 0.0%id, 99.7%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2065460k total, 2012372k used, 53088k free, 60964k buffers Swap: 2040212k total, 3280k used, 2036932k free, 619900k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 19871 root 15 0 4944 2488 1656 R 1 0.1 0:02.73 top 1 root 15 0 4208 1320 1136 S 0 0.1 0:01.55 init 2 root RT 0 0 0 0 S 0 0.0 0:00.00 migration/0 3 root 34 19 0 0 0 S 0 0.0 0:01.77 ksoftirqd/0 4 root RT 0 0 0 0 S 0 0.0 0:00.01 migration/1 5 root 34 19 0 0 0 S 0 0.0 0:01.16 ksoftirqd/1 6 root 10 -5 0 0 0 S 0 0.0 0:01.04 events/0 7 root 10 -5 0 0 0 S 0 0.0 0:00.65 events/1 8 root 10 -5 0 0 0 S 0 0.0 0:00.00 khelper 9 root 11 -5 0 0 0 S 0 0.0 0:00.00 kthread 35 root 10 -5 0 0 0 S 0 0.0 0:00.15 kblockd/0 36 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/1 37 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpid 127 root 10 -5 0 0 0 S 0 0.0 0:13.16 ata/0 128 root 16 -5 0 0 0 S 0 0.0 0:00.00 ata/1 129 root 10 -5 0 0 0 D 0 0.0 0:01.15 ata_aux 130 root 10 -5 0 0 0 S 0 0.0 0:00.00 kseriod 158 root 16 0 0 0 0 S 0 0.0 0:00.00 pdflush 159 root 15 0 0 0 0 D 0 0.0 0:01.00 pdflush 160 root 10 -5 0 0 0 S 0 0.0 0:10.68 kswapd0 161 root 11 -5 0 0 0 S 0 0.0 0:00.00 aio/0 So my server is "unresponsive" for abour 18 hours, burst net didnt answer my tickets and I dont know what to do. Ive been with this setup for almost 5 months with no problems, No changes have been made to hardware or software. Im using Centos 5.0
View Replies!
View Related
Httpd Running Under User Nobody
I have read that running httpd under user nobody is not safe at all so I installed mod_suhosin and suphp but still the httpd is running under user nobody. Could anyone suggest me how to check if they are installed good and are they working? I don't know why is this happening
View Replies!
View Related
Spamd - Still Running As Root: User Not Specified With
I am pretty sure that the following entries in the logs are not good and I would like to resolve this issue. I have been reading on Google for several hours straight looking for answers and have come up short. [/var/log]# grep -i -C4 failed maillog | tail -18 Jul 29 10:12:29 bamboo spamd[31310]: spamd: setuid to root succeeded Jul 29 10:12:29 bamboo spamd[31310]: spamd: still running as root: user not specified with -u, not found, or set to root, falling back to nobody Jul 29 10:12:29 bamboo spamd[31310]: spamd: processing message <GTUBE1.1010101@example.net> for root:99 Jul 29 10:12:29 bamboo spamd[31310]: auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile /.spamassassin/auto-whitelist.lock.bamboo.site.com.31310 for /.spamassassin/auto-whitelist.lock: No such file or directory Jul 29 10:12:29 bamboo spamd[31310]: spamd: identified spam (1000.0/5.0) for root:99 in 0.0 seconds, 834 bytes. Jul 29 10:12:29 bamboo spamd[31310]: spamd: result: Y 999 - GTUBE,NO_RECEIVED,NO_RELAYS ....
View Replies!
View Related
Memory Usage :: Running Out Of RAM
I have a VPS with 512 MB ram. I have 6 sites hosted on my VPS, of which 3 contains only static pages. My site is not very traffic heavy. Infact I moved to my VPS only 3 months back, until then it was running on a shared server with no problem. But still, I am always running out of RAM. I have upgraded my account to 512 MB ram from 256MB because of this. Can anyone please tell me how I can find out what is the cause of this excessive memory usage? On rebooting my server, the RAM usage goes down to about 250MB.
View Replies!
View Related
User Nobody Using Too Much Cpu
use "nobody" is using 2much cpu on my server ... can someone explain me how is this possible ? [url] I already have checked "Prevent the user "nobody" from sending out mail to remote addresses (PHP and CGI scripts generally run as nobody if you are not using PHPSuexec and Suexec respectively.)" In tweak settings.
View Replies!
View Related
Why User Root Is Running Process Httpd All Time
I usually use the "top" command to see what is happening in my server ... Normally everything is OK untill one week ago I start so see this process: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1115 root 20 0 10768 10m 164 R 26 0.5 46:17.27 httpd Is the number 1 on the top list using a lot of CPU and MEM (as I say before ... I never have seen this command in the past) So when I kill the process everything goes fine but only for a few minutes and then is comming back
View Replies!
View Related
CPU Usage
I have been using Blue Host for years, but recently they kept suspending my account due to performance problem. I was only running a php forum (phpBB3) and a Wordpress blog. They kept mentioning it is not problem with space/bandwidth, but issues with "Running application causing high load", and the mysql queries from phpBB3 are taking too long. Now I am planning to add a Ruby on Rails application. I am sure it will cost more CPU usage. What should I do? Will a move to VPS hosting solve my problem?
View Replies!
View Related
How To Limit Bandwidth Usage Per User Per Day
I run 10+ sites on my dedicated server.In last 7 days one of them used over 1.7 TB of bandwidth. I can't suspend that domain because it's mine. I can't ban the IP of those who use considerable amount of bandwidth because they are a lot. So i think about software/mod/whatever else that limit bandwidth usage per user(IP) per day! is there any one who has experience about this situation?
View Replies!
View Related
Wordpress CPU Usage
For some reason, one of my clients wordpress blog is using 100% cpu on a php process per page load. To clarify, the first time you load the page it is very slow, and uses 100% cpu for the PHP process and then if you reload the page (while it is going slow) it loads very fast. After that is done the normal PHP usage per page load is roughly 1-4% if that. I'm guessing something in the coding is looping, but I am unsure. What I do know is 100% cpu usage for one page view initially is insane. Does anyone have any ideas on how to fix/resolve this issue?
View Replies!
View Related
Best Host That Allows Best % Of Cpu Usage
Which host company you think is the best in terms of allowing a good % of the cpu on shared plan, so far i have found the following bluehost not exceed %50 for more than 30 Sec. hostgator %25 for 60 Sec. webhostingpad %10 for 30 Sec. what is the % of cpu allowed on your host?
View Replies!
View Related
Cpu Usage - When To Upgrade
right time to upgrade your web server in regards to CPU Usage? Is there any point that you can determine CPU processing is not good enough to handle the requests. IE - If you see the CPU spiking to 100% time to time, is this a good sign to think about upgrading? Heres a screenshot of my current webserver CPU usage, does this look really bad? [url]
View Replies!
View Related
CPU Time Usage
I'm just wondering what exactly "CPU Time" is, I have searched Google and checked Wikipedia but still do not really understand. The main reason this is bugging me is that MySQL on our database server seems to have a very high "CPU Time" usage. This is the top part of the output from "top", with MySQL shown: Code: [mike@mysql1 ~]$ top top - 20:26:05 up 222 days, 16:14, 1 user, load average: 2.04, 2.90, 2.36 Tasks: 95 total, 1 running, 94 sleeping, 0 stopped, 0 zombie Cpu(s): 27.1%us, 12.1%sy, 0.0%ni, 60.2%id, 0.3%wa, 0.0%hi, 0.2%si, 0.0%st Mem: 2074276k total, 1990828k used, 83448k free, 163012k buffers Swap: 4192956k total, 60k used, 4192896k free, 1410448k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 26826 mysql 25 0 483m 324m 5504 S 238 16.0 363300:21 mysqld 1 root 15 0 2064 592 508 S 0 0.0 0:01.24 init 2 root RT -5 0 0 0 S 0 0.0 1:13.13 migration/0 3 root 36 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0 4 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/0 5 root RT -5 0 0 0 S 0 0.0 0:01.17 migration/1 6 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/1 7 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/1 8 root RT -5 0 0 0 S 0 0.0 5:34.93 migration/2 9 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/2
View Replies!
View Related
CPU Usage 90% And Over In A VPS
i checked the CPU usage on my vpc tru Plesk and Remote control, bouth stating i got high CPU usage around 89% 90% TO 96% up and down, no program is using the resources they are all in 0% in the process tab, but when you check the Performance it stats 95%, i dont understand what is going on, it's a windows O/S ,vps
View Replies!
View Related
VPS CPU Usage
When I remote into my Windows VPS, Task Manager shows 80% CPU usage on the Performance tab, however, if I look at the running tasks, there's hardly any CPU usage. Is Task Manager including CPU usage from all other VPS's on the box?
View Replies!
View Related
We're Exceeding CPU Usage
Some friends and I have started a Movie Site at [url]. We currently are averaging around 14,000 Unique Visitors per month. We run wordpress with several plugins, a flash player for podcasts and an image rotator. We have lots of bandwidth and don't have a problem there but we have a big problem with CPU usage. If we enable the WP and Super Cache plugin then the site pretty much instantly gets the Exceeding CPU Usage. We are considering switching hosts (we are currently with HostMonster) but I am unsure of who to switch to. With only 14,000 Unique visitors we won't make much at all in advertising and since this is a hobby most of us are unable to put large amounts of cash into hosting. here is the error page but I'm sure you all have seen it before... This Account Has Exceeded Its CPU Quota Please contact this site's webmaster. Wait a few minutes and use your browser's "Back" button or click here to try again. If you are the webmaster, your account may have gotten this error for one or more of the following reasons: * Your account has used more than its share of the cpu in the past 60 second sliding window. * Your account has too many concurrent processes running simultanously. * Your account has consumed too much memory. * Your site was recently very busy trying to run inefficient scripts. The solution would be to optimize your applications to use less CPU. Adding appropriate indeces to your SQL tables can often help reduce CPU. Using static .html documents instead of painful .php scripts will practically eliminate CPU usage.
View Replies!
View Related
CPU Usage Check
Few days ago I had a problem with my httpd. I finally nailed it down and came on a conclusion that my MaxClients were set too low so I had to set it to high number and it seems like that the proble of "Network Timeout" had been resolved but now the problem is still continued. Here is what I think is wrong Cpu(s): 1.5%us, 0.4%sy, 0.0%ni, 96.7%id, 0.3%wa, 0.3%hi, 0.8%si, 0.0%st The 96.7%id always stays above 90% is that bad and how do i fix it?
View Replies!
View Related
CPU Usage (PHP)
For about a couple of days (no configs were changed) I am experiencing high cpu usage from time to time. At this moment and what I can see is this: Sites are using low cpu resources, top process is mysql + 1-2 php defuncts replacing each other, after that - httpd requests Something happens and php are starting to use more cpu thant it should. Cpu top usage shows all php files in all accounts replacing each other (index files, scripts there are like wordpress, forums, etc). Server crashes... Or I kill all php processes, restart apache and it goes back to normal mode again. I had the same issue months ago, just cpu usage was even more agressive and much often. After days of checking, I've found that it was Curl and/or Curlwrappers which were cauisng that. After recompiled apache without them (left curlssl only), cpu load was always stable.
View Replies!
View Related
How Can I Reduce My CPU Usage
Last year my web host stated that my site was over utilizing allowed resources for my plan. Specifically, they state that I was overusing the CPU. At the time, I had to upgrade my plan in order to stay online. I would like to move to a new host, but the prospective hosts are all suggesting a dedicated server because of my CPU usage. I don't want to pay that kind of money, so I would really like to curb the CPU problem. Does anyone know how to reduce the CPU of a Wordpress blog? I tried posting this question over at Wordpress.org, but I haven't received a single reply.
View Replies!
View Related
ASAP With CPU Usage
My host is going to shut my sites down in 24 hrs if I dont resolve a CPU issue. I went from using an average of 0.90 CPU to over 23.50 CPU? And my sites havent gotten any new traffic? I must be under attack some how. What can I do to resolve the issue? If I dont fix this they will shut my sites down.
View Replies!
View Related
|