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-05-20, 19:41:03

Author Topic: nginx is slowing down removing domain  (Read 3163 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
nginx is slowing down removing domain
« on: 2015-07-17, 13:06:52 »
Please see:

Quote
ps aux | grep nginx
nginx      318  0.3  5.2 1370748 1287248 ?     S    12:56   0:02 nginx: worker process is shutting down
nginx      321  0.5  5.2 1370748 1288044 ?     S    12:56   0:04 nginx: worker process is shutting down
nginx      322  0.5  5.2 1370748 1288004 ?     S    12:56   0:04 nginx: worker process is shutting down
root      3259  0.0  0.0 103248   892 pts/1    S+   13:09   0:00 grep nginx
root     14348  0.0  5.2 1370744 1286544 ?     Ss   01:36   0:13 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
nginx    31143  0.8  5.2 1370748 1286860 ?     S    13:08   0:01 nginx: worker process
nginx    31144  0.3  5.2 1370748 1286672 ?     S    13:08   0:00 nginx: worker process
nginx    31145  0.3  5.2 1370748 1286812 ?     S    13:08   0:00 nginx: worker process
nginx    31146  1.0  5.2 1370748 1286860 ?     S    13:08   0:01 nginx: worker process
nginx    31155  0.2  5.2 1370748 1286660 ?     S    13:08   0:00 nginx: worker process
nginx    31157  0.2  5.2 1370748 1286736 ?     S    13:08   0:00 nginx: worker process
nginx    31158  0.3  5.2 1370748 1286704 ?     S    13:08   0:00 nginx: worker process
nginx    31159  0.4  5.2 1370748 1286860 ?     S    13:08   0:00 nginx: worker process
nginx    31160  0.1  5.2 1370748 1286636 ?     S    13:08   0:00 nginx: worker process
nginx    31161  0.0  5.2 1370748 1286600 ?     S    13:08   0:00 nginx: worker process
nginx    31163  0.2  5.2 1370748 1286668 ?     S    13:08   0:00 nginx: worker process
nginx    31172  0.1  5.2 1370748 1286632 ?     S    13:08   0:00 nginx: worker process
nginx    31174  0.1  5.2 1370748 1286452 ?     S    13:08   0:00 nginx: cache manager process
nginx    32765  0.3  5.2 1370748 1288000 ?     S    12:56   0:02 nginx: worker process is shutting down
nginx    32766  0.3  5.2 1370748 1287776 ?     S    12:56   0:02 nginx: worker process is shutting down

While logs shows:

Quote
12:07 Jul/17/2015: 0: (No message) [(__system__) 'chmod'  '0744' '/etc/webalizer/webalizer.sport.tylkofakty.info.conf']
12:07 Jul/17/2015: 0: (No message) [(__system__) 'chmod'  '0744' '/etc/awstats/awstats.sport.tylkofakty.info.conf']
12:08 Jul/17/2015: Closed Exec /usr/local/lxlabs/kloxo/cexe/closeallinput 'sh /script/restart-web' >/dev/null 2>&1 &

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: nginx is slowing down removing domain
« Reply #1 on: 2015-07-17, 13:12:35 »
5 minutes later:

Quote
12:13 Jul/17/2015: 0: (No message) [(__system__) '/home/vpopmail/bin/vdeldomain'  '-f' 'sport.tylkofakty.info']
12:13 Jul/17/2015: 0: (No message) [(__system__) 'sh'  '/script/fix-outgoingips']
12:17 Jul/17/2015: 0: (No message) [(__system__) 'pure-pw'  'userdel' 'sport.tylkofakty.info' '-m']

12:17 domain finally removed !

WOW 10 minutes to remove one domain !

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: nginx is slowing down removing domain
« Reply #2 on: 2015-07-17, 13:27:54 »
This command is also slow:

Quote
pure-pw userdel turystyka.tylkofakty.info -m

That's probably this:

Quote
http://forum.mratwork.com/kloxo-mr-technical-helps/%27pure-pw%27-%27usermod%27-%27domain-com%27-very-slow-!!!/
« Last Edit: 2015-07-17, 13:30:19 by Spacedust »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: nginx is slowing down removing domain
« Reply #3 on: 2015-07-17, 13:32:32 »
When executed from shell it takes about 5 seconds so why it's taking so long from Kloxo php ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: nginx is slowing down removing domain
« Reply #4 on: 2015-07-17, 18:09:38 »
What's code for just 5 seconds?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: nginx is slowing down removing domain
« Reply #5 on: 2015-07-17, 18:14:49 »
What's code for just 5 seconds?.

pure-pw userdel turystyka.tylkofakty.info -m

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: nginx is slowing down removing domain
« Reply #6 on: 2015-07-17, 18:35:08 »
See dbactionDelete() in ftpuser__pureftplib.php
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: nginx is slowing down removing domain
« Reply #7 on: 2015-07-17, 18:38:34 »
See dbactionDelete() in ftpuser__pureftplib.php

We have to wait for reboot. Even hdparm -t /dev/sda takes ages to complete on all disks.

I'm on kernel: 2.6.32-504.3.3.el6.x86_64 while latest is 2.6.32-504.30.3.el6.x86_64

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: nginx is slowing down removing domain
« Reply #8 on: 2015-07-18, 00:49:48 »
Weird - it was removing one domain about 7 minutes, then removed 5 domains in about 30 seconds.

Finally no load and no downtime ;)

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.064 seconds with 17 queries.

web stats analysis