<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi Ping,<br>
<br>
You mean actual files or file descriptors ? If you do a lsof, can
you see which file is kept open ? Also do you see any zombie
OpenSIPS processes (as a result of exec() call ) ?<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 16.09.2015 16:23, Ping Han wrote:<br>
</div>
<blockquote
cite="mid:CAOooq9CNaibR6mMVxaPZvE_RLz9U4=u39LnijXPxY6wY2B19zw@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I am having a problem using the "exec" function to run a
curl command. Every time the function is executed it opens a
file and never close it. </div>
<div><br>
</div>
<div>I have example config as follows. I am using Opensips 2.1.
</div>
<div>
<div>------------------</div>
<div>$var = "<a moz-do-not-send="true"
href="http://myserver/var/tmp/test.php">http://myserver/var/tmp/test.php</a>";</div>
<div>exec("curl '$var(url)'", , "$var(out)");<br>
</div>
<div>------------------<br>
</div>
</div>
<div><br>
</div>
<div>This results in that the number of open files reaches the
system limit and the Opensips process crashes eventually. To
workaround it I have to restart Opensips whenever the number
of open files reaches 75% of the system limit. </div>
<div><br>
</div>
<div>Has anyone seen the same issue? Is there any solution for
this? </div>
<div><br>
</div>
<div>Thanks,</div>
<div>Ping</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>