The Terracotta Management Console (TMC) is a web-based administration and monitoring application for standalone Ehcache.
To confirm the version of the TMC you are running, and for other information about the TMC, choose About from the toolbar.
When you first connect to the TMC, the authentication setup page appears, where you can choose to run the TMC with authentication or without. Authentication can also be enabled/disabled in the TMC Settings panel once the TMC is running.
If you do not enable authentication, you will be directly connected to the TMC without being prompted for a login/password. Note that with authentication disabled, the TMC cannot connect to secured nodes.
If you enable authentication, an account setup page appears. Note that with authentication enabled, the TMC can connect only to secured nodes.
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 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. This panel displays the selected connections attributes, including whether at least basic security is enabled. The security detail is not editable.
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. Connections are identified by name and location (URL). An icon next to the connection's location indicates whether at least basic security is enabled (closed lock) or if no security is in force (open lock).
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 displays 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. Each cache in the caches table also includes an icon to indicate if it distributed in a Terracotta cluster.
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.
The following statistic can be displayed for the selected item:
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 (or set the option to display all statistics), then click OK to accept the change. The table immediately begins to display the chosen statistics.
The Management panel displays a table listing the active CacheManagers for the selected Ehcache connection. The table's columns display the following CacheManager information:
MaxBytesLocalDisk and MaxBytesLocalHeap.
The table's 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.
Click Settings to open a dialog where global TMC settings can be configured.
Use Polling Interval Seconds to set the granularity of polled statistical data. Note that shorter polling intervals can have a greater effect on the overall performance of the nodes being polled.
Use the Authentication Enabled checkbox to enable or disable authentication. If you enable authentication and confirm your choice, the TMC displays the account setup page. Connections to unsecured nodes may be lost. If you disable authentication, connections to secured nodes may be lost.
To reset all settings to default values, click Reset to Defaults.