Hi, we have a script that’s been running out of memory, and was wondering if Dragonfly DB has any options to modify how much memory a script is allowed to use:
We didn’t run into this in our staging environment but running into this issue at the moment in production - so if anyone can shed a light it would be very much appreciated 
edit: we are using close to maxmemory on that dragonfly db recently actually (21Gb / 24Gb)
Thank you
Hi! As far as I know, we don’t limit a scripts memory, only it’s stack depth, so your’re running out memory in general because of your script
I saw you asking about SCRIPT GC - you can try running it manually from time to time to force lua to free any unsused objects after a script invocation. Otherwise, try either using more memory or updating the script to create less heavy objects/collections
1 Like
Thank you so much for chiming in! @dranikpg
@intj9839 If you need further community help, generally we need to ask about your hardware setups, workloads, actual scripts/commands you are using, etc. Basically, a way or an environment we can easily reproduce your issue—it would be much easier that way.