0

How to get correct total and used CPU RAM values?

Hello

My solution: I used Node.JS with module "os" (os.freemem and os.totalmem) for get free and total RAM values but after launch web-application i saw that free ram is equal close to 60mb and total ram is equal close to 500mb.

And then I have a question: Is it correct values or i do something wrong and values on LS424 are msut be other? If they are must be other, then how to get correct values?

2 comments

  • 1
    Avatar
    Aaron Rollins

    You can use roDeviceInfo in BrightScript to get this information.

    https://brightsign.atlassian.net/wiki/spaces/DOC/pages/370673305/roDeviceInfo#roDeviceInfo-GetLoadStatistics(parametersAsroAssociativeArray)AsString

    However the the usefulness of this information is not always obvious. BrightSign players use memory heaps for various functions. meminfo is useful for tracking down memory leaks while debugging, but not necessarily for active monitoring the health of the device.

    Similarly loadavg will give you information about the CPU utilization on your device, but  is better used to track changes significant sustained changes than spikes.

  • 0
    Avatar
    Alexander Shipin

    Aaron,
    Thank you for answer.
    I used your solution way and get same information as i get in my solution.
    Then that is mean my solution was right and now i have one more solution way by using roDeviceInfo

Please sign in to leave a comment.