我在"中型"Amazon EC2实例上在Ubuntu上运行CF 9.0.1.CF一直在间歇性地进行癫痫发作(每天数次......但特别是没有隔离到高峰使用时间).在这种情况下,运行顶部让我(或类似的东西):
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+COMMAND
15855 wwwrun 20 0 1762m 730m 20m S 99.3 19.4 13:22.96 coldfusion9
Run Code Online (Sandbox Code Playgroud)
因此,它显然消耗了大部分服务器资源.在我的cfserver.log中,每个seize-up的前导中都出现以下错误:
java.lang.RuntimeException: Request timed out waiting for an available thread to run. You may want to consider increasing the number of active threads in the thread pool.
Run Code Online (Sandbox Code Playgroud)
如果我运行/ opt/coldfusion9/bin/coldfusion状态,我得到:
Pg/Sec DB/Sec CP/Sec Reqs Reqs Reqs AvgQ AvgReq AvgDB Bytes Bytes
Now Hi Now Hi Now Hi Q'ed Run'g TO'ed Time …Run Code Online (Sandbox Code Playgroud) 在Spree中对产品列表没有分页并且仅列出前10个产品的错误行为进行故障排除时,我尝试在本地开发环境中重现错误,并在第一页加载时收到错误:
ArgumentError (dump format error)
Run Code Online (Sandbox Code Playgroud)
和往常一样,我先检查了我的另一个脑子.最热门的搜索结果是:https://github.com/rails/rails/issues/2509
虽然启动该线程的用户和其他几个海报尝试从Rails 3.0.9升级到Rails 3.1,但我认为它不适用于我的情况.我正在运行的Spree 0.60.2应用程序是在Rails 3.0.9.
然而,事实证明,只需清除我的localhost cookie就可以解决问题.为什么?