【问题标题】:memory monitoring of grails 3.1 applicationGrails 3.1 应用程序的内存监控
【发布时间】:2016-07-30 23:46:35
【问题描述】:

我目前正在使用 grails 3.1。 请分享任何监控插件的详细信息,例如 grails 2.* 中使用的 grails-melody。 据我所知,grails-melody 插件不适用于 grails 3+ 版本。 任何帮助表示赞赏。

【问题讨论】:

    标签: performance grails grails-3.1


    【解决方案1】:

    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 位。

    【讨论】:

      【解决方案2】:

      由于 Grails 3 是基于 Spring Boot 构建的,因此您可以立即使用 Actuator。请参阅this article 了解更多信息。

      【讨论】:

        猜你喜欢
        • 2011-03-18
        • 2013-07-17
        • 1970-01-01
        • 2011-06-02
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-10-09
        • 2023-03-17
        相关资源
        最近更新 更多