【问题标题】:rails 3 ruby 1.8.7 app slow startup on the webrails 3 ruby​​ 1.8.7 应用程序在网络上启动缓慢
【发布时间】:2013-11-28 16:46:56
【问题描述】:

我一直在使用 rails 3 和 ruby​​ 1.8.7 并且总是(在我所有的应用程序中), 我遇到了启动时间延迟的问题。

有时加载正常,有时需要超过 12 秒(或更长时间)才能开始加载网站。

我的一个网站

http://www.tuwebenlaweb2.com.ar/ 或者 http://www.tuwebenlaweb3.com.ar/

我可以做些什么来测试我的应用程序或更改一些配置以加快启动速度??

谢谢

华金

【问题讨论】:

  • 您如何托管您的应用程序? VPS 公司,您正在使用的堆栈是很好的信息。

标签: ruby-on-rails-3 deployment startup ruby-1.8.7


【解决方案1】:

抱歉,这不是一个答案,但是当我 ping 您的网站时,我收到了丢包。因此,您的服务器或数据中心的某处似乎出现了网络中断。

64 bytes from 208.113.217.188: icmp_seq=0 ttl=45 time=165.655 ms
64 bytes from 208.113.217.188: icmp_seq=1 ttl=45 time=432.985 ms
64 bytes from 208.113.217.188: icmp_seq=2 ttl=45 time=426.050 ms
64 bytes from 208.113.217.188: icmp_seq=3 ttl=45 time=399.613 ms
64 bytes from 208.113.217.188: icmp_seq=4 ttl=45 time=434.376 ms
Request timeout for icmp_seq 5
64 bytes from 208.113.217.188: icmp_seq=6 ttl=45 time=434.430 ms
64 bytes from 208.113.217.188: icmp_seq=7 ttl=45 time=434.368 ms
64 bytes from 208.113.217.188: icmp_seq=8 ttl=45 time=434.478 ms
64 bytes from 208.113.217.188: icmp_seq=9 ttl=45 time=434.232 ms
64 bytes from 208.113.217.188: icmp_seq=10 ttl=45 time=434.676 ms
64 bytes from 208.113.217.188: icmp_seq=11 ttl=45 time=272.736 ms
Request timeout for icmp_seq 12
64 bytes from 208.113.217.188: icmp_seq=13 ttl=45 time=434.228 ms
64 bytes from 208.113.217.188: icmp_seq=14 ttl=45 time=433.443 ms
64 bytes from 208.113.217.188: icmp_seq=15 ttl=45 time=434.299 ms
64 bytes from 208.113.217.188: icmp_seq=16 ttl=45 time=434.369 ms

这对于 server fault.com 来说可能是一个更好的问题

【讨论】:

  • 在您的控制台中输入“ping tuwebenlaweb2.com.ar”。如果数据包丢失,则完成请求需要更长的时间。
猜你喜欢
  • 1970-01-01
  • 2019-02-27
  • 2015-05-03
  • 2010-11-08
  • 2018-02-20
  • 2014-07-13
  • 2011-07-17
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多