Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored resolvers, added string caching and xml toggling to improve memory usage #377

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

jschick04
Copy link
Contributor

Resolvers have been refactored so we can resolve specific sections independently instead of resolving everything at once. The added benefit to this is it makes string caching a bit easier and allows the cache to sit in state so multiple logs that share common data (ex. ComputerName, Source, Keywords or Category) can reuse those strings. In my testing, I have seen a reduction of about 1.5GB of memory usage on a 1GB security log that would normally use ~7GB of ram.

This above change in addition to the XML loading toggle, I have seen memory usage equivalent to 1-2x the size of the log file in my tests.

This should resolve #371 as I was able to open an 8GB (12,645,640 events) security log with XML disabled and this only utilized ~8-9GB of ram.

@jschick04 jschick04 marked this pull request as ready for review October 18, 2024 23:54
@jschick04 jschick04 requested a review from a team as a code owner October 18, 2024 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extremely high memory usage when opening large event log files.
1 participant