Skip to content

Memory usage keeps increasing during large-scale mapping – eventually crashes at \~98% #223

Description

@mahmood-ul-hasan

Thank you for your work on this project — it's been very helpful.
I'm using ros2 glim_rosnode to build a large-scale map. After a certain point, memory usage steadily increases until CPU memory reaches approximately 98%, after which the node crashes.
The following memory warnings repeatedly occur:

[glim_rosnode-1] [2025-05-30 14:57:35.294] [mem] [warning] CPU memory usage: 28979.05 / 31497.23 MB 92.01%
[glim_rosnode-1] [2025-05-30 14:57:40.294] [mem] [warning] CPU memory usage: 28938.97 / 31497.23 MB 91.88%
[glim_rosnode-1] [2025-05-30 14:57:50.295] [mem] [warning] CPU memory usage: 29336.95 / 31497.23 MB 93.14%

Eventually, it reaches >98% and the node crashes due to memory exhaustion.

Questions:

  1. Are there any parameters (e.g., cache size, voxel resolution, GPU memory use options) that can be adjusted to reduce memory usage or offload more to the GPU?
  2. Is there a recommended strategy for long-duration mapping with high memory efficiency?
  3. Is memory usage expected to grow indefinitely, or should it plateau during normal operation?

Any suggestions would be very helpful.
Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions