• Recently I’ve noticed some pretty big discrepancies with the real time ram usage figures. The plugin is currently installed on a development site that’s being staged and not live.

    When the server is restarted the reporting looks accurate, but as time goes on over a couple days the usage creeps up to high levels even though the site has been idle. After an up time of 3 days the plugin is reporting the current Ram usage is 74%, but htop in linux shows the system’s current Ram usage is 26%.

    Server OS : Linux / 64Bit OS
    Server Software : nginx/1.24.0
    PHP Version : 8.2.6
    WP – 6.3.2

    • This topic was modified 1 year, 5 months ago by Moobs.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author iSaumya

    (@isaumya)

    Hi,
    The plugin uses commands that are available across all Linux servers to get the RAM data. For example the following linux command is used to get the total RAM:

    grep -w 'MemTotal' /proc/meminfo | grep -o -E '[0-9]+'

    And this command is used to get the free RAM data:

    grep -w 'MemFree' /proc/meminfo | grep -o -E '[0-9]+'

    As you can see in both cases the data is fetched from /proc/meminfo so, you need to look why that file is showing wrong data after a couple of days of uptime.

    Thread Starter Moobs

    (@nickyb713)

    Hi, thanks for the reply. It’s possible I’m looking at this incorrectly, but even with checking the meminfo the plugin data still seems off.

    Plugin Report:
    Total RAM : 16 GB
    Real Time Free RAM : 8 GB
    Real Time RAM Usage : 7 GB

    Linux:

    grep -w ‘MemAvailable’ /proc/meminfo | grep -o -E ‘[0-9]+’
    11595836
    grep -w ‘MemTotal’ /proc/meminfo | grep -o -E ‘[0-9]+’
    16366548

    Shouldn’t the RAM Usage be around 4.8 GB?

    Plugin Author iSaumya

    (@isaumya)

    Hi,
    at the top of the admin bar if you see an option for WP Server Stats, under there there will be an option for clearing this plugin cache. Can you try it? Or if you don’t see that settings, try completely deleteing the plugin from WP Admin and then reinstalling. Check if that resolves your issue.

    Thread Starter Moobs

    (@nickyb713)

    Thanks, neither clearing the plugin cache or reinstalling the plugin seemed to change what was reported in the dashboard. I had to update and restart the server. Since rebooting the system, the plugin’s reporting seems accurate again.

    I’ll keep an eye on it and try as you suggested again if the reporting seems inaccurate again over the next couple days.

    Plugin Author iSaumya

    (@isaumya)

    Hi,
    This is so wired. Without having access to the system, It’s hard to debug why this is happeing.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Real Time RAM Usage Inaccurate’ is closed to new replies.