<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">If you are using LUA's DB/ODBC driver to connect DB instead of FreeSWITCH's built in ODBC connection then this could be issue as there are known complaint of memory leakage in LUA's ODBC/DB driver.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 22 May 2020 at 06:36, Lloyd Aloysius <<a href="mailto:lloyd.aloysius@gmail.com">lloyd.aloysius@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">unixodbc and mysql for business logic</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">I have same problem, Please see below it is partial. Switch stop responding... Any help on this issue. How to solve this problem</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">top - 20:57:49 up 4 days,  2:33,  1 user,  load average: 0.22, 0.12, 0.10<br>Threads:  97 total,   0 running,  97 sleeping,   0 stopped,   0 zombie<br>%Cpu(s):  0.8 us,  0.3 sy,  0.0 ni, 98.6 id,  0.2 wa,  0.0 hi,  0.1 si,  0.0 st<br>KiB Mem:  99168592 total, 13798980 used, 85369616 free,   204232 buffers<br>KiB Swap: 39517180 total,        0 used, 39517180 free.  5790544 cached Mem<br><br>  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND<br>56800 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2   0:04.60 freeswitch<br>56801 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2   0:05.64 freeswitch<br>56802 freeswi+  rt -10 8670300 2.070g  25848 S  0.0  2.2   2:38.80 freeswitch<br>56804 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2   1:00.68 freeswitch<br>56806 freeswi+ -11 -10 8670300 2.070g  25848 S  0.0  2.2  10:02.48 freeswitch<br>56807 freeswi+  rt -10 8670300 2.070g  25848 S  0.0  2.2   0:03.48 freeswitch<br>56808 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2   0:07.83 freeswitch<br>56814 freeswi+  rt -10 8670300 2.070g  25848 S  0.0  2.2   2:18.11 freeswitch<br>56815 freeswi+  rt -10 8670300 2.070g  25848 S  0.0  2.2  30:52.02 freeswitch<br>56816 freeswi+ -11 -10 8670300 2.070g  25848 S  0.0  2.2   8:12.99 freeswitch<br>56818 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2   4:21.43 freeswitch<br>56819 freeswi+  rt -10 8670300 2.070g  25848 S  0.0  2.2   0:05.03 freeswitch<br>56820 freeswi+  rt -10 8670300 2.070g  25848 S  0.0  2.2   1:09.79 freeswitch<br>56821 freeswi+ -11 -10 8670300 2.070g  25848 S  0.0  2.2   0:11.14 freeswitch<br>56823 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2   2:05.75 freeswitch<br>56824 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2  20:45.59 freeswitch<br>56825 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2  20:45.15 freeswitch<br>56943 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2   0:00.00 freeswitch<br>56945 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2   2:49.09 freeswitch<br>56946 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2   2:38.27 freeswitch<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 20, 2020 at 6:33 PM David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Why do you think it's a memory leak?<div>Also, why use unixodbc _and_ mysql? what modules are you using?</div><div><br clear="all"><div><div dir="ltr"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 20, 2020 at 8:57 PM Lloyd Aloysius <<a href="mailto:lloyd.aloysius@gmail.com" target="_blank">lloyd.aloysius@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">I use the following unixodbc, mysql, lua</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Looks like it is a memory leak. Do not know where to start to looking into. Switch stop responding and need a restart the service.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 20, 2020 at 3:36 AM Faisal Hanif <<a href="mailto:imfanee@gmail.com" target="_blank">imfanee@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">do you have any custom code managing business logic ?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 20 May 2020 at 05:34, Lloyd Aloysius <<a href="mailto:lloyd.aloysius@gmail.com" target="_blank">lloyd.aloysius@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hi All</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">This is happening in same pattern after 2 days.A restart service solve the issues. I tried v1.6 , v1.8, v1.10 same behavior. Can someone help me to find the correct direction. Attached following command output.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">top -b -H -p `cat /usr/local/freeswitch/run/freeswitch.pid` -n 1<br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Machine have 42 GB memory.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">When I look into this output I assume freeswitch use 79g memory. Looks like not enough memory. Am I correct?</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Even I increase the memory some thing happening after 2 days. I tried physical vs virtual esxi same pattern problem</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">How to solve this problem? Can someone point the correct direction. </div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">The following is startup script. Any suggestions?</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><b><u>Start up script</u></b></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">/etc/systemd/system/freeswitch.service<br>; This file in installations built from Master can be found in<br>; /usr/src/freeswitch.git/debian<br>; or<br>; /usr/src/freeswitch/debian<br>[Unit]<br>Description=freeswitch<br>After=syslog.target network.target local-fs.target mysql.service apache2.service<br><br>[Service]<br>; service<br>Type=forking<br>PIDFile=/usr/local/freeswitch/run/freeswitch.pid<br>;PermissionsStartOnly=true<br>; blank ExecStart= line flushes the list<br>ExecStart=<br>Environment="USER=freeswitch"<br>Environment="GROUP=freeswitch"<br>ExecStart=/usr/local/freeswitch/bin/freeswitch -u freeswitch -g freeswitch -nc<br>TimeoutSec=45s<br>Restart=always<br>; exec<br>WorkingDirectory=/usr/local/freeswitch/bin<br>;User=root<br>;Group=daemon<br>LimitCORE=infinity<br>LimitNOFILE=100000<br>LimitNPROC=60000<br>LimitSTACK=250000<br>LimitRTPRIO=infinity<br>LimitRTTIME=infinity<br>IOSchedulingClass=realtime<br>IOSchedulingPriority=2<br>CPUSchedulingPolicy=rr<br>CPUSchedulingPriority=89<br>UMask=0007<br>;NoNewPrivileges=false<br><br>[Install]<br>WantedBy=multi-user.target<br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="font-family:verdana,sans-serif">Regards,</span><br style="font-family:verdana,sans-serif"><br style="font-family:verdana,sans-serif"><span style="font-family:verdana,sans-serif">Faisal Hanif</span><br style="font-family:verdana,sans-serif"></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><span style="font-family:verdana,sans-serif">Regards,</span><br style="font-family:verdana,sans-serif"><br style="font-family:verdana,sans-serif"><span style="font-family:verdana,sans-serif">Faisal Hanif</span><br style="font-family:verdana,sans-serif"></div>