FG
💻 Software

Writing a CPU/RAM usage log over a period of time to file on CentOS

Fresh5 days ago
Mar 15, 202617277 views
Confidence Score0%
0%

Problem

I'm looking for an application or line of code that would let me observe a process, save the info in a number of variables, then put the gathered info on a file. I've been trying with variations of but no luck. I am running several CentOS virtual servers, VM is a 2GB RAM, 2 processor. A script that…

Error Output

top

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Writing a CPU/RAM usage log over a period of time to file on CentOS

Low Risk

The standard is enough. result: First field is CPU usage in %, second is physical memory usage in kbytes.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment