STS Spring Boot Dashboard Doesn't Recognize Su

2019-06-07 05:40发布

问题:

Similar to this question, but the Spring "Boot Dashboard" doesn't show as starting (the 'up arrow' icon); specifically the first two applications in the list below.

I could care less about the icon, but the resulting impact is that the applications cannot shutdown via the Boot Dashboard (required kill -9).

The applications start without any problem:

Started Application in 1.337 seconds (JVM running for 1.998)

All three applications are using the latest spring-boot-starter-parent version, 1.3.1.RELEASE.

The third application's start is reflected correctly, but I'm not sure where to look--within STS or within my app config--to troubleshoot the issue.

My STS version is:

Version: 3.7.2.RELEASE
Build Id: 201511261048
Platform: Eclipse Mars.1 (4.5.1)

回答1:

Please provide a sample app and I will debug the issue and then we can fix and/or provide a more precise answer to your question.

Without a sample app the best I can do is give vague hints that 'something' seems to be going wrong with the JMX lifecycle mgmt bean.

There may be a workaround you can use. The 'life-cycle-bean' support can be turned off explicitly and then you will fallback on pre boot 1.3 behavior for the dash. (This means STS will not distinguish 'starting' from 'running' state and will not use a 'ask nicely' approach to terminate the process but just forcefully shut it down).

If that's good enough for you then open the launch config for your app (e.g. by selecting it and clicking the 'pencil' button in the dash) and deselect the appropriate checkbox. See screenshot below: