<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi,</p>
<p>what is your /etc/default/kamailio looking like? That is where I
change the mem stuff:</p>
<p># Amount of shared and private memory to allocate<br>
# for the running Kamailio server (in Mb)<br>
SHM_MEMORY=512<br>
PKG_MEMORY=8<br>
</p>
<p>For open files I added a
/etc/systemd/system/kamailio.service.d/limits.conf containing:</p>
<p>[Service]<br>
LimitNOFILE=32000</p>
<p>/niklas<i><br>
</i></p>
<br>
<div class="moz-cite-prefix">Den 2017-06-07 kl. 15:03, skrev
Daniel-Constantin Mierla:<br>
</div>
<blockquote type="cite"
cite="mid:3739ace3-90a6-a128-ee57-85d644a1972b@gmail.com">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<p>Run the next command:</p>
<p>/usr/local/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f
/usr/local/etc/kamailio/kamailio.cfg -m 128 -M 64 -u kamailio -g
kamailio -E -dd</p>
<p>and send the output from the terminal here.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 07.06.17 13:30, Vuk Radovanovic
wrote:<br>
</div>
<blockquote
cite="mid:3772c6f8-9059-36ba-04e9-e3a25a0171d6@gripenpro.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
Ok i tried with systemctl wit startup script:<br>
<br>
<i>[Unit]</i><i><br>
</i><i>Description=Kamailio (OpenSER) - the Open Source SIP
Server</i><i><br>
</i><i>After=syslog.target network.target</i><br>
<br>
<i>[Service]</i><i><br>
</i><i>Type=forking</i><i><br>
</i><i>Environment='PIDFILE=/var/run/kamailio/kamailio.pid'</i><i><br>
</i><i>Environment='CFGFILE=/usr/local/etc/kamailio//kamailio.cfg'</i><i><br>
</i><i>Environment='SHM_MEMORY=1024'</i><i><br>
</i><i>Environment='PKG_MEMORY=512'</i><i><br>
</i><i>Environment='USER=kamailio'</i><i><br>
</i><i>Environment='GROUP=kamailio'</i><i><br>
</i><i>EnvironmentFile=/etc/default/kamailio</i><i><br>
</i><i>PIDFile=$PIDFILE</i><i><br>
</i><i># ExecStart requires a full absolute path</i><i><br>
</i><i>ExecStart=/usr/sbin/kamailio -P $PIDFILE -f $CFGFILE -m
$SHM_MEMORY -M $PKG_MEMORY -u $USER -g $GROUP<br>
</i><i>ExecStopPost=/bin/rm -f $PIDFILE</i><i><br>
</i><i>Restart=on-abort</i><i><br>
</i><i>[Install]</i><i><br>
</i><i>WantedBy=multi-user.target</i><i><br>
</i><br>
Sadly the result is the same<i> </i><i><br>
<br>
root 3653 0.0 0.2 222300 12080 ? S 12:47
0:00 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg<br>
root 3655 0.0 0.0 222300 3932 ? S 12:47
0:00 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg<br>
root 3656 0.0 0.0 222300 3796 ? S 12:47
0:00 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg<br>
root 3657 0.0 0.0 222300 3796 ? S 12:47
0:00 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg<br>
root 3658 0.0 0.0 222300 3796 ? S 12:47
0:00 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg<br>
root 3659 0.0 0.0 222300 3796 ? S 12:47
0:00 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg<br>
root 3660 0.0 0.0 222300 3796 ? S 12:47
0:00 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg<br>
</i><br>
When I run <br>
<i>/usr/local/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f
/usr/local/etc/kamailio/kamailio.cfg -m 128 -M 64 -u kamailio
-g kamailio <br>
<br>
Listening on <br>
udp: 127.0.0.1:5060<br>
udp: 217.20.113.138:5060<br>
tcp: 127.0.0.1:5060<br>
tcp: 123.123.123.123:5060<br>
Aliases: <br>
tcp: km:5060<br>
tcp: km.domain.com:5060<br>
tcp: localhost:5060<br>
udp: km:5060<br>
udp: km.domain.com:5060<br>
udp: localhost:5060<br>
<br>
</i>And the process dies instantly. <br>
<br>
I tried lowering the PKG memory directives in both systemd and
init script, no change.<br>
<br>
Regards, <br>
Vuk <br>
<br>
<div class="moz-cite-prefix">On 6/7/2017 12:23 PM,
Daniel-Constantin Mierla wrote:<br>
</div>
<blockquote type="cite"
cite="mid:fca5bbbc-0414-8312-58b5-7378e797091e@gmail.com">
<pre wrap="">How do you start kamailio? Debian 8 is using systemd by default,
overwriting the init.d.
Cheers,
Daniel
On 07.06.17 12:11, Vuk Radovanovic wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Its debian 8.8
Regards,
Vuk
-------- Original message --------
Sender: Daniel-Constantin Mierla <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a>
Time: Wed 6/7 12:07
To: Vuk Radovanovic <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:vuk@gripenpro.com"><vuk@gripenpro.com></a>,"Kamailio (SER) - Users Mailing List" <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.kamailio.org"><sr-users@lists.kamailio.org></a>
Subject: Re: [SR-Users] No private memory left
</pre>
<blockquote type="cite">
<pre wrap="">Hello,
what is your operating system?
Cheers,
Daniel
On 07.06.17 11:26, Vuk Radovanovic wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Daniel,
So the ps auxw is telling me the starting options for shm and pkg
memory (-m -M) and options for user and group are not defined when
starting via init script.
Ive checked the init script in case i made an error when changing the
memory directive but its fine, as provided in the GIT package.
I am running kamailio 5.0 from git.
Userblacklist trying to load whole db at once sounds scary, my main
goal was implementing a redis whitelist with around 5mil numbers, now
I am wondering is it even feasible ?
root 3181 0.1 0.3 222300 12216 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3183 0.0 0.0 222300 3856 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3184 0.0 0.0 222300 3732 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3185 0.0 0.0 222300 3732 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3186 0.0 0.0 222300 3732 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3187 0.0 0.0 222300 3732 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3188 0.0 0.0 222300 3736 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3189 0.0 0.0 222300 3736 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3190 0.0 0.0 222300 3736 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3191 0.0 0.0 222300 3736 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3192 0.0 0.0 222300 3736 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3195 0.0 0.0 222300 3736 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3196 0.0 0.0 222300 3736 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3199 0.0 0.0 222300 3736 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3201 0.0 0.0 222300 3736 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3203 0.0 0.0 222300 3736 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3204 0.0 0.0 222300 3740 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3206 0.0 0.0 222300 3736 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3207 0.0 0.0 222300 3736 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3209 0.0 0.0 222300 3736 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3211 0.0 0.0 222304 1620 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3213 0.0 0.0 222300 1620 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3214 0.0 0.1 222300 5524 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3215 0.0 0.1 222300 5520 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3217 0.0 0.1 222300 5520 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3220 0.0 0.1 222300 5520 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.cfg
root 3221 0.0 0.1 222300 5520 ? S 11:18 0:00
/usr/local/sbin/kamailio -P /var/run/kamailio.pid -f
/usr/local/etc/kamailio//kamailio.c
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com" moz-do-not-send="true">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com" moz-do-not-send="true">www.kamailioworld.com</a></pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
</body>
</html>