Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
student:java:profiling [2020/12/31 12:18] bernstdhstudent:java:profiling [2020/12/31 14:33] (current) bernstdh
Line 14: Line 14:
   - Execute your program (see below).   - Execute your program (see below).
   - In the "Applications" pane, double-click on your program.   - In the "Applications" pane, double-click on your program.
-  - Click on either the "Sampler" tab or the "Profiler" tab (see below).+  - Click on either "Sampler" tab  or the "Profiler" tab (see below).
   - Click on <key>CPU</key> to start collecting data about CPU usage or <key>Memory</key> to start collecting data about memory usage (see below).   - Click on <key>CPU</key> to start collecting data about CPU usage or <key>Memory</key> to start collecting data about memory usage (see below).
   - Use your program as appropriate.   - Use your program as appropriate.
Line 26: Line 26:
 === Starting the VisualVM === === Starting the VisualVM ===
  
-Depending on your operating system and the JDK, the VisualVM can be started from the command line by executing the program ''%%visualvm%%'' or ''%%jvisualvm%%''.+Depending on your operating system and the JDK, the VisualVM can be started from the command line by executing the program ''%%visualvm%%'' or ''%%jvisualvm%%'' from the directory/folder in which it was installed.
  
  
 === Executing Your Program === === Executing Your Program ===
  
- +In principal, the VisualVM can be used with programs that are executed inside of an IDE (e.g., it can be [[student:eclipse:visualvm_install|integrated with Eclipse]]), however, subtle issues often arise. So, if you have problems attempting to profile your program when you run it inside of your IDE you will need to run it outside of your IDE. The two easiest ways to do this are to: (1) execute the program from the command line or (2) use an [[ student:java:jar | executable/runnable JAR file ]].
-In principal, the VisualVM can be used with programs that are executed inside of an IDE (such as Eclipse), however, subtle issues often arise. So, if you have problems attempting to profile your program when you run it inside of your IDE you will need to run it outside of your IDE. The two easiest ways to do this are to execute the program from the command line and to use an [[ student:java:jar | executable/runnable JAR file ]].+