Installing the cache monitor

In this lesson you will learn that the dynamic cache monitor is an installable Web application that displays simple cache statistics, entries, and policy information.

Procedure

  1. Use the WebSphere Application Server Administrative console to install CacheMonitor.ear
    1. Starting and stopping quick reference.
    2. Open the WebSphere Integrated Solutions Console.
    3. Click Applications > New Application.
    4. In the New Application window, click New Enterprise Application.
    5. Click Browse and locate the CacheMonitor.ear file in the WAS_installdir/installableApps directory. Click Next.
    6. Select Detailed- Show all installation options and parameters, and click Next on the "Preparing for the application installation" window. You will receive an application security warning. Select continue.
    7. In Step 1: Select the installation options, accept the default values, and click Next.
    8. In Step 2: Map the modules to the servers, and select the application servers to be monitored. Choose both of the server names from the list of servers available to map to for the servers that will be monitored. Then, check the box beside the Dynamic Cache Monitor module, and click Apply. As part of the entry in the server column of the table, you should now see an additional server listed.
    9. Click Next until Step 6 or click on Step 6.
    10. In Step 6: Map virtual hosts for Web modules, check the box beside the Dynamic Cache Monitor Web module and select one of the following:
      • VH_(instance_name)_Admin
      • VH_(instance_name)_Tools
    11. Go to Step 8: Map security roles to users or groups.
      • Check the box next to Administrator. Click Maps Users. In the search string, search for '*' to get all results. Select build and click Add or the right arrow. Click OK.
      • Check the box next to Administrator. Click Maps Groups. In the search string, search for '*' to get all results. Select Administrator and click Add or the right arrow. Click OK.
    12. Click Next for the Summary window, accept the default values, and click Finish.
    13. Click Save.
  2. Check the plugin-cfg,xml plugin configuration file located in the WAS_installdir\profiles\profile_name\config\cells\cell_name\nodes\webserver1_node\servers\webserver1 directory.
    • In the plugin-cfg.xml file, ensure that the /cachemonitor/* alias has been automatically added at the appropriate virtual_host selected in Step 9 of this tutorial.
    • If the /cachemonitor/* alias has not been added to the configuration file, in the WebSphere Application Server Administrative console:
      1. Go to the Administrative Console main page, click Servers > Server Types > Web Servers.
      2. Check the box for webserver1 and click Generate Plug-in, and then check the box and click Propagate Plug-in. This will then regenerate the configuration file.
  3. Use the WebSphere Application Server Administrative console to start the cache monitor.
    1. Click Applications > Application Types > WebSphere enterprise applications.
    2. Check the box next to Dynamic Cache Monitor, and click Start.
  4. Access the Web Application at https:// hostname: virtual_host_port/cachemonitor.
  5. If the application asks for a login, use the same Username and Password used to login to the Websphere Application Server Administrative Control.
    Note: hostname is the name of the computer hosting the WebSphere Application Server. virtual_host_port can be verified by going to the Administrative Control home page, then click Environment > Virtual Hosts > Appropriate Virtual host selected in step 9 of this tutorial > host aliases