Fix memory leaks from orphaned uvx/python processes (#120)

This fixes memory leak, will remove one unnecessary MCP after this in a new PR but this is mission critical fix

* Initial plan

* Fix memory leaks: Add proper cleanup for ChromaSync and search server processes

Co-authored-by: thedotmack <683968+thedotmack@users.noreply.github.com>

* Add comprehensive process cleanup and PM2 configuration improvements

Co-authored-by: thedotmack <683968+thedotmack@users.noreply.github.com>

* Add comprehensive summary and recommendations for memory leak fixes

Co-authored-by: thedotmack <683968+thedotmack@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: thedotmack <683968+thedotmack@users.noreply.github.com>
This commit is contained in:
Copilot
2025-11-16 22:16:41 -05:00
committed by GitHub
parent 60d5f8fbf1
commit c46e4a341a
9 changed files with 620 additions and 25 deletions
+10 -2
View File
@@ -31,8 +31,16 @@ module.exports = {
'*.log',
'*.db',
'*.db-*',
'.git'
]
'.git',
'vector-db', // Ignore Chroma vector DB files
'.claude-mem' // Ignore data directory
],
// Allow extra time for graceful shutdown (cleanup of child processes)
kill_timeout: 5000,
// Wait before restarting to allow full cleanup
wait_ready: true,
// Shutdown signal (SIGTERM for graceful shutdown)
kill_signal: 'SIGTERM'
}
]
};