Logo
Explore Help
Sign In
kenmirrors/asterisk
1
0
Fork 0
You've already forked asterisk
mirror of https://github.com/asterisk/asterisk.git synced 2025-09-19 11:42:27 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
336f6bd627818affba5e7e2ff00ed151bc1800f5
asterisk/contrib/systemd/asterisk-malloc-trim.service

10 lines
259 B
SYSTEMD
Raw Normal View History

contrib: Add systemd service and timer files for malloc trim. 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.
2025-04-16 13:45:03 -05:00
# 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"
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 246ms Template repo/view: 16ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API