Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3904

Sudden memory spike in Webapp

$
0
0

Something strange is happening with my Webapp deployed on a DigitalOcean Debian 12 droplet.

The memory graph shows sudden spikes in memory usage:

Currently:
Running the top command on the server’s console shows the app using 1.1GB of memory

But in Xojo, Runtime.MemoryUsed returns 381 MB.

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.

Has anyone seen this?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 3904

Trending Articles