We have a very busy wordpress site that runs on five application servers running lsws. Several times a day, we get to a point where all the php processes are locked and the server stops responding to new requests. IE:
17885 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/frame_contentad.php
17886 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17891 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
17895 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
17897 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
17900 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17902 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17906 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
17913 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/frame_contentad.php
17915 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/frame_contentad.php
17916 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17926 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/tlv_300x250.php
17927 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17939 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17940 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_728x90.php
17942 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
17943 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17950 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
17953 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
17961 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17964 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
17966 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_160x600.php
17968 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_160x600.php
17969 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_160x600.php
17970 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17971 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/frame_contentad.php
17972 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
17973 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17988 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17994 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/tlv_300x250.php
17995 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
18005 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_160x600.php
18008 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
18010 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
18011 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
But there are hundreds of them. The end looks like this:
18353 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
18354 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/tlv_300x250.php
10342 ? S 0:00 \_ lsphp5
13336 ? S 0:00 \_ lsphp5
13645 ? S 0:00 \_ lsphp5
13648 ? S 0:00 \_ lsphp5
13649 ? S 0:00 \_ lsphp5
13654 ? S 0:00 \_ lsphp5
13656 ? S 0:00 \_ lsphp5
13706 ? S 0:00 \_ lsphp5
17836 ? S 0:00 \_ lsphp5
17933 ? S 0:00 \_ lsphp5
I can issue a graceful restart and this corrects the problems, but the php processes hang around for a while on the old lsws processes. They do go away eventually.
Where can I look to find why these processes are hanging and what can I do to prevent this from happening?
17885 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/frame_contentad.php
17886 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17891 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
17895 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
17897 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
17900 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17902 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17906 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
17913 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/frame_contentad.php
17915 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/frame_contentad.php
17916 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17926 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/tlv_300x250.php
17927 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17939 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17940 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_728x90.php
17942 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
17943 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17950 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
17953 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
17961 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17964 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
17966 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_160x600.php
17968 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_160x600.php
17969 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_160x600.php
17970 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17971 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/frame_contentad.php
17972 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
17973 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17988 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
17994 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/tlv_300x250.php
17995 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
18005 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_160x600.php
18008 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
18010 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
18011 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/openx_300x250.php
But there are hundreds of them. The end looks like this:
18353 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/index.php
18354 ? S 0:00 | \_ lsphp5:/home/mobile/public_html/tlv_300x250.php
10342 ? S 0:00 \_ lsphp5
13336 ? S 0:00 \_ lsphp5
13645 ? S 0:00 \_ lsphp5
13648 ? S 0:00 \_ lsphp5
13649 ? S 0:00 \_ lsphp5
13654 ? S 0:00 \_ lsphp5
13656 ? S 0:00 \_ lsphp5
13706 ? S 0:00 \_ lsphp5
17836 ? S 0:00 \_ lsphp5
17933 ? S 0:00 \_ lsphp5
I can issue a graceful restart and this corrects the problems, but the php processes hang around for a while on the old lsws processes. They do go away eventually.
Where can I look to find why these processes are hanging and what can I do to prevent this from happening?