[SOLVED] Restore - out of memory

If i try to restore backup (±500MB) with some sample app (about 100k events mostly generate during import testing). I end up with out of memory exception when server have 2GB ram (same with local docker instance when I have set limit 2GB for WSL2) In both case it isn’t issue with 4+ GB ram for my test case. But I worry about scaling in future when I have bigger application. I also want to attach profiler and check what happen but i am not able to make squidex workly locally.

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ ] Bug report
  • [x] Performance issue
  • [ ] Documentation issue or request

Expected behavior

I expect restoring from backup is not limit by memory it is perfectly fine if take longer but should not fail with out of memory for any “reasonable” HW.

Minimal reproduction of the problem

Non “minimal” backup with images & 100k+ evets.

Environment

  • [x] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: 4.6

I thought this has been fixed: https://github.com/Squidex/squidex/commit/5593733a36787bcae184cb8eddc18904077b7104#diff-f14d2787ae48c986023c2c43ef8c05c6R57

Not sure if it is already part of 4.6 <-- EDIT: It is not

1 Like

Ok, perfect I am able to run locally and make the exact same fix, and just during creating a pull request, I notice it was already fixed. Sorry for this bug report.

No problem, you are welcome…better to many bugreports than too few :wink: