How to access or create a memory log?

Hello all,

I have noticed that memory creeps up, but cannot establish where the problem is. Unfortunately, by the time it is realized by the end user there is a problem, the Pi needs to be restarted leaving no record (that I am aware of) for what the recent memory usage was, and which apps (of any kind) are using the most memory.

Can anyone tell me how to either access such a log, OR how to create one - either in Xojo or other means on the RPi?

Thank you,
Tim

Are you talking about how much memory your app uses, or the system in general?

Hello Eric.

I’d prefer the entire system.
Tim

Maybe run top periodically and pipe the output to a file.

Have a look at Releases · kmaehashi/XojoInstruments · GitHub .

Thanks everyone!

Tim

Another possibility is munin: https://munin-monitoring.org/

Implemented this for a project, and it turned out that we did not need it, but it did provide some very useful information.

From the website:
Munin is a networked resource monitoring tool that can help analyze resource trends and “what just happened to kill our performance?” problems. It is designed to be very plug and play. A default installation provides a lot of graphs with almost no work.

Our Leak Finder project is included with MBS Xojo Plugins.

See blog post

and here online: /Main/Leak Finder