Memory Idle

Memory Idle

by Toni Sutoni -
Number of replies: 3

I have a problem with the moodle server performance refreshment, yesterday users online are 500 users, free memory usage is 57.5%. Today user online is 80 users but memory usage is free still the same. Why the memory does not refresh to less usage.

Sometimes it happen until free memory 14%  for 10 user online. If i restart server will work free memory 65%.

Average of ratings: -
In reply to Toni Sutoni

Re: Memory Idle

by Ken Task -
Picture of Particularly helpful Moodlers

May we ask what you are using to acquire that information?  Not saying it's false info., just one might be in need of using more tools to see what is running/using resources etc. on a system.   Case in point ... automated backups ... which is just an example.   Or a maldetect run or a clamscan of moodledata/filedir/ Or a scan by a bot seeking the latest issues with PHPMyAdmin or even for the exsitence of php files which have been compromised in previous versions of Moodle.

If you'd share platform info (OS, etc) forum members might have some commands or even little CLI apps to help.

'SoS', Ken


In reply to Toni Sutoni

Re: Memory Idle

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Memory allocation of a modern operating system is not as simple as used-not-used. Attached is a graph from Linux as monitored by Munin.
Attachment memory-day.png
Average of ratings: Useful (1)
In reply to Toni Sutoni

Re: Memory Idle

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Aha! A fellow bass player big grin

You haven't even told us what your operating system is, which makes any kind of answer impossible. However, memory allocation is not a simple thing.

The first thing would be to ask how have you tuned your server applications to use your available memory? For example, if you have a 16G database server and MySQL is tuned to only use 1G then you're going to see a lot of free memory.