tenaki Posted August 9, 2011 Posted August 9, 2011 I seem to be never free of high traffic and cpu usage to the point that at this very moment in time my VPS is stallingTotal Traffic Used 57.7 GB (Thats my limit although it says no limit the indicator is full)CPU Usage Used 122.0 % (0.0 % of 100.0 % available) OuchDisk Space Used 6.5 GB (8.5 GB of 15.0 GB available)Memory Usage Used 303.4 MB (208.6 MB of 512.0 MB available) Plesk VPS CPU GenuineIntel, Intel® Xeon®CPU E5504 @ 2.00GHz Version psa v8.6.0 os_CentOS 5 OS Linux 2.6.18- Where should I look to start find out whats eating into the first 2?
Royzee Posted August 9, 2011 Posted August 9, 2011 Your RAM is probably insufficient. My forum when not busy is using well over 500MB, and you only have 512 to begin with. Other than that, the CPU Usage is qute high, especially with a quad core processor. My guess is you have too small a package. Won't mention the name as against the rules (you can PM me) but for $40 I have: 2048MB Ram (4096 burst) 120GB Hard drive Quad core @ 2.67GHz CentOS 5 64bit It is unmanaged but not hard to setup. I prefer unmanaged because I can add, or change, whatever I want.
Rheddy Posted August 9, 2011 Posted August 9, 2011 Is that a single core CPU or dual core? I know I had similar problems but my webhost upgraded the server from 2 cores to 4 cores and I saw a big boost in speed and it knocked my CPU speed down ... a huge decrease in server loads.
Gary. Posted August 11, 2011 Posted August 11, 2011 First thing you want to find out is the CPU and see what is generating the load. In SSH type top then hit enter key,top The window willshow all the processes and high ones, See what location is using the most / usr/bin/php and paste it back, When you copied it, Also copy the memory output, So in SSH the window you have is "top" Click the window, The press CTRL + Mctrl +m This will re-order things and show the processes by memory so what ever is using the most will show up at the top. Make sure it's not your mysql causing the issue, Has it been optimized ? In SSH, press Q, This will put you back to the default location, Now type in:wget mysqltuner.pl This will download a mysql tuner and show you changes what you need to make to optimize it: Now once it's downloaded you need to run this, You can do that by typing in:perl mysqltuner.pl Let it run, And post the entire output in here, Once done I can give you everything based on what the output is of everything I asked. Thanks. Gary.
tenaki Posted August 12, 2011 Author Posted August 12, 2011 Hi I managed the first bit Tasks: 44 total, 1 running, 43 sleeping, 0 stopped, 0 zombie Cpu(s): 2.1%us, 0.6%sy, 0.0%ni, 97.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 524288k total, 324176k used, 200112k free, 0k buffers Swap: 0k total, 0k used, 0k free, 0k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 10179 apache 15 0 319m 44m 4244 S 9.0 8.7 0:02.60 httpd 10104 apache 15 0 316m 42m 4264 S 6.7 8.2 0:04.63 httpd 1571 mysql 15 0 367m 38m 5896 S 3.0 7.5 211:00.36 mysqld 10126 admin 15 0 12624 1208 936 R 0.3 0.2 0:00.18 top 1 root 15 0 10364 752 628 S 0.0 0.1 0:02.93 init 1123 root 15 -4 12620 680 360 S 0.0 0.1 0:00.00 udevd 1438 named 18 0 220m 4264 1916 S 0.0 0.8 0:00.28 named 1460 root 15 0 151m 1952 588 S 0.0 0.4 0:10.98 rsyslogd 1464 root 18 0 3820 420 336 S 0.0 0.1 0:00.00 rklogd 1476 root 15 0 62632 1212 652 S 0.0 0.2 0:14.86 sshd 1489 root 15 0 21660 948 736 S 0.0 0.2 0:02.87 xinetd 1521 root 18 0 11944 1428 1184 S 0.0 0.3 0:00.00 mysqld_safe 1598 root 15 0 40936 948 568 S 0.0 0.2 0:00.00 couriertcpd 1600 root 18 0 33624 1492 1140 S 0.0 0.3 0:00.00 courierlogger 1608 root 15 0 40936 952 568 S 0.0 0.2 0:00.06 couriertcpd 1610 root 18 0 33624 1492 1140 S 0.0 0.3 0:00.04 courierlogger 1616 root 18 0 40936 952 568 S 0.0 0.2 0:00.04 couriertcpd
Recommended Posts
Archived
This topic is now archived and is closed to further replies.