0 Members and 1 Guest are viewing this topic.
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.
Quote from: "Anik"depending on your server configuration, you should consider increasing the values. specially the php-fpm one.You can specific value examples?
depending on your server configuration, you should consider increasing the values. specially the php-fpm one.
pm.max_children = 70pm.start_servers = 50pm.min_spare_servers = 40pm.max_spare_servers = 55pm.max_requests = 1000
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.
[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)
pm.max_children = 15pm.start_servers = 14pm.min_spare_servers = 13pm.max_spare_servers = 15pm.max_requests = 1000
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 = 15pm.start_servers = 14pm.min_spare_servers = 13pm.max_spare_servers = 15pm.max_requests = 1000And view log:[23-Jan-2013 01:45:30] WARNING: [pool bachngocsach] server reached pm.max_children setting (15), consider raising it
pm.max_children = 30pm.start_servers = 2pm.min_spare_servers = 2pm.max_spare_servers = 6pm.max_requests = 1000
Page created in 0.046 seconds with 21 queries.