Hi,

I was getting the process list from the command: "ps auxf | grep freeswitch"

Still waiting to see it again on the server, i can't reproduce it, when it happens again i post here the output. Not sure if enabling threaded_system_exec solved the issue.

On 19/11/2018 19:11, David Villasmil wrote:
Totally true, i didn't think of that... @antonio, can you try `ps -ef`?
Regards,

David Villasmil
phone: +34669448337

ᐧ

On Mon, Nov 19, 2018 at 3:49 PM Ken Rice <krice@freeswitch.org> wrote:
well also keep in mind that depending on how he is looking for freeswitch processes he may be seeing multiple as the threads will show up ad their individual psuedo PID for example in htop

Sent from my iPhone

On Nov 17, 2018, at 17:01, David Villasmil <david.villasmil.work@gmail.com> wrote:

Also, regarding memory usage, that's how FS works. It takes memory AS NEEDED and simply doesn't returns it, it holds it for future use.
Regards,

David Villasmil
phone: +34669448337

ᐧ

On Sat, Nov 17, 2018 at 11:00 PM David Villasmil <david.villasmil.work@gmail.com> wrote:
I've never seen this...

Is it possible the process is being started multiple times? You _can_ run fs multiple times, but only the first would start properly as the rest would try to bind to a port already in use by the first process.
There's a parameter on all profiles to shutdown if it can't start, try setting that and see what happens.
You should also check your crontab... This is NOT normal FS behaviour, as far as i know.


Regards,

David Villasmil
phone: +34669448337

ᐧ

On Fri, Nov 9, 2018 at 7:48 PM António Silva via FreeSWITCH-users <freeswitch-users@lists.freeswitch.org> wrote:



---------- Forwarded message ----------
From: "António Silva" <asilva@wirelessmundi.com>
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Cc: 
Bcc: 
Date: Thu, 8 Nov 2018 17:53:03 +0100
Subject: Re: Memory increase because of multiple instances of freeswitch
Forget to put my unit configuration:

[Service]
; service
Type=forking
PIDFile=/run/freeswitch/freeswitch.pid
ExecStart=/usr/bin/freeswitch -ncwait -nonat -scripts /scripts/fs
TimeoutSec=300s
Restart=on-failure
RestartSec=500ms
; exec
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



On 08/11/2018 17:11, António Silva wrote:
> Hi all,
>
> I notice a strange behaviour on machine due to increase of memory,
> when i went to see that was the process consuming the memory i notice
> that freeswitch have multiple  process running:
>
> root      2543 90.4  4.8 2178716 1587484 ?     S<sl Sep27 36619:46
> /usr/bin/freeswitch -ncwait -nonat -scripts /opt/commsmundi/scripts/fs
> root      7858  0.0  5.0 2289392 1649484 ?     SN   Oct19   0:00 \_
> /usr/bin/freeswitch -ncwait -nonat -scripts /opt/commsmundi/scripts/fs
> root     30626  0.0  4.4 2172632 1464684 ?     SN   Oct23   0:00 \_
> /usr/bin/freeswitch -ncwait -nonat -scripts /opt/commsmundi/scripts/fs
> root      4505  0.0  4.9 2336544 1621768 ?     SN   10:43   0:00 \_
> /usr/bin/freeswitch -ncwait -nonat -scripts /opt/commsmundi/scripts/fs
> root     22557  0.0  4.9 2336548 1636604 ?     SN   11:02   0:00 \_
> /usr/bin/freeswitch -ncwait -nonat -scripts /opt/commsmundi/scripts/fs
>
>
> and today:
>
> root     21823 93.9  4.8 2154128 1581064 ?     S<sl Oct26 17781:45
> /usr/bin/freeswitch -ncwait -nonat -scripts /opt/commsmundi/scripts/fs
> root     18417  0.0  4.9 2247264 1610108 ?     SN   11:09   0:00 \_
> /usr/bin/freeswitch -ncwait -nonat -scripts /opt/commsmundi/scripts/fs
>
>
> what could be the cause of this? anyone experience the same?
>
> As for the service everything is running ok, is just that the memory
> keeps increasing.. i restart freewitch when i start to reach my memory
> limit.
>
>
> I'm running fs 1.8.2 on debian jessie.
>
>
--
Saludos / Regards / Cumprimentos
António Silva





---------- Forwarded message ----------
From: "António Silva via FreeSWITCH-users" <freeswitch-users@lists.freeswitch.org>
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Cc: 
Bcc: 
Date: Fri, 09 Nov 2018 11:48:33 -0800 (PST)
Subject: Re: [Freeswitch-users] Memory increase because of multiple instances of freeswitch
_________________________________________________________________________
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
_________________________________________________________________________
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

_________________________________________________________________________
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
-- 
Saludos / Regards / Cumprimentos
António Silva