Web Sessions User Guide : Using Web Sessions : Managing Web Sessions Using JMX
Managing Web Sessions Using JMX
Terracotta exposes JMX MBeans to gather statistics. You can view the statistics using any JMX monitoring application such as JConsole or VisualVM.
To use JMX with Web Sessions, start your management console and connect it to your application server.
The console below displays the Web Sessions MBeans.
The following table describes the Web Sessions MBeans.
MBean
Data Type
Description
Average Session Lifetime
Integer
Average local session lifetime (in seconds) @return average session lifetime, or -1 if no sessions have expired.
Average Session Size
Long
Average local session size (in bytes).
Concurrency
(Integer)
Number of segments for the map backing the underlying server store managed by the Terracotta Server Array. If concurrency is not explicitly set (or set to "0"), the system selects an optimized value.
Context Path
String
Context path for this servlet context.
Global Number Of Sessions
Long
Total number of live sessions that exist in the cluster.
Hit Ratio
Double
Local hit ratio of the sessions cache @return hit ratio n, or NaN if unavailable.
Max Bytes Off Heap
Long
Maximum number of bytes allowed in the off-heap tier.
Max Bytes On Heap
Long
Maximum number of bytes allowed in the heap tier.
Maximum Session Lifetime
Integer
Maximum local session lifetime (in seconds) @return maximum session lifetime, or -1 if no sessions have expired.
Minimum Session Lifetime
Integer
Minimum local session lifetime (in seconds) @return minimum session lifetime, or -1 if no sessions have expired.
Nonstop Timeout
Long
Number of milliseconds an application waits for any cache operation to return before timing out, or -1 if no timeout is configured.
Number Of Sessions
Long
Number of session objects in local memory.
Rejoin Enabled
Boolean
Whether client is configured to automatically rejoin its cluster if ejected.
Session Locking
Boolean
Whether session locking is enabled.
Session Timeout Seconds
Integer
Number of seconds a session waits before timing out, or -1 if no timeout is configured.
Sessions Created Count
Long
Number of sessions created locally since initial startup.
Sessions Creation Rate
Long
Rate of local session creation since initial startup. This number represents the number sessions created in the previous minute.
Synchronous Write
Boolean
Whether configured to synchronously flush enclosed changes to the Terracotta Server Array, blocking the unlocking thread until changes have been acknowledged as committed.
Total Session Size
Long
Total local session size (in bytes).
For more information about Terracotta and JMX, see "Monitoring and Management Using JMX" in the BigMemory Max Administrator Guide.
Copyright © 2010-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback