maint: update README

This commit is contained in:
6arelyFuture 2023-07-21 18:15:59 +02:00 committed by GitHub
parent 8eae5f1360
commit 26f496dee9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,10 @@
# MonitorRam # MonitorRam
A simple program that monitors real memory usage of processes. A simple program that monitors the real memory usage of processes.
# Example # Example
I have multiple processes, and all of them are named similarly. In my case, all the processes I need to monitor begin with the same string. I have multiple processes, and all of them are named similarly. In my case, all the processes I need to monitor begin with the same string.
The program will monitor up to 30 different processes; the max value is defined in `monitor.c`. The program will monitor up to 30 different processes; the max value is defined in `monitor.c`.
I would start this program using the following command: `./monitor iw5`. It will monitor all my game servers as they all share a common name on the process list. I would start this program using the following command: `./monitor iw5`. It will monitor all my game servers as they all share a common name (iw5) on the process list.
In my case, each process should not exceed more than 1 GiB of real memory, again, the max value is defined in `monitor.c`. In my case, each process should not exceed more than 1 GiB of real memory, again, the max value is defined in `monitor.c`.
If that's the case, a memory leak has occurred, and this program will send a request to terminate that process gracefully (SIGTERM). If that's the case, a memory leak has occurred, and this program will send a request to terminate that process gracefully (SIGTERM).
SIGTERM usually works for me. I have in place a separate system to automatically restart my game servers. SIGTERM usually works for me. I have in place a separate system to automatically restart my game servers.