[OpenSIPS-Users] Increase OpenSips memory size
Eran Leshem
eranl at kayhut.com
Sun May 5 13:28:54 UTC 2024
On Sun, May 5, 2024 at 4:20 PM Eran Leshem <eranl at kayhut.com> wrote:
> O.K.
>
> I found the memory numbers in the file:
> /etc/default/opensips
> After changing the values (I multiplied it by 10 to: 640 and 40),
> I restarted opensips and saw that the changes were applied in the log.
>
> Thank you very much.
>
> On Sun, May 5, 2024 at 3:56 PM Marcin Groszek <marcin at voipplus.net> wrote:
>
>> try this
>>
>> cd /etc/
>>
>> grep -r "S_MEMORY" *
>>
>> or
>>
>> updatedb
>>
>> locate opensips
>>
>>
>> On 5/5/2024 7:52 AM, Eran Leshem wrote:
>>
>> Unfortunately, I don't have the folder /etc/sysconfig/ in my system.
>> Any other folder to find that file?
>>
>> On Sun, 5 May 2024, 15:39 Marcin Groszek, <marcin at voipplus.net> wrote:
>>
>>> I have edited /etc/sysconfig/opensips to set memory parameters.
>>>
>>>
>>> On 5/5/2024 7:01 AM, Eran Leshem wrote:
>>>
>>> Hi,
>>> I'm trying to increase the size of the memory that OpenSips uses.
>>> This is a bit strange to me, because when I run:
>>> ps aux | grep -i opensips
>>> I get:
>>> /usr/sbin/opensips -P /run/opensips/opensips.pid -f
>>> /etc/opensips/opensips.cfg -m 64 -M 4
>>> but, when I look at:
>>> /lib/systemd/system/opensips.service
>>> I see:
>>> Environment=P_MEMORY=32 S_MEMORY=32
>>> ExecStart=/usr/sbin/opensips -P %t/opensips/opensips.pid -f
>>> /etc/opensips/opensips.cfg -m $S_MEMORY -M $P_MEMORY $OPTIONS
>>>
>>> So, from where does opensips get its memory parameters? (-m -M)
>>> And, how much can I give it? Can I increase it to 320 and 320?
>>> My machine:
>>> - Linux Mint 21.3 which is based on Ubuntu 22.04 LTS (Jammy Jellyfish),
>>> - 16 GB memory,
>>> - OpenSIPS version 3.4
>>>
>>> Thanks,
>>> Eran L.
>>>
>>> _______________________________________________
>>> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>> --
>>> Best Regards:
>>> Marcin Groszek
>>> Business Phone Servicehttps://www.voipplus.net
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>
>> _______________________________________________
>> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>> --
>> Best Regards:
>> Marcin Groszek
>> Business Phone Servicehttps://www.voipplus.net
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20240505/f5cc4e48/attachment-0001.html>
More information about the Users
mailing list