I have very small memory footprint to work with 1 GB. I have a long polling process that seems to create a memory leak which I haven’ been able to diagnose/correct. I am using commandbox. It runs for about 3 weeks and crashes.
Lucee crashes from running out of memory. I get the 403 Connection not available if I do a http request to it.
So my question is: what is the best way to check for this and restart lucee/commandbox? I know I can curl it every min and check for the output with a cron/bash . I have commandbox/lucee running as a systemd service but it does not auto restart.
I am curious if there is a better way to detect the memory crash in lucee and restart it, if there is any mechanism in lucee or commandbox to do this, or what you would do?
Let me know what you think. Thanks.