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-28, 13:14:20

Author Topic: Very slow fix configs !!!  (Read 10493 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Very slow fix configs !!!
« on: 2013-08-20, 02:59:04 »
Mustafa please fix this...

After version Kloxo-MR 6.5.0.f-2013031828 all fix scripts are too slow. Why this new php52s is so slow ??? lxphp was much better.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Very slow fix configs !!!
« Reply #1 on: 2013-08-20, 03:13:26 »
/script/fixdns when using djbdns is now horribly slow !
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Very slow fix configs !!!
« Reply #2 on: 2013-08-20, 03:16:07 »
It eats up all server memory (32 GB) then the process is killed. This never happened on Kloxo-MR 6.5.0.f-2013031828. I'm not updating to the latest version because it's dangerous to use :/
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Very slow fix configs !!!
« Reply #3 on: 2013-08-20, 07:30:58 »
Djbdns slower than Bind when running fixdns. It's because typically how djbdns save domain configs.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: 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: Very slow fix configs !!!
« Reply #4 on: 2013-08-20, 13:23:09 »
Quote from: "MRatWork"
Djbdns slower than Bind when running fixdns. It's because typically how djbdns save domain configs.

Same happens on /script/fixweb nginxproxy + Apache
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Very slow fix configs !!!
« Reply #5 on: 2013-08-20, 13:26:26 »
My testing. latest upload only need 1.5 hours for creating 2.000 domain; previous need 2.5 hours.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: 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: Very slow fix configs !!!
« Reply #6 on: 2013-08-20, 14:25:02 »
Quote from: "MRatWork"
My testing. latest upload only need 1.5 hours for creating 2.000 domain; previous need 2.5 hours.

Yes, adding/ removing domains is much faster, but running any of the fix scripts causes memory leak.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Very slow fix configs !!!
« Reply #7 on: 2013-08-20, 21:26:01 »
5,5 hours and so far only 506 domains were fixed in djbdns !!!

I need to run /script/fixdns --client=name one by one
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Very slow fix configs !!!
« Reply #8 on: 2013-08-21, 01:33:02 »
Mustafa do you confirm this issue or not ?

Try running /script/fixweb or fixdns on 2000 domains and compare to Kloxo-MR 6.5.0.f-2013031828

This happens on both CentOS 5.9 and 6.4.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Very slow fix configs !!!
« Reply #9 on: 2013-08-21, 02:28:10 »
Modified your /usr/local/lxlabs/kloxo/httpdocs/htmllib/lib/dns/driver/dns__lib.php:

From:

To:
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Very slow fix configs !!!
« Reply #10 on: 2013-08-21, 02:29:54 »
Modified your /usr/local/lxlabs/kloxo/httpdocs/htmllib/lib/dns/driver/dns__lib.php:

From:
Code: [Select]
...
function dosyncToSystemPost()
{
global $gbl, $sgbl, $login, $ghtml;

$this->createAllowTransferIps();

$driverapp = slave_get_driver('dns');
...
To:
Code: [Select]
...
function dosyncToSystemPost()
{
global $gbl, $sgbl, $login, $ghtml;

// $this->createAllowTransferIps();

$driverapp = slave_get_driver('dns');
...

This createAllowTransferIps() function make slowly and memory leak.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: 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: Very slow fix configs !!!
« Reply #11 on: 2013-08-21, 02:34:01 »
It's not this. I already got it and it's still slow. Need to investigate even more.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Very slow fix configs !!!
« Reply #12 on: 2013-08-21, 02:54:06 »
After disable above line, fixdns for 200 domains only need 2 minutes.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: 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: Very slow fix configs !!!
« Reply #13 on: 2013-08-21, 02:57:49 »
Quote from: "MRatWork"
After disable above line, fixdns for 200 domains only need 2 minutes.

Try with 2000.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Very slow fix configs !!!
« Reply #14 on: 2013-08-21, 03:17:16 »
Maybe I will post my config to be sure you've got the same:

Code: [Select]
/script/sysinfo

A. Kloxo-MR: 6.5.0.f-2013082002

B. OS: CentOS release 6.4 (Final) x86_64

C. Apps:
   1. MySQL: MariaDB-server-10.0.4-1.x86_64
   2. PHP: php-5.4.18-1.el6.remi.x86_64
   3. Httpd: httpd-2.2.25-1.el6.x86_64
   4. Lighttpd: --uninstalled--
   5. Nginx: nginx-1.5.2-1.el6.x86_64
   6. Qmail: qmail-toaster-1.03-1.3.27.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.14.mr.el6.x86_64
   7. Dns: djbdns-1.05-17.3.mr.el6.x86_64

D. Php-type (for Httpd/proxy): php-fpm_event

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:         32105       1980      30124          0         22        920
   -/+ buffers/cache:       1037      31067
   Swap:          511          0        511
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


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

Page created in 0.074 seconds with 18 queries.

web stats analysis