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. 2017-11-08, 02:41:06

Author Topic: Apache server lagging issues  (Read 2744 times)

0 Members and 1 Guest are viewing this topic.

Offline cmdman

  • Senior Member
  • *
  • Posts: 297
  • Karma: +0/-0
    • View Profile
Apache server lagging issues
« on: 2015-05-09, 10:58:02 »
Hi mr

i have Apache server lags to open site, when i click on home it show connecting after 10 to 15 seconds to open page or i need to restart apache i saw logs  i get error
Quote
server reached MaxClients setting, consider raising the MaxClients setting

i already done memory optimize etc still have same problem using apache and 6.5 and some times get error,so i need to restart apche

Quote
The server encountered an internal error or misconfiguration and was unable to complete your request.

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache server lagging issues
« Reply #1 on: 2015-05-09, 12:10:03 »
Did you select medium or high in 'apache optimize'?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline cmdman

  • Senior Member
  • *
  • Posts: 297
  • Karma: +0/-0
    • View Profile
Re: Apache server lagging issues
« Reply #2 on: 2015-05-09, 12:14:27 »
i am using 6.5 there is no low or high that option is available only  in 7.0



i updated as optimized still have same problem i have only a single domain

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache server lagging issues
« Reply #3 on: 2015-05-09, 12:16:30 »
Select 'optimize'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline cmdman

  • Senior Member
  • *
  • Posts: 297
  • Karma: +0/-0
    • View Profile
Re: Apache server lagging issues
« Reply #4 on: 2015-05-09, 12:27:22 »
i said below picture, already selected optimize  still have problem

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache server lagging issues
« Reply #5 on: 2015-05-09, 12:32:26 »
Inform here 'cat /etc/httpd/conf.d/~lxcenter.conf'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline cmdman

  • Senior Member
  • *
  • Posts: 297
  • Karma: +0/-0
    • View Profile
Re: Apache server lagging issues
« Reply #6 on: 2015-05-09, 12:50:24 »
FYI.

Quote
Timeout 150
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15

<IfModule prefork.c>
    StartServers 2
    MinSpareServers 179
    MaxSpareServers 358
    ServerLimit 358
    <IfVersion >= 2.4>
        MaxRequestWorkers 358
        MaxConnectionsPerChild 2000
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 358
        MaxRequestsPerChild 2000
    </IfVersion>
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule itk.c>
    StartServers 2
    MinSpareServers 179
    MaxSpareServers 358
    ServerLimit 358
    <IfVersion >= 2.4>
        MaxRequestWorkers 358
        MaxConnectionsPerChild 2000
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 358
        MaxRequestsPerChild 2000
    </IfVersion>
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule worker.c>
    StartServers 2
    MinSpareThreads 153
    MaxSpareThreads 307
    ThreadsPerChild 25
    <IfVersion >= 2.4>
        MaxRequestWorkers 1000
        MaxConnectionsPerChild 0
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 1000
        MaxRequestsPerChild 0
    </IfVersion>

    ThreadStackSize 8196
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule event.c>
    StartServers 2
    MinSpareThreads 153
    MaxSpareThreads 307
    ThreadsPerChild 25
    MaxRequestsPerChild 0
    ThreadStackSize 8196
    <IfVersion >= 2.4>
        MaxRequestWorkers 1000
        MaxConnectionsPerChild 0
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 1000
        MaxRequestsPerChild 0
    </IfVersion>

    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

Include /home/apache/conf/defaults/*.conf
Include /home/apache/conf/domains/*.conf
Include /home/apache/conf/webmails/*.conf



Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache server lagging issues
« Reply #7 on: 2015-05-09, 13:09:53 »
Try increasing 'ServerLimit' and 'MaxClients 1000' to double times and then 'sh /script/restart-web'.

Look like you didn't use php-fpm_worker/_event. Right?
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline cmdman

  • Senior Member
  • *
  • Posts: 297
  • Karma: +0/-0
    • View Profile
Re: Apache server lagging issues
« Reply #8 on: 2015-05-09, 13:27:22 »
yes iam using php-fpm_even

what about if i am using nginx proxy same settings are applicable or i need to change some where else..
« Last Edit: 2015-05-09, 13:29:30 by cmdman »

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache server lagging issues
« Reply #9 on: 2015-05-09, 13:42:07 »
Better use nginx-proxy instead apache alone.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline cmdman

  • Senior Member
  • *
  • Posts: 297
  • Karma: +0/-0
    • View Profile
Re: Apache server lagging issues
« Reply #10 on: 2015-05-09, 14:51:59 »
after changing to nginx proxy settings changed like this server limit goes to 4 and max clients too still do i need to change to 1000 with out any issues

Quote
Timeout 150
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15

<IfModule prefork.c>
    <IfVersion >= 2.4>
        Mutex default mpm-accept
    </IfVersion>
    StartServers 2
    MinSpareServers 2
    MaxSpareServers 4
    ServerLimit 4
    <IfVersion >= 2.4>
        MaxRequestWorkers 4
        MaxConnectionsPerChild 2000
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 4
        MaxRequestsPerChild 2000
    </IfVersion>
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule itk.c>
    <IfVersion >= 2.4>
        Mutex default mpm-accept
    </IfVersion>
    StartServers 2
    MinSpareServers 2
    MaxSpareServers 4
    ServerLimit 4
    <IfVersion >= 2.4>
        MaxRequestWorkers 4
        MaxConnectionsPerChild 2000
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 4
        MaxRequestsPerChild 2000
    </IfVersion>
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule worker.c>
    <IfVersion >= 2.4>
        Mutex default mpm-accept
    </IfVersion>
    StartServers 2
    MinSpareThreads 2
    MaxSpareThreads 4
    ThreadsPerChild 25
    <IfVersion >= 2.4>
        MaxRequestWorkers 150
        MaxConnectionsPerChild 0
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 150
        MaxRequestsPerChild 0
    </IfVersion>

    ThreadStackSize 8196
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule event.c>
    StartServers 2
    MinSpareThreads 2
    MaxSpareThreads 4
    ThreadsPerChild 25
    MaxRequestsPerChild 0
    ThreadStackSize 8196
    <IfVersion >= 2.4>
        MaxRequestWorkers 150
        MaxConnectionsPerChild 0
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 150
        MaxRequestsPerChild 0
    </IfVersion>

    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

Include /home/apache/conf/defaults/*.conf
Include /home/apache/conf/domains/*.conf
Include /home/apache/conf/webmails/*.conf



Offline cmdman

  • Senior Member
  • *
  • Posts: 297
  • Karma: +0/-0
    • View Profile
Re: Apache server lagging issues
« Reply #11 on: 2015-05-09, 17:07:35 »
after moving to nginx proxy lagging issues got more problem and getting error..


Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache server lagging issues
« Reply #12 on: 2015-05-09, 17:09:38 »
Try 'sh /script/cleanup'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline cmdman

  • Senior Member
  • *
  • Posts: 297
  • Karma: +0/-0
    • View Profile
Re: Apache server lagging issues
« Reply #13 on: 2015-05-09, 17:27:48 »
already done this before site works for 30 mints or a hour and i get this error

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache server lagging issues
« Reply #14 on: 2015-05-09, 17:51:18 »
Maybe something wrong when switch program. Try step-by-step: switch apache, run fixweb, switch to nginx, run fixweb, switch to nginx-proxy, run fixweb, restart-web.
..:: 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.035 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM