Bret,<br><br>try:<br>ps aux --forest | grep opensips<br>that will show you parent and child processes in tree diagram and if any opensips master process is actually responsible for so many of them.<br>I agree that it is probably being spawned many times with a cron job, loop in the init script or a service like monit.<br>

<br>Dave<br><br><div class="gmail_quote">On Sat, Apr 30, 2011 at 12:53 PM, Bret McDanel <span dir="ltr">&lt;<a href="mailto:trixter@0xdecafbad.com">trixter@0xdecafbad.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On Sat, 2011-04-30 at 19:37 +0100, Stanisław Pitucha wrote:<br>
&gt; You mean that fifo ps returns a low number of processes? How are you<br>
&gt; starting up opensips? What kind of scripts / process management are<br>
&gt; you using?<br>
&gt;<br>
&gt; I would guess that something you use to start up opensips is not<br>
&gt; working as you expect and keeps respawning it all the time. Of course<br>
&gt; new processes won&#39;t stay around for long because they&#39;ll try to bind<br>
&gt; on some ports which are already taken. But if you&#39;re respawning often<br>
&gt; enough, the total count could go into thousands.<br>
&gt;<br>
<br>
<br>
</div>The extra processes are because it is forking doing something, it is not<br>
multiple instances being started like you suggested.  They  all have the<br>
same parent ID.<br>
<br>
ps auxww | grep opensips | wc -l<br>
the list keeps growing.  And if I kill opensips most die but not all,<br>
and those are only terminated with a kill -9.<br>
<br>
I show about 7 with opensipsctl ps but hundreds (it constantly grows<br>
they never die).<br>
<br>
They are clearly blocking somewhere, and it cannot be a syscall because<br>
a kill -9 cant take those out.  I am about to dig in and try to find out<br>
where and more importantly why.<br>
<br>
<br>
I start opensips fork=no logstderr=yes debug=10 with only a -f and -P<br>
option in a standard shell.<br>
<div class="im"><br>
--<br>
Trixter aka Bret McDanel<br>
website:  <a href="http://www.0xdecafbad.com" target="_blank">http://www.0xdecafbad.com</a><br>
pgp key:  <a href="http://bit.ly/9XYK4b" target="_blank">http://bit.ly/9XYK4b</a><br>
<br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>David Singer<br>