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.

On Fri, 22 May 2020 at 06:36, Lloyd Aloysius <lloyd.aloysius@gmail.com> wrote:
unixodbc and mysql for business logic

I have same problem, Please see below it is partial. Switch stop responding... Any help on this issue. How to solve this problem


top - 20:57:49 up 4 days,  2:33,  1 user,  load average: 0.22, 0.12, 0.10
Threads:  97 total,   0 running,  97 sleeping,   0 stopped,   0 zombie
%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
KiB Mem:  99168592 total, 13798980 used, 85369616 free,   204232 buffers
KiB Swap: 39517180 total,        0 used, 39517180 free.  5790544 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND
56800 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2   0:04.60 freeswitch
56801 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2   0:05.64 freeswitch
56802 freeswi+  rt -10 8670300 2.070g  25848 S  0.0  2.2   2:38.80 freeswitch
56804 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2   1:00.68 freeswitch
56806 freeswi+ -11 -10 8670300 2.070g  25848 S  0.0  2.2  10:02.48 freeswitch
56807 freeswi+  rt -10 8670300 2.070g  25848 S  0.0  2.2   0:03.48 freeswitch
56808 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2   0:07.83 freeswitch
56814 freeswi+  rt -10 8670300 2.070g  25848 S  0.0  2.2   2:18.11 freeswitch
56815 freeswi+  rt -10 8670300 2.070g  25848 S  0.0  2.2  30:52.02 freeswitch
56816 freeswi+ -11 -10 8670300 2.070g  25848 S  0.0  2.2   8:12.99 freeswitch
56818 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2   4:21.43 freeswitch
56819 freeswi+  rt -10 8670300 2.070g  25848 S  0.0  2.2   0:05.03 freeswitch
56820 freeswi+  rt -10 8670300 2.070g  25848 S  0.0  2.2   1:09.79 freeswitch
56821 freeswi+ -11 -10 8670300 2.070g  25848 S  0.0  2.2   0:11.14 freeswitch
56823 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2   2:05.75 freeswitch
56824 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2  20:45.59 freeswitch
56825 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2  20:45.15 freeswitch
56943 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2   0:00.00 freeswitch
56945 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2   2:49.09 freeswitch
56946 freeswi+  -2 -10 8670300 2.070g  25848 S  0.0  2.2   2:38.27 freeswitch

On Wed, May 20, 2020 at 6:33 PM David Villasmil <david.villasmil.work@gmail.com> wrote:
Why do you think it's a memory leak?
Also, why use unixodbc _and_ mysql? what modules are you using?

Regards,

David Villasmil
phone: +34669448337


On Wed, May 20, 2020 at 8:57 PM Lloyd Aloysius <lloyd.aloysius@gmail.com> wrote:
I use the following unixodbc, mysql, lua

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.

On Wed, May 20, 2020 at 3:36 AM Faisal Hanif <imfanee@gmail.com> wrote:
do you have any custom code managing business logic ?

On Wed, 20 May 2020 at 05:34, Lloyd Aloysius <lloyd.aloysius@gmail.com> wrote:
Hi All

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.

top -b -H -p `cat /usr/local/freeswitch/run/freeswitch.pid` -n 1


Machine have 42 GB memory.

When I look into this output I assume freeswitch use 79g memory. Looks like not enough memory. Am I correct?

Even I increase the memory some thing happening after 2 days. I tried physical vs virtual esxi same pattern problem

How to solve this problem? Can someone point the correct direction. 

The following is startup script. Any suggestions?

Start up script

/etc/systemd/system/freeswitch.service
; This file in installations built from Master can be found in
; /usr/src/freeswitch.git/debian
; or
; /usr/src/freeswitch/debian
[Unit]
Description=freeswitch
After=syslog.target network.target local-fs.target mysql.service apache2.service

[Service]
; service
Type=forking
PIDFile=/usr/local/freeswitch/run/freeswitch.pid
;PermissionsStartOnly=true
; blank ExecStart= line flushes the list
ExecStart=
Environment="USER=freeswitch"
Environment="GROUP=freeswitch"
ExecStart=/usr/local/freeswitch/bin/freeswitch -u freeswitch -g freeswitch -nc
TimeoutSec=45s
Restart=always
; exec
WorkingDirectory=/usr/local/freeswitch/bin
;User=root
;Group=daemon
LimitCORE=infinity
LimitNOFILE=100000
LimitNPROC=60000
LimitSTACK=250000
LimitRTPRIO=infinity
LimitRTTIME=infinity
IOSchedulingClass=realtime
IOSchedulingPriority=2
CPUSchedulingPolicy=rr
CPUSchedulingPriority=89
UMask=0007
;NoNewPrivileges=false

[Install]
WantedBy=multi-user.target





_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com


--
Regards,

Faisal Hanif
_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com


--
Regards,

Faisal Hanif