如何调试慢rails应用程序启动时间? [英] How do I debug a slow rails app boot time?

查看:191
本文介绍了如何调试慢rails应用程序启动时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的rails应用程序是好的,快速一旦它加载,但启动是残酷慢。控制台,乘客等都需要几乎10秒钟来踢。似乎是超过了应该的方式。

Our rails app is nice and fast once it is loaded but the startup is brutally slow. Console, passenger etc all take almost 10 seconds to kick in. Seems to be way more than it should be.

我应该使用哪些工具或方法来磨练最慢的零件?

What tools or methods should I use to hone in on the slowest parts? What are the usual suspects?

推荐答案

我知道这是一个老问题,但我最近有一个加载时间的问题,这是我的宝石叉,帮助我找到哪些宝石是最慢的,这个宝石的好处是加载轨道控制台,所有的初始化都运行。

I know this is an old question but I recently had an issue with load times and this is my fork of gem which helped me find which gems were the slowest, the good thing about this gem is that loads up with the rails console, and all the initializers are run.

https://github.com/mark-ellul/Bumbler

这篇关于如何调试慢rails应用程序启动时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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