So the app is using 700MB more than what Xojo reports and I can’t explain why there are sudden memory spikes.
When analysing objects in memory, I notice that there are more than a 100 _CallLaterTimer objects in memory.
I suppose that is the base class that is used when using Timer.CallLater
Usually the app only has 3 or 4 _CallLaterTimer objects.
That could be one source of memory leaks but I don’t expect each CallLaterTimer to use 7MB of memory.
I have a web app that’s under fairly constant use (up to 50 users hitting it multiple times per day) and it’s chugging along very happily under 50MB of RAM.
ARM build, macOS 14.6.1.
Clearly not a direct comparison with your app, but I do wonder if there’s a linux vs. macOS difference?
Edit to add:
Are you able to do a Sample of the process’s stack trace when in this state?