<div dir="ltr">Проблема сама ушла, но сейчас снова вернулась.<div>nginx имеет кучу процессов в состоянии shutting down</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">nginx     2245  0.1  0.4 277892 170264 ?       S<    2016  60:12 nginx: worker process is shutting down<br>nginx     2246  0.1  0.4 277892 170268 ?       S<    2016  60:04 nginx: worker process is shutting down<br>nginx     2247  0.1  0.4 277892 170264 ?       S<    2016  53:58 nginx: worker process is shutting down<br>nginx     2248  0.1  0.4 277892 170268 ?       S<    2016  61:46 nginx: worker process is shutting down<br>nginx     2249  0.1  0.4 277892 170264 ?       S<    2016  60:04 nginx: worker process is shutting down<br>nginx     2250  0.1  0.4 277892 170264 ?       S<    2016  61:02 nginx: worker process is shutting down<br>root     12463  0.0  0.3 239260 117740 ?       Ss    2016   0:02 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf<br>nginx    12466  0.1  0.3 225684 117204 ?       S<    2016  63:19 nginx: worker process is shutting down<br>nginx    12472  0.2  0.3 226236 117596 ?       S<    2016  68:23 nginx: worker process is shutting down<br>nginx    12475  0.1  0.3 226204 117592 ?       S<    2016  65:29 nginx: worker process is shutting down<br>root     34155  0.0  0.0 103336   916 pts/1    S+   11:58   0:00 grep nginx<br>nginx    44094  1.0  0.4 280680 171700 ?       S<    2016 301:38 nginx: worker process is shutting down<br>nginx    44095  0.9  0.4 280680 171700 ?       S<    2016 260:05 nginx: worker process is shutting down<br>nginx    44096  0.9  0.4 280680 171700 ?       S<    2016 280:09 nginx: worker process is shutting down<br>nginx    44097  0.9  0.4 280680 171700 ?       S<    2016 274:12 nginx: worker process is shutting down<br>nginx    44098  1.0  0.4 280680 171700 ?       S<    2016 304:19 nginx: worker process is shutting down<br>nginx    44099  1.0  0.4 280680 171700 ?       S<    2016 289:29 nginx: worker process is shutting down<br>nginx    47185  2.0  0.4 280732 170500 ?       S<   Jan09  59:39 nginx: worker process<br>nginx    47186  2.0  0.4 280732 170504 ?       S<   Jan09  58:10 nginx: worker process<br>nginx    47187  1.7  0.4 280732 170504 ?       S<   Jan09  51:09 nginx: worker process<br>nginx    47188  1.7  0.4 280732 170504 ?       S<   Jan09  50:46 nginx: worker process<br>nginx    47189  1.8  0.4 280732 170504 ?       S<   Jan09  53:27 nginx: worker process<br>nginx    47190  2.0  0.4 280732 170504 ?       S<   Jan09  59:42 nginx: worker process<br>nginx    47191  0.0  0.3 239264 128296 ?       S    Jan09   1:04 nginx: cache manager process<br>nginx    58834  0.0  0.4 277892 170248 ?       S<    2016  18:34 nginx: worker process is shutting down<br>nginx    58835  0.0  0.4 277892 170248 ?       S<    2016  20:34 nginx: worker process is shutting down<br>nginx    58836  0.0  0.4 277892 170244 ?       S<    2016  19:48 nginx: worker process is shutting down</blockquote><div><br></div><div> При этом netstat -nap | grep <pid nginx в состоянии shutting down> выдает например </div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">tcp        0      0 x.x.x.x:49810            y.y.y.y:80               ESTABLISHED 2245/nginx</blockquote><div><br></div><div>отправляюсь на  y.y.y.y (там у меня на 80 порту nginx) и делаю service nginx stop и service nginx start.</div><div>Но возвращаясь на  x.x.x.x я снова вижу</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> При этом netstat -nap | grep <pid nginx в состоянии shutting down> выдает например </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">tcp        0      0 x.x.x.x:49810            y.y.y.y:80               ESTABLISHED 2245/nginx</blockquote><div><br></div><div>Не пойму почему не отваливается соединение? </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">30 ноября 2015 г., 10:53 пользователь Aleksandr Sytar <span dir="ltr"><<a href="mailto:sytar.alex@gmail.com" target="_blank">sytar.alex@gmail.com</a>></span> написал:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">30 ноября 2015 г., 10:42 пользователь Иван Мишин <span dir="ltr"><<a href="mailto:simplebox66@gmail.com" target="_blank">simplebox66@gmail.com</a>></span> написал:<span class=""><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Проблема в том что не отмирают старые процессы по несколько дней ( видел те которые 10 дней даже живут), они то и держат "лишние" соединения.<div><br></div><div>Вот конкретно сейчас есть процессы от 23 числа.:</div><div><div>nginx    46065  1.5  0.3 237188 133192 ?       S<   Nov23 151:19 nginx: worker process is shutting down</div><div>nginx    46066  1.5  0.3 237060 133156 ?       S<   Nov23 144:16 nginx: worker process is shutting down</div><div>nginx    46069  1.6  0.3 237008 133836 ?       S<   Nov23 156:25 nginx: worker process is shutting down</div></div><div><br></div><div>Почему они за 7 дней до сих пор не умерли?</div></div></blockquote><div><br></div></span><div>Потому что к ним еще подключены клиенты. Убейте клиентов и воркеры сам закроются</div><div><br></div></div></div></div>
<br>______________________________<wbr>_________________<br>
nginx-ru mailing list<br>
<a href="mailto:nginx-ru@nginx.org">nginx-ru@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-ru" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx-ru</a><br></blockquote></div><br></div>