We've recently restructured part of our web hosting setup; splitting a series of applications over a number of users on a single (virtual) machine, to better be able to spot resource usage problems and the like.
At this juncture, however, the problem is that while if we have a candidate for troublesome behaviour this can be confirmed readily using top -u
, a method for getting a top-like display of resource usage grouped by user has thus far been elusive.
Any suggestions?
Edit:
To elaborate:
I don't want to see each and every process line (there are quite a few; up to 15 per user in extreme cases); I want to see one line per user; with the cumulative resource usage for that user, and one such line for every user.