Grails 应用程序的分析器
是否有任何工具可以识别 Tomcat 服务器中部署的特定 Grails Web 应用程序的总内存使用量、CPU 和其他资源信息?
另外,如果我的 grails 应用程序使用 Quartz 插件,谁能告诉我如何分析特定的作业实例?
谢谢!
Are there any tools that can identify the total memory usage, cpu, and other information on resources of a specific grails web application deployed in a Tomcat server?
Also, if my grails app is using Quartz plugin, can anyone tell me how to profile a specific job instance?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我正在使用一堆工具来分析和监控我自己的 grails 应用程序。以下是帮助我实现此目标并毫无问题地工作的插件/工具:
JavaMelody插件:这个工具是必备的。只需安装插件并转到 /myapp/monitoring 即可完成。您将获得有关 cpu、内存使用情况、sql 查询、http 错误的所有信息...这应该足以满足您问题中描述的需求
应用程序信息插件:这个最新的插件非常有用,几乎不可或缺。它为您提供有关您的申请状态的各种信息。对于您关心的问题,您将可以访问描述内存使用情况的图表、有关会话的信息(打开或关闭)、有关休眠层各个方面的详细信息(缓存、表、实体...)。最重要的是,这个插件是由 SpringSource 团队成员 Burt Beckwith 开发和支持的。
Perf4j 插件 :此插件可帮助您轻松收集性能统计信息。我正在使用它,但它在调整您的应用程序时效果更好
您还可以使用其他插件/工具,例如: p6spy< /a>(用于记录 SQL 查询),Grails 审核日志记录插件(用于跟踪更改域对象)或 Profiler 插件,我可以保证它们正常工作(而不是所有插件!)。
您可以在 Grails 插件门户中通过标签 性能 找到所有这些插件,
我希望它有所帮助。
I am using a bunch of tools for profiling and monitoring my own grails application. Here are the plugins/tools that help me to achieve this and work without any problems:
JavaMelody plugin : this tool is a must-have. Just install the plugin and go to /myapp/monitoring and you're done. You'll get all information you need on cpu, mem usage, sql queries, http errors...It should be enough for your needs described in your question
Application Info plugin : this very recent plugin is very useful and almost indispensable. It gives you various info about your application status. For your concerns, you will have access to graphs describing memory usage, information about sessions (opened or closed), detailed information on every aspect of your hibernate layer (cache, tables, entities...). Above all, this plugin is developped and supported by Burt Beckwith, member of SpringSource team.
Perf4j plugin : This plugin helps you collecting performance statistics with minimal effort. I am using it but it has better use whe tuning your application
You can also use other plugins/tools like : p6spy (for logging of SQL queries), Grails Audit Logging plugin (for tracking changes of domain objects) or Profiler plugin for which I can guarantee that they work correctly (not the case for all plugins!).
All of these plugins you can find by tag performance in Grails plugins portal
I hope it helps.
以下是一些有关性能调整的有用文章:
Here is some useful articles about performance tuning:
http://grails.org/Profiler+Plugin
http://grails.org/Profiler+Plugin
MTH 提到的探查器插件只为您提供 Grails 应用程序各个部分的计时信息。为了监控资源使用情况,最好使用 JMX;这里有几个应该有帮助的链接。
The profiler plugin that MTH mentions only gives you timing info for various parts of the Grails app. For monitoring resource usage, you're better off using JMX; here are a couple of links that should help.