使用 long-runtime-metrics 理解 Heroku Memory
Understand Heroku Memory using long-runtime-metrics
我的日志:
2015-01-11T21:27:51.320958+00:00 heroku[web.2]: source=web.2 dyno=heroku.11366593.5e2ebae2-460b-481b-826a-22c41bd90695 sample#memory_total=268.89MB sample#memory_rss=268.88MB sample#memory_cache=0.01MB sample#memory_swap=0.00MB sample#memory_pgpgin=74175pages sample#memory_pgpgout=5339pages
2015-01-11T21:27:52.194907+00:00 heroku[web.2]: source=web.2 dyno=heroku.11366593.471fa82a-4b2f-4819-946e-02635fe387c6 sample#memory_total=417.94MB sample#memory_rss=404.46MB sample#memory_cache=4.29MB sample#memory_swap=9.18MB sample#memory_pgpgin=747677pages sample#memory_pgpgout=643035pages
2015-01-11T21:28:07.011011+00:00 heroku[web.2]: source=web.2 dyno=heroku.11366593.82a95b43-b1d8-4fb7-9329-64fefb3bfe74 sample#memory_total=310.07MB sample#memory_rss=306.77MB sample#memory_cache=3.30MB sample#memory_swap=0.00MB sample#memory_pgpgin=302671pages sample#memory_pgpgout=223294pages
2015-01-11T21:28:13.287206+00:00 heroku[web.2]: source=web.2 dyno=heroku.11366593.5e2ebae2-460b-481b-826a-22c41bd90695 sample#memory_total=268.93MB sample#memory_rss=268.92MB sample#memory_cache=0.01MB sample#memory_swap=0.00MB sample#memory_pgpgin=74185pages sample#memory_pgpgout=5339pages
2015-01-11T21:28:29.199851+00:00 heroku[web.2]: source=web.2 dyno=heroku.11366593.82a95b43-b1d8-4fb7-9329-64fefb3bfe74 sample#memory_total=310.26MB sample#memory_rss=306.96MB sample#memory_cache=3.30MB sample#memory_swap=0.00MB sample#memory_pgpgin=302720pages sample#memory_pgpgout=223294pages
2015-01-11T21:28:34.433135+00:00 heroku[web.2]: source=web.2 dyno=heroku.11366593.471fa82a-4b2f-4819-946e-02635fe387c6 sample#memory_total=417.95MB sample#memory_rss=404.48MB sample#memory_cache=4.29MB sample#memory_swap=9.18MB sample#memory_pgpgin=747681pages sample#memory_pgpgout=643035pages
2015-01-11T21:28:35.388654+00:00 heroku[web.2]: source=web.2 dyno=heroku.11366593.5e2ebae2-460b-481b-826a-22c41bd90695 sample#memory_total=268.93MB sample#memory_rss=268.92MB sample#memory_cache=0.01MB sample#memory_swap=0.00MB sample#memory_pgpgin=74186pages sample#memory_pgpgout=5339pages
2015-01-11T21:28:51.260323+00:00 heroku[web.2]: source=web.2 dyno=heroku.11366593.82a95b43-b1d8-4fb7-9329-64fefb3bfe74 sample#memory_total=310.28MB sample#memory_rss=306.98MB sample#memory_cache=3.30MB sample#memory_swap=0.00MB sample#memory_pgpgin=302726pages sample#memory_pgpgout=223294pages
2015-01-11T21:28:55.235542+00:00 heroku[web.2]: source=web.2 dyno=heroku.11366593.471fa82a-4b2f-4819-946e-02635fe387c6 sample#memory_total=417.95MB sample#memory_rss=404.48MB sample#memory_cache=4.29MB sample#memory_swap=9.18MB sample#memory_pgpgin=747681pages sample#memory_pgpgout=643035pages
请注意 memory_total
在 1 分钟的 space 内跳跃了很多。我应该如何解释和理解它?
您有三个不同的 dynos 报告,名称为 web.2
- 检查 guid,5e2ebae2-...
、471fa82a-...
和 82a95b43-...
。
如果您检查每个旁边的内存数字,它们对于每个单独的测功机来说几乎是恒定的:即,您没有内存跳跃。
为什么你有三个同名的测功机是另一回事。也许您启用了预引导?这会在后台启动具有相同名称的新测功机。
我的日志:
2015-01-11T21:27:51.320958+00:00 heroku[web.2]: source=web.2 dyno=heroku.11366593.5e2ebae2-460b-481b-826a-22c41bd90695 sample#memory_total=268.89MB sample#memory_rss=268.88MB sample#memory_cache=0.01MB sample#memory_swap=0.00MB sample#memory_pgpgin=74175pages sample#memory_pgpgout=5339pages
2015-01-11T21:27:52.194907+00:00 heroku[web.2]: source=web.2 dyno=heroku.11366593.471fa82a-4b2f-4819-946e-02635fe387c6 sample#memory_total=417.94MB sample#memory_rss=404.46MB sample#memory_cache=4.29MB sample#memory_swap=9.18MB sample#memory_pgpgin=747677pages sample#memory_pgpgout=643035pages
2015-01-11T21:28:07.011011+00:00 heroku[web.2]: source=web.2 dyno=heroku.11366593.82a95b43-b1d8-4fb7-9329-64fefb3bfe74 sample#memory_total=310.07MB sample#memory_rss=306.77MB sample#memory_cache=3.30MB sample#memory_swap=0.00MB sample#memory_pgpgin=302671pages sample#memory_pgpgout=223294pages
2015-01-11T21:28:13.287206+00:00 heroku[web.2]: source=web.2 dyno=heroku.11366593.5e2ebae2-460b-481b-826a-22c41bd90695 sample#memory_total=268.93MB sample#memory_rss=268.92MB sample#memory_cache=0.01MB sample#memory_swap=0.00MB sample#memory_pgpgin=74185pages sample#memory_pgpgout=5339pages
2015-01-11T21:28:29.199851+00:00 heroku[web.2]: source=web.2 dyno=heroku.11366593.82a95b43-b1d8-4fb7-9329-64fefb3bfe74 sample#memory_total=310.26MB sample#memory_rss=306.96MB sample#memory_cache=3.30MB sample#memory_swap=0.00MB sample#memory_pgpgin=302720pages sample#memory_pgpgout=223294pages
2015-01-11T21:28:34.433135+00:00 heroku[web.2]: source=web.2 dyno=heroku.11366593.471fa82a-4b2f-4819-946e-02635fe387c6 sample#memory_total=417.95MB sample#memory_rss=404.48MB sample#memory_cache=4.29MB sample#memory_swap=9.18MB sample#memory_pgpgin=747681pages sample#memory_pgpgout=643035pages
2015-01-11T21:28:35.388654+00:00 heroku[web.2]: source=web.2 dyno=heroku.11366593.5e2ebae2-460b-481b-826a-22c41bd90695 sample#memory_total=268.93MB sample#memory_rss=268.92MB sample#memory_cache=0.01MB sample#memory_swap=0.00MB sample#memory_pgpgin=74186pages sample#memory_pgpgout=5339pages
2015-01-11T21:28:51.260323+00:00 heroku[web.2]: source=web.2 dyno=heroku.11366593.82a95b43-b1d8-4fb7-9329-64fefb3bfe74 sample#memory_total=310.28MB sample#memory_rss=306.98MB sample#memory_cache=3.30MB sample#memory_swap=0.00MB sample#memory_pgpgin=302726pages sample#memory_pgpgout=223294pages
2015-01-11T21:28:55.235542+00:00 heroku[web.2]: source=web.2 dyno=heroku.11366593.471fa82a-4b2f-4819-946e-02635fe387c6 sample#memory_total=417.95MB sample#memory_rss=404.48MB sample#memory_cache=4.29MB sample#memory_swap=9.18MB sample#memory_pgpgin=747681pages sample#memory_pgpgout=643035pages
请注意 memory_total
在 1 分钟的 space 内跳跃了很多。我应该如何解释和理解它?
您有三个不同的 dynos 报告,名称为 web.2
- 检查 guid,5e2ebae2-...
、471fa82a-...
和 82a95b43-...
。
如果您检查每个旁边的内存数字,它们对于每个单独的测功机来说几乎是恒定的:即,您没有内存跳跃。
为什么你有三个同名的测功机是另一回事。也许您启用了预引导?这会在后台启动具有相同名称的新测功机。