追踪heroku上的应用程序内存使用情况 [英] track application memory usage on heroku

查看:119
本文介绍了追踪heroku上的应用程序内存使用情况的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有没有一种方法可以跟踪正在运行的dynos的内存使用情况?



感谢

解决方案

Heroku有一个 log-runtime-metrics <












$ heroku labs:enable log-runtime-metrics

以及内存使用情况将会显示在服务器日志中。阅读 Heroku log-runtime-metrics文档获取更多信息。



或者,您可以通过 log2viz 实时监控内存使用情况。


I'm hosting a rails application on heroku.

Is there a way I could track the memory usage of the running dynos?

Thanks

解决方案

Heroku has a log-runtime-metrics feature to monitor the memory usage now.

To enable, run

$ heroku labs:enable log-runtime-metrics

and the memory usage will be shown on the server log. Read Heroku log-runtime-metrics docs for more information.

Alternatively, you can have a live monitoring on the memory usage via log2viz.

这篇关于追踪heroku上的应用程序内存使用情况的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆