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

fix(proctree): limit tree memory usage and reduce it #4058

Merged

Commits on May 19, 2024

  1. feat(proctree): limit changelog size

    Add limitation to the amount of logged objects in the changelog.
    This should help in reducing the chance of memory leakage.
    AlonZivony committed May 19, 2024
    Configuration menu
    Copy the full SHA
    bcd5e80 View commit details
    Browse the repository at this point in the history
  2. fix(proctree): reduce process info memory

    The current proces tree takes a lot of memory (~150MB from calculation).
    However, it is a new feature and not all of its info has high chance to
    be used.
    For now, it was decided to not save the interpreter and interp
    information for processes until it was proven to be needed.
    This should reduce the process tree size by at least 60MB (but will
    probably reduce more than that).
    AlonZivony committed May 19, 2024
    Configuration menu
    Copy the full SHA
    b233b46 View commit details
    Browse the repository at this point in the history
  3. fix(proctree): limit saved file path length

    File paths are created by concatting the dentries names from the root to the file, and concattign the file name in the end.
    Although each dentry and file name has max length, the entire path has none.
    To avoid memorly leakage caused by saving file paths, introduce a limit to the save path length.
    AlonZivony committed May 19, 2024
    Configuration menu
    Copy the full SHA
    03d6822 View commit details
    Browse the repository at this point in the history