Hello Sergey,

 

your shown number of 500 fragments are not much and should not concern you. I would suggest to just increase the shared memory. About 128MB RAM is probably not enough for your server, configure it to 256MB or more, if you have.

 

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: Sergey Safarov <s.safarov@gmail.com>
Sent: Dienstag, 8. August 2023 07:15
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: [SR-Users] No

 

I catched issue with 

In the Kamailio logs i see

 

ssl bug #1491 workaround: not enough memory for safe operation: shm=10219080 threshold2=11796480

 

Current stat about shared memory

 

[root@sbc-a1 ~]# kamctl stats shmem
{
  "jsonrpc":  "2.0",
  "result": [
    "shmem:fragments = 528",
    "shmem:free_size = 11343104",
    "shmem:max_used_size = 124449952",
    "shmem:real_used_size = 122874624",
    "shmem:total_size = 134217728",
    "shmem:used_size = 58728144"
  ],
  "id": 703182
}

 

But when kamailio started

 

[root@sbc-a1 ~]# kamctl stats shmem
{
  "jsonrpc":  "2.0",
  "result": [
    "shmem:fragments = 122",
    "shmem:free_size = 112534264",
    "shmem:max_used_size = 22372528",
    "shmem:real_used_size = 21683464",
    "shmem:total_size = 134217728",
    "shmem:used_size = 12833888"
  ],
  "id": 703670
}

 

What is stange a lot of fragments.

How it can be troubleshooted?

Can memory manager show info about each fragment like when fragment are created an and which module requested fragment?