我目前使用的是 grails 3.1。 请分享任何监控插件的详细信息,例如 grails 2.* 中使用的 grails-melody。 据我所知,grails-melody 插件不适用于 grails 3+ 版本。 感谢您的帮助。
最佳答案
JavaMelody 插件与 Grails 3.1 完美配合。
源文档是最新的,在这里:
https://github.com/javamelody/grails-melody-plugin
只需将其包含在您的 build.gradle 中:
dependencies {
runtime 'org.grails.plugins:grails-melody-plugin:1.60.1'
}
截至 2016 年 9 月,当前版本为 1.60.1。
只需构建并运行您的项目,然后转到 http://localhost:8080/monitoring查看您的监控信息。替换 http://localhost:8080当然,根据您的配置位。
关于performance - Grails 3.1应用的内存监控,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36521174/