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, 03:26:43

Author Topic: Problem with high number of syn_recv in high traffic hours  (Read 1116 times)

0 Members and 1 Guest are viewing this topic.

Offline slobodan123

  • Junior Member
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Hi,

I have website with 20000 visitors/day and maximum is around 200 unique visitors online.
I have problem with syn_recv everyday in high traffic hours. It is stuck at 256 and slows down my website.

While my website is slowed, load is very low average 0.5 and RAM is normal around 600 MB.
Server characteristics
CPU: Intel® Core™ i7-4770
RAM: 32 GB DDR3 RAM

What can be a problem? Can i increase number of this connections above 256?

#sh /script/sysinfo

A. Kloxo-MR: 6.5.0.f-2014102601

B. OS: CentOS release 6.6 (Final) i686

C. Apps:
   1. MySQL: mysql55-5.5.40-2.ius.el6.i686
   2. PHP: php53u-5.3.29-1.ius.el6.i686
   3. Httpd: httpd-2.2.29-1.mr.el6.i386
   4. Lighttpd: --uninstalled--
   5. Nginx: --uninstalled--
   6. Qmail: qmail-toaster-1.03-1.3.45.mr.el6.i386
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.i386
   7. Dns: bind-9.9.5-1.el6.i686

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

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:         15489      10947       4541          0        398       9882
   -/+ buffers/cache:        666      14823
   Swap:        16383          0      16383


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Problem with high number of syn_recv in high traffic hours
« Reply #1 on: 2015-01-24, 18:52:26 »
Need increasing php-fpm children and also apache thread. Sadly this proses must be manually via ssh. In Kloxo-MR 7 already setup via panel.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline slobodan123

  • Junior Member
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Problem with high number of syn_recv in high traffic hours
« Reply #2 on: 2015-01-25, 05:30:00 »
Thanks for advice.

To do that i need to change parameters in file /etc/httpd/conf.d/~lxcenter.conf. Am i right?

I changed default values to this:

Code: [Select]
<IfModule event.c>
    StartServers 512
    MinSpareThreads 256
    MaxSpareThreads 512
    ThreadsPerChild 64
    MaxRequestsPerChild 0
    ThreadStackSize 8196
    ServerLimit 5000
    <IfVersion >= 2.4>
        MaxRequestWorkers 4992
        MaxConnectionsPerChild 0
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 4992
        MaxRequestsPerChild 0
    </IfVersion>

    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

Is this correct settings?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Problem with high number of syn_recv in high traffic hours
« Reply #3 on: 2015-01-25, 07:44:45 »
For apache optimize you must modified ~lxcenter.conf.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Problem with high number of syn_recv in high traffic hours
« Reply #4 on: 2015-01-25, 07:47:54 »
Better upgrade to KLoxo-MR 7 because more options for apache optimize and setup for php-fpm children in panel.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline slobodan123

  • Junior Member
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Problem with high number of syn_recv in high traffic hours
« Reply #5 on: 2015-01-25, 15:24:16 »
I tried Kloxo-MR 7 but that resulted with many problems with my website. Because of that i reverted to kloxo 6.

I did changes to /etc/httpd/conf.d/~lxcenter.conf as i described in previous post.

Is that .conf file you had in mind?

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.03 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM