Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-25, 00:47:22

Author Topic: Server Overload  (Read 2862 times)

0 Members and 1 Guest are viewing this topic.

Offline cybaster85

  • Junior Member
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Server Overload
« on: 2015-05-06, 12:51:35 »
Hi All

i encounter a problem a problem while running apache with php54 and suphp-event, one of my domain will overwhelming with many process as below
top - 18:05:34 up 55 min,  1 user,  load average: 145.47, 100.12, 44.70
Tasks: 416 total,   1 running, 414 sleeping,   0 stopped,   1 zombie
Cpu(s):  1.0%us,  2.1%sy,  0.0%ni,  0.0%id, 96.8%wa,  0.0%hi,  0.1%si,  0.0%st
Mem:   1536040k total,  1463220k used,    72820k free,      712k buffers
Swap:  3080188k total,  1060976k used,  2019212k free,    11896k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
   50 root      20   0     0    0    0 S  2.3  0.0   0:04.28 kswapd0
 2038 lxlabs    20   0  395m 5800 1280 D  0.7  0.4   0:03.81 kloxo-phpcgi
10286 dreamzte  20   0  252m 6268 2516 D  0.7  0.4   0:00.60 php-cgi
10525 dreamzte  20   0  248m  10m 2960 S  0.7  0.7   0:00.22 php-cgi
 1728 mysql     20   0 1964m  74m 2488 S  0.3  5.0   0:29.71 mysqld
10103 fashion   20   0  257m 7368 2552 D  0.3  0.5   0:00.70 php-cgi
10281 dreamzte  20   0  252m  10m 2420 D  0.3  0.7   0:00.68 php-cgi
10293 dreamzte  20   0  248m 5308 2432 D  0.3  0.3   0:00.44 php-cgi
10298 dreamzte  20   0  243m 5032 2468 D  0.3  0.3   0:00.38 php-cgi
10308 dreamzte  20   0  194m 5544 2504 D  0.3  0.4   0:00.53 php-cgi
10335 dreamzte  20   0  252m 6928 2540 D  0.3  0.5   0:00.52 php-cgi
10336 dreamzte  20   0  228m 5500 2516 D  0.3  0.4   0:00.34 php-cgi
10611 dreamzte  20   0  247m 9944 3084 D  0.3  0.6   0:00.20 php-cgi
10734 dreamzte  20   0  248m  10m 3096 S  0.3  0.7   0:00.13 php-cgi
10746 dreamzte  20   0  248m  10m 3096 S  0.3  0.7   0:00.13 php-cgi
10786 root      20   0 15292 1244  736 R  0.3  0.1   0:00.28 top
10797 dreamzte  20   0  248m  10m 3100 D  0.3  0.7   0:00.13 php-cgi


any suggestion for me ? currently i switch it to php-fpm event and seem like a bit stable for load average

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Server Overload
« Reply #1 on: 2015-05-06, 13:06:48 »
Try using php-fpm_event for 'php-type' in 'webserver configs'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ItzJustinN

  • Valuable Member
  • *
  • Posts: 102
  • Karma: +1/-0
    • View Profile
Re: Server Overload
« Reply #2 on: 2015-05-06, 20:23:51 »
a bigger problem i see is the i/o wait time of your CPU.
basically your CPU is being utilized, but it is waitting for your disk to serve the resource.
i would investigate the logs/domain to see what resource is being accessed and why the CPU is waitting on it.

you can use these commands too:
iostat will help you find which disk in question
iotop will help you find the process in question
lsof -p <Process ID> to help find the file in question
« Last Edit: 2015-05-06, 20:29:05 by sunderfall »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Server Overload
« Reply #3 on: 2015-05-06, 22:28:32 »
High value of %wa mean too long waiting for I/O process. In VPS environment, certain VPSes use I/O process intensively and make slow-down I/O (HDD) for all VPSes.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.042 seconds with 22 queries.

web stats analysis