I have been tasked with load
testing an application on an Unix machine, let's refer to the application as BASE. I will be writing a load simulator class (in
java 1.6) to load the application from a Windows XP machine, let's refer to this application as TESTER.
Is there a straightforward way to get the memory usage and cpu % of BASE from within the TESTER code? This will allow me to capture data conveniently in terms of load units generated and the associated cpu usage and memory usage.
I am totally new to testing but, as usual, have to have this finished quickly. Any pointers, suggestions, or links would be appreciated.
From my initial research there doesn't seem to be a straightforward way to do this as I am not a scripting guru (shell scripts) or finding a way to capture JConsole information.
Thanks in advance for your help and advice.
JD