Linux – Monitor load & resource usage of single process on linux (Red Hat)

linuxperformance-monitoringredhat

Does anyone know of a way to monitor the load & resource usage of a single program. What I have is a process I'd like to know how much load it puts on the server but it's not something I can just "monitor" to get a feel for.

What I'd like to do is something like

$ monitor "someapp" &

and let it run, then review some sort of log. Is there any Red Hat package or downloadable program that can more or less monitor an entire processes load & resource usages??

Best Answer

SystemTap is what you are looking for. It won't be easy (but it won't be too hard either) but it will pay off.

SystemTap is the RH designated & supported tool for this type of data gathering. The rpm package name is systemtap. It's similar to Solaris' Dtrace.

And, no, it is not a vague question. But ... yes, looking at only the behavior of one process and ignoring the rest of the system might give you a vague answer.