{
  "id": "rg-jdumpsessions",
  "title": "RG.JDUMPSESSIONS",
  "url": "https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/gears-v1/jvm/commands/rg-jdumpsessions/",
  "summary": "Outputs information about existing Java sessions.",
  "tags": [
    "docs",
    "operate",
    "stack"
  ],
  "last_updated": "2026-04-22T11:55:45+02:00",
  "page_type": "content",
  "content_hash": "d039c19067a343fc1abc53a2abcde21c94edf0cf32068612a67a6a5059b538f2",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "[code example]\n\nOutputs information about existing Java sessions.\n\n\nWhen you run the `RG.JEXECUTE` command, it creates a Java session."
    },
    {
      "id": "arguments",
      "title": "Arguments",
      "role": "parameters",
      "text": "| Name | Description |\n|------|-------------|\n| VERBOSE | Output more details about registrations. |\n| SESSIONS | Only output information about sessions that appears in the given list. Can only be the last argument. |"
    },
    {
      "id": "returns",
      "title": "Returns",
      "role": "returns",
      "text": "Returns information about existing Java sessions."
    },
    {
      "id": "examples",
      "title": "Examples",
      "role": "example",
      "text": "Get information for all sessions:\n\n[code example]\n\nGet more detailed information about a specific session:\n\n[code example]"
    }
  ],
  "examples": [
    {
      "id": "overview-ex0",
      "language": "sh",
      "code": "RG.JDUMPSESSIONS [VERBOSE] [SESSIONS s1 s2 ...]",
      "section_id": "overview"
    },
    {
      "id": "examples-ex0",
      "language": "sh",
      "code": "> redis-cli RG.JDUMPSESSIONS\n1)  1) \"mainClass\"\n    2) \"gears_experiments.test\"\n    3) \"version\"\n    4) (integer) 1\n    5) \"description\"\n    6) \"foo\"\n    7) \"upgradeData\"\n    8) (nil)\n    9) \"jar\"\n   10) \"/home/user/work/RedisGears/plugins/jvmplugin/-jars/6876b8b78ccfc2ad764edc7ede590f573bd7260b.jar\"\n   11) \"refCount\"\n   12) (integer) 2\n   13) \"linked\"\n   14) \"true\"\n   15) \"ts\"\n   16) \"false\"\n   17) \"registrations\"\n   18) 1) \"0000000000000000000000000000000000000000-1\"",
      "section_id": "examples"
    },
    {
      "id": "examples-ex1",
      "language": "sh",
      "code": "> redis-cli RG.JDUMPSESSIONS VERBOSE SESSIONS gears_experiments.test\n1)  1) \"mainClass\"\n    2) \"gears_experiments.test\"\n    3) \"version\"\n    4) (integer) 1\n    5) \"description\"\n    6) \"foo\"\n    7) \"upgradeData\"\n    8) (nil)\n    9) \"jar\"\n   10) \"/home/user/work/RedisGears/plugins/jvmplugin/-jars/6876b8b78ccfc2ad764edc7ede590f573bd7260b.jar\"\n   11) \"refCount\"\n   12) (integer) 2\n   13) \"linked\"\n   14) \"true\"\n   15) \"ts\"\n   16) \"false\"\n   17) \"registrations\"\n   18) 1)  1) \"id\"\n           2) \"0000000000000000000000000000000000000000-1\"\n           3) \"reader\"\n           4) \"CommandReader\"\n           5) \"desc\"\n           6) (nil)\n           7) \"RegistrationData\"\n           8)  1) \"mode\"\n               2) \"async\"\n               3) \"numTriggered\"\n               4) (integer) 0\n               5) \"numSuccess\"\n               6) (integer) 0\n               7) \"numFailures\"\n               8) (integer) 0\n               9) \"numAborted\"\n              10) (integer) 0\n              11) \"lastRunDurationMS\"\n              12) (integer) 0\n              13) \"totalRunDurationMS\"\n              14) (integer) 0\n              15) \"avgRunDurationMS\"\n              16) \"-nan\"\n              17) \"lastError\"\n              18) (nil)\n              19) \"args\"\n              20) 1) \"trigger\"\n                  2) \"test\"\n                  3) \"inorder\"\n                  4) (integer) 0\n           9) \"ExecutionThreadPool\"\n          10) \"JVMPool\"",
      "section_id": "examples"
    }
  ]
}
