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-16, 09:56:13

Author Topic: Web Server response error or very slow  (Read 13158 times)

0 Members and 1 Guest are viewing this topic.

Offline hoangsang

  • Valuable Member
  • *
  • Posts: 97
  • Karma: +0/-0
    • View Profile
Re: Web Server response error or very slow
« Reply #15 on: 2013-01-22, 23:43:57 »
Quote from: "Anik"
Quote from: "hoangsang"
Quote from: "Anik"
depending on your server configuration, you should consider increasing the values. specially the php-fpm one.

You can specific value examples?

that will depend on circumstances, but you can first increase the maxchildren to something 12/15, 5 is really not good for you.

I'm changed to:
Code: [Select]
pm.max_children = 70
pm.start_servers = 50
pm.min_spare_servers = 40
pm.max_spare_servers = 55
pm.max_requests = 1000

But access by Chrome is very slow :(
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Anik

  • Senior Member
  • *
  • Posts: 189
  • Karma: +0/-0
    • View Profile
    • http://www.feirox.com
Re: Web Server response error or very slow
« Reply #16 on: 2013-01-22, 23:55:33 »
70 is a too large value. just set something between 12 to 15 depending on traffic.
what the log files is saying? specially the slowlog?
any errors, timeouts, or memory overload?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Having Kloxo-MR useful? Then support the development. Consider buying a server from the author. http://hostspectra.com

Offline Anik

  • Senior Member
  • *
  • Posts: 189
  • Karma: +0/-0
    • View Profile
    • http://www.feirox.com
Re: Web Server response error or very slow
« Reply #17 on: 2013-01-23, 00:01:19 »
Calculate by memory usage too. like if one php-fpm child process is taking 150 MB ram then 70 process will take 10,500 MB which will end up giving you 500 error and probably locking down the server. so choose wisely by using your brain. Good Luck.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Having Kloxo-MR useful? Then support the development. Consider buying a server from the author. http://hostspectra.com

Offline hoangsang

  • Valuable Member
  • *
  • Posts: 97
  • Karma: +0/-0
    • View Profile
Re: Web Server response error or very slow
« Reply #18 on: 2013-01-23, 00:07:48 »
Quote from: "Anik"
Calculate by memory usage too. like if one php-fpm child process is taking 150 MB ram then 70 process will take 10,500 MB which will end up giving you 500 error and probably locking down the server. so choose wisely by using your brain. Good Luck.

Thanks. This my log
Code: [Select]
[22-Jan-2013 17:07:21] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 17:08:22] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 19:31:35] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 19:46:54] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 19:51:59] ERROR: unable to read what child say: Bad file descriptor (9)
[22-Jan-2013 20:46:03] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 21:24:33] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 21:47:16] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 21:59:59] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 22:07:46] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 22:07:53] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 22:29:44] ERROR: unable to read what child say: Bad file descriptor (9)
[22-Jan-2013 22:57:50] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[22-Jan-2013 23:25:17] WARNING: [pool bachngocsach] server reached pm.max_children setting (5), consider raising it
[23-Jan-2013 00:56:58] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:56:58] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:08] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:41] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 00:59:41] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 01:04:19] ERROR: unable to read what child say: Bad file descriptor (9)
[23-Jan-2013 01:04:19] ERROR: unable to read what child say: Bad file descriptor (9)


ERROR: unable to read what child say: Bad file descriptor (9)
hichic :(
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline hoangsang

  • Valuable Member
  • *
  • Posts: 97
  • Karma: +0/-0
    • View Profile
Re: Web Server response error or very slow
« Reply #19 on: 2013-01-23, 00:49:10 »
Quote from: "Anik"
Calculate by memory usage too. like if one php-fpm child process is taking 150 MB ram then 70 process will take 10,500 MB which will end up giving you 500 error and probably locking down the server. so choose wisely by using your brain. Good Luck.

I'm changed to:
Code: [Select]
pm.max_children = 15
pm.start_servers = 14
pm.min_spare_servers = 13
pm.max_spare_servers = 15
pm.max_requests = 1000

And view log:
[23-Jan-2013 01:45:30] WARNING: [pool bachngocsach] server reached pm.max_children setting (15), consider raising it
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Tsanten

  • Global Moderator
  • Junior Member
  • *****
  • Posts: 49
  • Karma: +0/-0
    • View Profile
Re: Web Server response error or very slow
« Reply #20 on: 2013-01-23, 00:54:06 »
You need to configure php mysql nginx for your settings this mean you have to know how much ram  and how many cpu do you have
Normally i configure mysql to take at maximum 50% (mysqltuner.pl)of the memory and let other for caching and web server.
Start from this and observe were you have to modify settings.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Anik

  • Senior Member
  • *
  • Posts: 189
  • Karma: +0/-0
    • View Profile
    • http://www.feirox.com
Re: Web Server response error or very slow
« Reply #21 on: 2013-01-23, 00:54:57 »
As i told, you should have to raise the max children. which log file it is? /var/log/php-fpm/error.log ?
looks like segfault or open files overload.
increase the connection and children.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Having Kloxo-MR useful? Then support the development. Consider buying a server from the author. http://hostspectra.com

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Web Server response error or very slow
« Reply #22 on: 2013-02-21, 01:39:03 »
Quote from: "hoangsang"
Quote from: "Anik"
Calculate by memory usage too. like if one php-fpm child process is taking 150 MB ram then 70 process will take 10,500 MB which will end up giving you 500 error and probably locking down the server. so choose wisely by using your brain. Good Luck.

I'm changed to:
Code: [Select]
pm.max_children = 15
pm.start_servers = 14
pm.min_spare_servers = 13
pm.max_spare_servers = 15
pm.max_requests = 1000

And view log:
[23-Jan-2013 01:45:30] WARNING: [pool bachngocsach] server reached pm.max_children setting (15), consider raising it

Set this to:

Code: [Select]
pm.max_children = 30
pm.start_servers = 2
pm.min_spare_servers = 2
pm.max_spare_servers = 6
pm.max_requests = 1000
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.063 seconds with 21 queries.

web stats analysis