Usage

After installation you can call the portal application iView Monitor at any time by calling the URL

<server:port>/irj/servlet/prt/portal/prtroot/com.sap.portals.sherlok.Monitor

iView Monitor will start showing the Settings pane. Whatever you select in this pane will be visible in the Result pane.

 Settings Tab-Control

 Configuration Section

In the Configuration section you can select a configuration file and start/stop the monitor
Button Description
Start/Stop  Toggle button to start/stop monitoring
Reload Reset statistic and reload the configuration file

 Action Section

In the action section you can start the services of Sherlok
Button Description
Start Tracing start/stop automatic memory leak detection
Create sherlok.log start/stop logging
Execute GC execute garbage collection

 Result View Section

The Result-View section allows you to select the current monitor results
Button Description
Memory Usage View memory consumption
Method Timing View time consumption
Growing Classes View growing classes found so far
References Heap dump

 Result Filter Section

The Result-Filter section allows you to restrict the output by displayed values. All entries are combined with logical AND:
Button Description
Min.CurrSize Display only classes, which are responsible for more bytes
Min.CpuTime Display only methods, which consumed more CPU time
Min.Elapsed Display only methods, which elapsed more time
Min.NrCalls Dispaly only methods, which are call more

 Result Tab-Control

Depending on the selection you get different views on classes or methods. 

If you click in the header of any table, the entries of the selected column are sorted in descending order

The Result pane has a Filter text field, which allows you to filter classes by name of by methods. The dot at the beginning and the end of the string is used as wildcard.

 
Filter Description
Filter = . Select all classes
Filter = .htmlb. Select all classes of package html
Filter = .doContent Select all classes containing a method doContent

 Class View

The class view shows the memory consumption cumulated on class level. You can drill down to the garbage collection history by selecting an entry in the CurrSize column. You can drill down to the time consumption of methods in any class by selecting an entry in the Name column

 Methods View