a month ago
Issue: I have a cron job that runs once a day for approximately one hour. With the metrics filter set to one day, CPU usage appears only while the job is running and is zero for the rest of the day. However, the memory chart shows constant usage outside the job’s run time, suggesting the service continues to use about 2 GB of memory when it is not running.
I believe memory usage should be zero between runs. This is consistent with the 15-minute and one-hour views, which show zero memory usage when the job is not running.
Expected: In longer time ranges, such as one day or seven days, memory usage should spike while the cron job runs and return to zero between runs, similar to the CPU chart.
1 Reply
a month ago
What you're seeing comes from how the memory chart draws longer time ranges. Memory is plotted as a point-in-time reading, so when no new samples arrive between cron runs, the chart keeps showing the last value it recorded until the next run. CPU works differently: gaps are drawn as zero.
The flat ~2 GB line on the 1-day and 7-day views doesn't mean your service is using memory between runs. That's why the 15-minute and 1-hour views, which sample more often, show memory dropping to zero once the job finishes.
Status changed to Awaiting User Response Railway • about 1 month ago
24 days ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 24 days ago