Perhaps this is an odd question, perhaps not. Is anyone using anything to monitor their users RAM utilization? I'd like to be able to simply track the users who are constantly hitting the limit of their RAM. Thoughts? One could use TOP of course, but I don't like that for several reasons (mostly overhead). What I'm really interested in is measuring how many times a user runs out of physical RAM and moves heavily over to swap. This seems like a very very tricky thing to sort out in my head. I'm hoping that someone has a nice simple answer because I'm over thinking it!
Monitor users RAM usage?
Best answer by ChrisL
Hi Chris,
We don't use an EA, or even the JSS to track this - the data is kept in another, homegrown database that we've had for years. Our older tool has some overlapping function with the JSS, and where possible I've tried to move such data into the JSS, but some of it is tricky.
We have the client machines take readings of pageouts, cpu load, and cpu usage every 10 minutes. The samples (like the output of the last line of my script above) are appended to a file on the local drive, then 4x/day they are submitted to the central server, where each sample becomes a record in a table. (well, three tables, one for pageouts, one for load, and one for usage). From that granular data, we can run reports to find the data for a machine, or find the machines that are eating all their RAM all the time, or just focus on certain times of the day.
Since EAs are only gathered when a full recon is run, you'd either have to run recons every few minutes to get a reasonable granularity (not really an option), or you could have some other process running that appends samples to a file, then the EA could get the file contents into the JSS. But then you'd have to have other code that parses the EA contents into individual samples. And you might have to have special code to find and merge samples from other recons on the same computer.
As you've been thinking, you can also just have something on the client machines that gathers the samples, then the EA computes a daily average and stores it. That might be the best option for getting something usable quickly.
I know several people have asked to be able to gather EAs separately from a full recon, and I submitted a feature request asking for better options for EA collection (https://jamfnation.jamfsoftware.com/featureRequest.html?id=686) Both of those would help with gathering this kind of data into the JSS.
Good Luck with it!
-Chris
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.