mirror of
https://github.com/asterisk/asterisk.git
synced 2025-08-17 19:46:52 +00:00
Adds two files to the contrib/systemd/ directory that can be installed to periodically run "malloc trim" on Asterisk. These files do nothing unless they are explicitly moved to the correct location on the system. Users who are experiencing Asterisk memory issues can use this service to potentially help combat the problem. These files can also be configured to change the start time and interval. See systemd.timer(5) and systemd.time(7) for more information. UserNote: Service and timer files for systemd have been added to the contrib/systemd/ directory. If you are experiencing memory issues, install these files to have "malloc trim" periodically run on the system.
10 lines
259 B
Desktop File
10 lines
259 B
Desktop File
# Run the `malloc trim` CLI command to return unused memory
|
|
# to the OS. Triggered automatically by asterisk-malloc-trim.timer.
|
|
|
|
[Unit]
|
|
Description=Runs Asterisk "malloc trim" CLI command
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/sbin/asterisk -rx "malloc trim"
|