hello,
how can i measure the needed resources (RAM, CPU) from a programm running under linux (something like the windows task manager, but of course as an cmd-line-tool)?
thanks,
hello,
how can i measure the needed resources (RAM, CPU) from a programm running under linux (something like the windows task manager, but of course as an cmd-line-tool)?
thanks,
'top' gives you a summary of the most active things
'ps' has way too many options to display all sorts of information.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
top -p PID gives you a readout for a specific process, so first do a ps to find the process ID of your program, then do a top -p PID to have it monitor that program.