pcdshub / solid-attenuator

LCLS Solid Attenuator System IOC
https://pcdshub.github.io/solid-attenuator
Other
1 stars 4 forks source link

Memory leak #48

Closed klauer closed 3 years ago

klauer commented 4 years ago

Leaking at approximately 15 megabytes/hour - at this rate the IOC host would crash in approximately 17 days (no swap space, 7.7GB RAM total).

Find it and plug it...

klauer commented 3 years ago

OK, so one leak: find_configs leaks a considerable amount of memory - the small sliced arrays are references to the larger arrays. It's not the only leak, but I think it's the primary one.

klauer commented 3 years ago

Need to check this during the downtime. Should be easy to verify that #52 was "good enough".

klauer commented 3 years ago

Updated IOC during the shutdown and restarted. It appears to be doing well now.

Will reopen if this is observed again.