clockwork
clockwork copied to clipboard
Out of memory errors in FileStorage
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 ? ?
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.
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.