This commit introduces a new file, AUDIT-MEMORY.md, which contains a detailed audit of the application's memory and resource management.
The audit covers several key areas, including:
- Goroutine lifecycle management
- In-memory data structures and potential leaks
- Database resource usage and connection pooling
- Process and file handle management for external miners
- Network connection handling for the API server
The report identifies a potential issue with the unbounded growth of the `miner_sessions` table and recommends adding a cleanup mechanism. Other areas were found to be robust and well-managed.
Co-authored-by: Snider <631881+Snider@users.noreply.github.com>