jvm-mon icon indicating copy to clipboard operation
jvm-mon copied to clipboard

TypeError: Cannot read property 'Id' of undefined

Open sic2 opened this issue 7 years ago • 4 comments

I got the following error while running jvm-mon. Not sure if there are logs I can inspect or not.

$ jvm-mon
TypeError: Cannot read property 'Id' of undefined
    at renderVmCharts (/usr/local/Cellar/jvm-mon/0.3/libexec/jvm-mon.js:174:25)
    at addData (/usr/local/Cellar/jvm-mon/0.3/libexec/jvm-mon.js:150:9)
    at Timeout._repeat (/usr/local/Cellar/jvm-mon/0.3/libexec/jvm-mon.js:204:5)
    at Timeout.wrapper [as _onTimeout] (timers.js:408:11)
    at tryOnTimeout (timers.js:224:11)
    at Timer.listOnTimeout (timers.js:198:5)

sic2 avatar Oct 26 '17 13:10 sic2

Hmm, appears to be this line: https://github.com/ajermakovics/jvm-mon/blob/4d9a4fe21bf5283f2341a58b1b983b4eea8f597d/src/dist/jvm-mon.js#L173-L174 where 'vm' ends up undefined.

Does this happen on startup or after some action?

ajermakovics avatar Oct 29 '17 11:10 ajermakovics

This does not happen with all my java programs. Anyway, it happens as soon as I try to inspect a java process.

sic2 avatar Oct 30 '17 08:10 sic2

I'm facing with this error too in centos.

makaraset avatar Mar 15 '18 01:03 makaraset

Unfortunately, I'm not able to reproduce this issue. Does it prevent you from monitoring all processes or just one?

ajermakovics avatar Mar 15 '18 09:03 ajermakovics