grails-profiles / base

2 stars 12 forks source link

JMX shutdown does not work with java9+ #31

Open olliefreeman opened 5 years ago

olliefreeman commented 5 years ago

The JMX shutdown code expects the following to resolve

 def agent = [vm.systemProperties.getProperty("java.home"), "lib", "management-agent.jar"].join(File.separator)

However the new java library configuration does not have the jar files in that location.

The classpath (certainly with OpenJDK) is

"${java.home}!/java.management"

This means JMX shutdown does not work, and I am trying to work out how to get the API call shutdown to work as this is not working either.

olliefreeman commented 5 years ago

I'm running on Mac OS X openjdk 12.0.2 gradle 5.6.1 groovy 2.5.8 grails 4.0.0

All installed using SDKMan. java.home is configured correctly