[Serusers] How to Tell if a SER Child is Blocked
Andres
andres at telesip.net
Thu Oct 13 21:28:38 CEST 2005
Thanks Klaus,
I tried it on our lab with a ser.cfg that called an exec program that
looped forever in order to block the child. This is the result with 4
children defined:
Before the first Registration:
[root at maui2 bin]# ps -Al | grep ser
1 S 0 15550 1 2 85 0 - 11532 pause ? 00:00:00 ser
1 S 0 15553 15550 0 85 0 - 11532 pipe_w ? 00:00:00 ser
1 S 0 15566 15550 0 80 0 - 11532 schedu ? 00:00:00 ser
After the 4 Children get locked up:
[root at maui2 bin]# ps -Al | grep ser
1 S 0 15550 1 0 85 0 - 11532 pause ? 00:00:00 ser
1 S 0 15553 15550 0 85 0 - 11532 pipe_w ? 00:00:00 ser
1 S 0 15558 15550 0 75 0 - 11533 wait4 ? 00:00:00 ser
1 S 0 15559 15550 0 77 0 - 11533 wait4 ? 00:00:00 ser
1 S 0 15560 15550 0 77 0 - 11533 wait4 ? 00:00:00 ser
1 S 0 15561 15550 0 77 0 - 11533 wait4 ? 00:00:00 ser
1 S 0 15566 15550 0 75 0 - 11532 schedu ? 00:00:00 ser
And Finally After releasing them:
[root at maui2 bin]# ps -Al | grep ser
1 S 0 15550 1 0 85 0 - 11532 pause ? 00:00:00 ser
1 S 0 15553 15550 0 75 0 - 11532 pipe_w ? 00:00:00 ser
1 S 0 15558 15550 0 78 0 - 11532 schedu ? 00:00:00 ser
1 S 0 15559 15550 0 75 0 - 11532 schedu ? 00:00:00 ser
1 S 0 15560 15550 0 75 0 - 11532 schedu ? 00:00:03 ser
1 S 0 15561 15550 0 75 0 - 11532 schedu ? 00:00:00 ser
1 S 0 15566 15550 0 75 0 - 11532 schedu ? 00:00:00 ser
So the key here is to spot the children with "wait4" and that tells us
they are blocked.
Thanks for the great suggestion!
Andres.
Klaus Darilion wrote:
> Andres wrote:
>
>> Is there any way to tell if a SER Child is Blocked? Any debug
>> command or log message available?
>>
>> Thanks,
>>
>
>
> philipp:/home/darilion# ps -Al|grep openser
> 5 S 106 628 1 0 75 0 - 10048 pause ? 00:00:00 openser
> 1 S 106 745 628 0 76 0 - 10048 pipe_w ? 00:00:00 openser
> 1 S 106 746 628 0 76 0 - 10048 schedu ? 00:00:02 openser
> 1 S 106 748 628 0 76 0 - 10048 schedu ? 00:00:01 openser
> 1 S 106 750 628 0 76 0 - 10048 schedu ? 00:00:01 openser
> 1 S 106 752 628 0 76 0 - 10048 schedu ? 00:00:01 openser
> 1 S 106 755 628 0 76 0 - 10048 schedu ? 00:00:00 openser
> 1 S 106 756 628 0 76 0 - 10048 schedu ? 00:00:00 openser
> 1 S 106 758 628 0 76 0 - 10048 schedu ? 00:00:00 openser
> 1 S 106 760 628 0 76 0 - 10048 schedu ? 00:00:00 openser
> 1 S 106 762 628 0 76 0 - 10048 schedu ? 00:00:00 openser
> 1 S 106 764 628 0 76 0 - 10048 schedu ? 00:00:00 openser
>
>
> ^^^^^^^^
> I guess this will show the status of the threads
>
> klaus
>
>
More information about the sr-users
mailing list