These are chat archives for rhuss/jolokia

16th
Jun 2018
Jacob D'Onofrio
@jdonofrio728
Jun 16 2018 18:32

Hmm, does anyone know why this yields a value of null?

curl 'http://localhost:8778/jolokia/read/java.lang:type=MemoryPool,name=%2aEden%20Space/Usage/used'
{
  "request": {
    "path": "used",
    "mbean": "java.lang:name=*Eden Space,type=MemoryPool",
    "attribute": "Usage",
    "type": "read"
  },
  "value": null,
  "timestamp": 1529173755,
  "status": 200
}

When this shows the path exists:

curl 'http://localhost:8778/jolokia/read/java.lang:type=MemoryPool,name=%2aEden%20Space/Usage' 
{
  "request": {
    "mbean": "java.lang:name=*Eden Space,type=MemoryPool",
    "attribute": "Usage",
    "type": "read"
  },
  "value": {
    "java.lang:name=Par Eden Space,type=MemoryPool": {
      "Usage": {
        "init": 167772160,
        "committed": 167772160,
        "max": 167772160,
        "used": 136887216
      }
    }
  },
  "timestamp": 1529173768,
  "status": 200
}