help me resource usage
I am working on finding out my applications resource usage.
I tried to build a tool using java.
in that i executed the command ps -eo 'pcpu,rss,pid,ppid,args' to find the %cpu , memory usage.
My application spawn's 'n' no of threads. I need to consider all the thread's to find the resource usage.
With the above command , whether i am in the track or not.
Pl. help me in this regard.