You can use the xscmd utility
to display the size of sessions in your Java application. Displaying
session sizes can be useful to troubleshoot problems in your data
grid.
xscmd.bat|sh -c showSessionSize -cep hostname:port(,hostname:port)
-sid session_ID -sh session_handle -g grid_name
[-wacr web_application_context_root]
For example, you might run the following command: xscmd.bat -c showSessionSize -g session -cep 9.42.139.213:2809 -sh c -sid LFMzQnDX5k87xztMF3ri6jU -wacr /A -user xcadmin -pwd xcadmin
After you run the command, the following
session information is displayed:*** Session Id: LFMzQnDX5k87xztMF3ri6jU
Number of session attributes: 2
Total size of session metadata: 488 bytes
Total size of session attributes: 243 bytes
Total size of session: 731 bytes
Metadata Key and Value:
Key: LFMzQnDX5k87xztMF3ri6jU/A
Size of key: 88 bytes
Size of value: 400 bytes
Individual Attribute Key and Value:
Key: LFMzQnDX5k87xztMF3ri6jU/A_session.reqCount
Size of key: 128 bytes
Size of value: 2 bytes
Key: LFMzQnDX5k87xztMF3ri6jU/A_user
Size of key: 104 bytes
Size of value: 9 bytes