High memory usage and a large cache.db-wal file are observed on an endpoint with the Linux Agent installed.
Growth of the db-wal file is expected, which can contribute to higher memory usage than normal by the Linux Agent.
The WAL file is a temporary file used by SQLite and is automatically removed when the last connection to the database closes. When an Agent is installed and in a healthy state, this only happens when either:
Reducing the speed at which the db-wal file grows may involve reducing the operations the Agent tracks:
A write-ahead log or WAL file is used in place of a rollback journal when SQLite is operating in WAL mode. As with the rollback journal, the purpose of the WAL file is to implement atomic commit and rollback. The WAL file is always located in the same directory as the database file and has the same name as the database file except with the 4 characters "-wal" appended. The WAL file is created when the first connection to the database is opened and is normally removed when the last connection to the database closes. However, if the last connection does not shut down cleanly, the WAL file will remain in the filesystem and will be automatically cleaned up the next time the database is opened.