clockwork icon indicating copy to clipboard operation
clockwork copied to clipboard

Out of memory errors in FileStorage

Open staabm opened this issue 5 years ago • 2 comments

One of our users reported php out of memory errors in the FileStorage.

Is there any chance to e.g.

  • reduce memory footprint
  • use a memory efficient serilalizing strategy
  • prevent this errors from happening
  • would using a bzip stream-wrapper improve efficiency https://www.php.net/manual/en/function.stream-get-wrappers.php ? ?

staabm avatar Oct 17 '20 06:10 staabm

Not in the short-term I'm afraid. I'm well aware this is currently a big weakness of Clockwork. Unfortunately the best we can do right now is to suggest collecting less data and collecting data only for relevant requests.

Long-term I will be exploring a complete re-work of the metadata format that would allow as to achieve dramatically lower memory usage all around. No time frame for that right now though.

itsgoingd avatar Oct 21 '20 22:10 itsgoingd

What I am doing is to add __debugInfo() methods to the objects to remove all unnessessary information from the debug output. This helps as there's support for this method. I think we added also some other methods which are looked at, but I cannot remember which they were.

mahagr avatar Oct 22 '20 08:10 mahagr