RAM space running out

Hello all,
I was using the particle argon for my product for more than one week and now the RAM space is running out. Is there any option to clear the RAM while running? Could you please provide suggestions to reduce RAM usage?


You could call System.reset() from time to time to recover the “lost” space.

But when you lose RAM gradually I’d suspect your code is suffering from heap fragmentation (e.g. “overuse” of String objects) and maybe also some other memory leak.

To better advise we’d need to see your code.


Hi, there is this Out of memory handler that you can use.
Like ScruffR mentioned, this will only address the symptoms and not the cause.


There’s also a guide for optimizing memory usage:


@ScruffR , @gusgonnet , @rickkas7 Thanks everyone for your support.