Including server-side measures like CPU utilization in the Overview Report
For Silk-Performer 16.x:
- You can select "Configure Monitoring | Use custom monitoring" option to load up Silk Performance Explorer or you can simply access Silk Performance Explorer by accessing Tools | Silk Performance Explorer..
The difference is that if you use "Use custom monitoring", the default monitors such as Active Users will be loaded while if you use the Tools option to access Silk Performance Explorer, you will only see a empty Performance Explorer with no monitors loaded.
- Either way, choose Real-Time Monitoring tab | System | Select from predefined Data Sources. (You will be greeted by the Data Source Wizard if you use "Custom Monitoring" option from the previous step so there is no need to select via the tab in that case)
- Within the system selection screen, select the Data source group that you want (We will use the perfMon as an example here). For instance, if you are going to monitor operating system data, you should select Operating System Data | Windows 7/Vista/2008 | System (perfmon).
- Within the Connection Parameters screen, enter the server host-name, user name, password and domain if any for a user account who has full administrator permissions on the remote system.
- Select Next to connect to the remote host and choose the measures that you want to monitor via checking on the check boxes.
- Select Finish and by default, you should see a monitor chart and a monitor writer pops up, displaying the selected measures as well as captured data.
- On the Workflow bar, select the Recording button (under the Real-Time Monitoring).
- A 'Save As' prompt box will appear, asking you to save a r@[host name]@[date and time stamp].tsd file. Take note of the directory on where you are saving the file to and click Save to save the file.
- Proceed to the File option (the button with horizontal stripes located on the top left corner of Silk Performance Explorer. If you press Alt key, you will see the tool tip F over it) and choose Save Workspace.
- Provide the workspace with a name and select a directory to store the .pew file. Please also take note of the directory location of where you are saving the .pew file as well. Press Save to save the workspace.
- Go back to Silk-Performer and go to Settings | Active Profile | Replay tab | Results | Monitoring.
- Under the Monitoring options, check the "Automatically start monitoring" option on and turn the Use Custom Monitoring template radio button on. The text field under it should be enabled by now.
- Alongside the text field, there is a Browse Icon. Click on it to select the .pew file which you have just saved from step 10 and select OK.
- Proceed to run your load test within Silk Performer, with the "Automatically start monitoring" check box enabled. Your monitoring template will appear.
- While the test is running, you should see that the monitor writer is writing out to a file r@@Default Monitor Writer.tsd file.
- Once the test is completed, you should see a screen similar to below within Silk Performance Explorer which groups not only the client measures but also the server side measures which you have configured to capture.
- Expand the Server Measures/Default Monitor Writer/localhost/System.
You can create an empty chart via Results | Chart | New Chart and start dragging and dropping different counters from the different sub categories like Memory | Available Bytes from the left panel to the empty chart. These measures should be the ones you want to appear on the overview report.
If you wish to include all the measures, you can simply right click on localhost and select Add to active Chart/Table. A new chart with all the measures under the localhost folder will be added.
- While the newly created chart is opened, go back to the overview report and click on the custom charts link to navigate to the custom charts section.
- Click on the "here" link in the "Click here to customize this section" under the custom chart section.
- Under the "Customize your HTML Overview Report" dialog box, you should see a section named Custom Charts with a unchecked check box next to it. You should see the name of the newly created chart under it as well. Click on it to enable it. Then select Customize to add the chart.
- After selecting Customize, you should see the chart added under the custom charts section with all the custom server measures that you have added. Next step, you will need to save this report as a template so that after every load test, this template can be used to generate a similar overview report with this custom chart in place.
- Go to Reports | Save As Template and select a directory to save the ovt template file. Please take note of where you save this ovt file.
- Next, you will need to apply this template.
To apply this template to all the projects, you will need to open Performance Explorer | File | Options | Reporting tab and enable the "Use template (.ovt) when creating a new HTML Overview Report" checkbox. Then use the Browse option alongside with the text field under it to go to the directory where you saved the .ovt file previously (from step 22).
To apply this template only to the tests that run in the current project, open SIlk-Performer | Settings | Active Profile | Record | Results | Time Series tab | Overview Report template section. Again, use the Browse option to select the .ovt file that is saved previously (from step 22).
Press OK to save the settings.
- Now each time when you run a load test, the overview report that is generated after the load test will include the custom chart with the updated server statistics.
For versions before Silk-Performer 16.0:
Please follow the steps below:
- Run a test
- In Performance Explorer open File | New | Monitor report
- Select Monitor server, Add Data source and select the source required e.g. Operating System data and Select Windows 2000/XP. Fill in the connection parameters and select all the measures required. This will open a monitor report window.
- Click on the red pencil icon to begin writing data out to the tsd file.
- Select | File | Save Work space as | Name the file and ensure it is saved to the include folder
- Go back to SilkPerformer and Go to Settings | Active profile | Results | Monitoring - Enable the option Automatically start monitoring and the option to use a custom monitoring template. Click on the ellipsis button and browse to the include folder where you saved the .PEW file in step 4 above. Click OK to apply the setting
Note: the include directory will be : C:\Program Files\Silk\Silk Performer\Working\Include by default
- Re-Run the test. You will notice that Performance Explorer will open and the Monitor report will begin to run.
When the test has finished open Results | Explore Time Series
Note: If this does not automatically open the overview report for the most recent test, please browse to the most recent load test folder in the project directory and open.
- When the Overview Report has opened go to custom charts and select the option "Click here to customize this section". In the Custom Overview-Report Wizard select Add new graph and select Empty graph and click Finish.
- In the left pane of Performance Explorer right click and select Add results and browse to the most recent load test folder (generated for test run as per step 6) and add the monitor report. The monitor report will have been created as per test run in step 6 above.
Note: This file will begin with r@@
This folder and its contents will now be added to the left pane of the window. Now drag and drop the contents of the file to the empty graph created in step 7.
- Click on the Overview Report tab at the bottom of the main pane. The custom chart you just created will be added to the Overview Report.
- To make sure this template is always used for future reports open File | Save as Template. This will save the file to the include directory with a file extension .OVT
- To apply this template to all projects: Open Performance Explorer | Settings | Options | Reporting. Select "Use template when creating a new overview report". Browse to the include directory and select the OVT file saved in Step 10 above.
To apply this template only to tests run in the current project open SilkPerformer | Settings | Active profile | Record | Results | Time Series tab | Overview Report section. Browse to the include directory and select the OVT file saved in Step 10 above.
Please note that this setting overrides the Performance Explorer "Use template when creating a new Overview Report" setting.
Now each time you run a load test the Server statistics will be updated and included in the overview report.