Rails应用程序访问速度非常慢

时间:2022-09-11 16:06:07

We are trying to access a Rails application running on a Ubuntu machine from a Windows machine and the time it takes to load the application is extremely slow. The ping operation from the Windows machine to the Ubuntu machine comes back in < 1ms. How do I debug this issue?

我们正在尝试从Windows机器访问在Ubuntu机器上运行的Rails应用程序,并且加载应用程序所需的时间非常慢。从Windows机器到Ubuntu机器的ping操作返回<1ms。我该如何调试此问题?

1 个解决方案

#1


3  

If you are running your rails applications with command 'rails server' which by default a webrick, it will take time for other machines to load, try installing the application in apache server within your ubuntu machine and access it with your system ip and the symlink.(http://0.0.0.0/symlink) For the first time when you restart your apache server, it will take time and then it should load in shorter time than in webrick.

如果您使用命令'rails server'运行rails应用程序,默认情况下为webrick,则需要时间来加载其他计算机,尝试在ubuntu计算机内的apache服务器中安装应用程序并使用系统ip和符号链接访问它。(http://0.0.0.0/symlink)第一次重新启动Apache服务器时,它需要一段时间,然后它应该在比webrick更短的时间内加载。

#1


3  

If you are running your rails applications with command 'rails server' which by default a webrick, it will take time for other machines to load, try installing the application in apache server within your ubuntu machine and access it with your system ip and the symlink.(http://0.0.0.0/symlink) For the first time when you restart your apache server, it will take time and then it should load in shorter time than in webrick.

如果您使用命令'rails server'运行rails应用程序,默认情况下为webrick,则需要时间来加载其他计算机,尝试在ubuntu计算机内的apache服务器中安装应用程序并使用系统ip和符号链接访问它。(http://0.0.0.0/symlink)第一次重新启动Apache服务器时,它需要一段时间,然后它应该在比webrick更短的时间内加载。