java - How to find cpu,io,memory utilization of a loading page in web application -
I have written a Java file, using JSP, servlets, that I want to run the run-time test on-up I am I have never done this before and just curious about how it was,
I am interested in knowing how to run CPU, memory and io usage, except for real time, when the application is running is. Your idea is appreciated.
Usually you do not measure them from within the application, but by running another tool on the same host.
If you just want to see the effects on the host operating system, you can use CPU / memory / IO to view, on a good program like Windows on the top
(* nix box) ), Or good old task manager. Of its Java process (usually alllet containers such as Totalkat)
If you want more detailed information on the actual Java process, you can connect or get VM information (including Memory and CPU). Do the process of self (with Java 6) You should not be able to do any of the criteria for Java processing at startup; You should be able to do this from a local machine; For Java 5, or a remote connection, you can use the command line argument (Remote ) JMX connection.)
Finally, if you want in fact in depth explanation of the use of the various methods (which you 're again), you have a prof I need to use Iyers, many of them are for Java - the biggest commercial with your kit and zerophyller (in my inefficient opinion). I believe that a decent profiler is also created in NetBeans IDE, the process of adding it to your application can vary depending on the application, but it will allow you to "drill down" in the CPU time, To see which classes / methods did the highest cycle and drill down as well, in memory usage, to see which classes take the most memory They are.
Comments
Post a Comment