The Terracotta Management Console (TMC) is a web-based administration and monitoring application for standalone Ehcache.
The account setup page appears when you first log into the Terracotta Management Console (TMC) using the temporary initial login credentials.
The account setup page is where you initialize the two role-based accounts that can access the TMC:
After you enter a username and password for each account, click Setup. You will be logged out, and the initial login credentials can no longer be used. Users can now log in using the credentials you have set up.
Once a user logs in, there is no default timeout for inactivity. To set a default timeout for inactivity, uncomment the following block in web.xml and set the timeout value (in minutes) using the <param-value> element:
<context-param>
<description>
After this amount of time has passed without user activity, the user will be
automatically logged out.
</description>
<param-name>idleTimeoutMinutes</param-name>
<param-value>30</param-value>
</context-param>
When you initially log on to the TMC, only the default connection group and default connection exist. If a node that can be monitored is running on localhost at the port specified by the default connection, then the default connection will appear as an active connection. If not, then the default connection appears as an unavailable (inactive) connection.
You can create and edit managed connections and connection groups using the Manage Connections dialog. To open the Manage Connections dialog, click Manage Connections on the tool bar. Click Close to dismiss the Managed Connections dialog.
Managed connections can be assigned to custom connection groups to simplify management tasks. Managed connections not explicitly assigned to a group are in the default group.
Connection groups appear as top-level items in the left-hand navigation menu.
To add a new managed connection, follow these steps:
The New Connection Group panel appears.
Saved new groups appear in the connection-group list, connection details, and the TMC navigation panel.
To edit an existing connection group, choose the connection group in the Connection Groups list, then click Edit in the Connection Group Details panel. A dialog allows you to change the name of the connection group, and to confirm or cancel the change.
To delete an existing connection group, choose the connection group in the Connection Groups list, then click Delete in the Connection Group Details panel. A dialog allows you to confirm or cancel the delete operation.
Managed connections are connections that you monitor and administer using the TMC.
To add a new managed connection, follow these steps:
The connection details panel appears.
A managed connection can be assigned to more than one connection group.
The location is a URI in the following form:
<scheme>:<host>:<port>
A typical URI will appear similar to:
http://my-ehcache-host:9888
The connection timeout limits the time for successfully establishing a connection to the node. This ensures that the TMC does not hang waiting for a connection in the case where the node is unreachable.
The read timeout limits the time the TMC waits for data from a connected node. This ensures that the TMC does not hang waiting for a connection in the case where the node is unresponsive.
Saved connections appear in the connections menu. If the connection cannot be established, a warning appears.
Managed connections that appear in the connections list can be edited or deleted.
To edit an existing managed connection, follow these steps:
The connection details panel appears.
A managed connection can be assigned to more than one connection group.
To delete an existing connection, select the connection in the connections list, then click Delete on the connection details panel. A dialog allows you to confirm or cancel the delete operation.
When a connection group is selected in the navigation menu, the group's connections are shown. Active connections are listed under the Active Connections tab. Inactive (unreachable) connections are listed under the Unavailable Connections tab.
Connections are grouped by category. Ehcache connections are listed in the "EHCACHE" section.
Ehcache connection groups appear nested under top-level connection groups in the navigation menu. To view existing Ehcache connection groups under a particular connection group, expand that connection group. The Ehcache connection group is the node labeled "Ehcache".
Select an Ehcache connection group in the navigation menu to display an overview panel with a table of Ehcache statistics for all Ehcache connections. The statistics table has the following columns:
Names can be edited in Manage Connections.
Off-heap memory is RAM not used by the heap but available to the caches through BigMemory.
Only active connections appear under the connection category.
When an Ehcache connection is selected in the navigation menu, connection management panels are activated.
To monitor a specific Ehcache connection, expand its Ehcache connection group in the navigation menu, then select the target Ehcache connection.
The Ehcache connection Overview tab displays configuration and health metrics for CacheManagers and caches. To toggle between the two, click Health Metrics or Topology.
The Ehcache connection Topology panel allows you to view the caches available under active CacheManagers. To view the caches under a specific CacheManager, expand that CacheManager.
To view a CacheManager's configuration, select that CacheManager by clicking its name. Then click the config link next to the CacheManger's name to open a window containing its configuration.
To view a cache's configuration, select that cache by clicking its name. Then click the config link next to the cache's name to open a window containing its configuration.
The Health Metrics panel displays certain cache statistics to help you track performance and resource usage across all CacheManagers. Statistics are displayed in a table with the following columns:
To view the hit rate, element count, and off-heap usage for each of a CacheManager's caches, expand that CacheManager.
Use the Monitoring tab to display cache statistics for tracking the performance of Ehcache and discovering issues. Statistics can be viewed in chart or table format. To toggle between the two, click Charts or Statistics.
Use the pull-down menus to display statistics for any connected CacheManager. For charts, you can select to view statistics for a specific cache or for all of the selected CacheManager's caches.
Cache statistics charts graph real-time values for a number of cache metrics.
System time is plotted along each chart's X axis, while the statistical values are plotted along the Y axis. To view the value of any single point on graph, float the mouse pointer over that point. This also displays the units used for the statistic being graphed.
To choose the type of statistic graphed by a particular chart, click the chart to open a list of available statistics. Choose a statistic, then click OK to accept the change. The chart immediately begins to graph the chosen statistic.
The cache-statistics table displays real-time values for a number of cache metrics.
To choose the types of statistics displayed in the table, click Configure Columns to open a list of available statistics. Choose statistics, then click OK to accept the change. The chart immediately begins to graph the chosen statistic.
The Management panel displays a table listing the active CacheManagers for the selected Ehcache connection. The table's first column lists the name of the CacheManager. The remaining columns display the following CacheManager information:
The table's first column lists the name of each cache. The remaining columns display the following attributes and metrics:
The Diagnostics panel provides information on the usage of the heap, off-heap, and disk tiers by the caches of the selected CacheManager.
To view tier usage by any active CacheManager, select that CacheManager from the CacheManager drop-down menu.
The Relative Cache Sizes by Tier table displays usage of the tier selected from the Tier drop-down menu. The table has the following columns:
Click a row in the table to set the cache-related tier graphs to display values for the named cache.
The panel shows the following bar graphs:
Float the mouse pointer over a bar to display an exact usage value. Click a tier's bar to display values for that tier in the Relative Cache Sizes by Tier table.
The Selected Cache drop-down menu determines which cache is shown in the cache-related tier graphs and highlighted in the Relative Cache Sizes by Tier. The menu also indicates if the cache uses size-based (ARC) or entry-based sizing.