Full RAM usage leads to crash PC #2266
Replies: 1 comment
|
This sounds like a search-time memory blowup rather than an indexing problem, which is an important distinction. If the crash happens when searching logs or very large generated files, I would first exclude those files from the indexed/searchable project. Large log files, build artifacts, vendored dependencies, minified bundles, generated code, and cache folders can make search mode much more expensive than normal code navigation. Things I would check first:
As a workaround, I would try re-indexing after excluding non-source files, especially logs: If GitNexus supports a project ignore file such as .gitnexusignore or respects .gitignore, put these patterns there and rebuild the index. If it does not currently support excluding files from search mode, that would be a very useful feature request. From a product side, search mode should probably have hard guardrails too, for example:
A 64 GB machine should not become unresponsive from one search query, even on a large project. The app should stop the query or return a clear “query too broad / too many files” error before the OS runs out of memory. For a useful bug report, it would help to include:
My guess is that the search path is loading or materializing too many matches/files into memory at once. Excluding logs and generated files is the best workaround, but GitNexus probably also needs a search-time memory limit so this fails safely instead of crashing the whole PC. |
Uh oh!
There was an error while loading. Please reload this page.
Hey i use it as Code navigation, but my projects starts to being so big, sometime i use to search some logs, it runs out my 64gb RAM to the fullest and leads to crash my PC. Setted some guardrails in the code, but didn't work. It not happen during indexing, but on search mode.
All reactions