cryostatio / cryostat

Secure JDK Flight Recorder management for containerized JVMs
https://cryostat.io
Other
20 stars 10 forks source link

[Bug] Better handling missing modules in target JVM #616

Open grzesuav opened 3 months ago

grzesuav commented 3 months ago

Current Behavior

Currently, when jdk.management.jfr module is missing in target VM, :

Expected Behavior

See notification / popup suggesting what is the actual problem, like missing JFR module

Steps To Reproduce

No response

Environment

- OS:
- Environment:
- Version:

Anything else?

Related discussion - https://github.com/cryostatio/cryostat/discussions/595#discussioncomment-10420960

andrewazores commented 3 months ago

https://github.com/cryostatio/cryostat/discussions/595#discussioncomment-10431218

grzesuav commented 3 months ago

Just to put here idea by @andrewazores : possibly check MXBeans present in target vm.

IIRC there are two versions of connection (because of differences in java versions):