I have a website running at VPS with Apache-FastCGI-Django stack. Sometimes it becomes very slow, taking minute to open a page or even throwing 503.
我有一个运行在VPS上的Apache-FastCGI-Django堆栈的网站。有时它变得非常慢,花一分钟打开一个页面甚至投掷503。
I checked top command and got: http://pastebin.com/8qdCPUQk. So we have some load, there is some free RAM and a several processes eating CPU.
我检查了top命令并得到了:http://pastebin.com/8qdCPUQk。所以我们有一些负载,有一些免费的RAM和几个进程吃CPU。
I looked into apache log files and checked that there are very few requests there.
我查看了apache日志文件并检查了那里的请求非常少。
After it checked one of the python processes with strace and it mostly contains
之后用strace检查了一个python进程,它主要包含
futex(0x16aab90, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
and sometimes
futex(0x16aab90, FUTEX_WAIT_PRIVATE, 0, NULL) = -1 EAGAIN (Resource temporarily unavailable)
Could you advice something on it? Thanks!
你能就此提出建议吗?谢谢!
1 个解决方案
#1
0
Solved it - because of the bug process gets into infinite loop after one of the requests.
解决了它 - 因为bug进程在其中一个请求之后进入无限循环。
#1
0
Solved it - because of the bug process gets into infinite loop after one of the requests.
解决了它 - 因为bug进程在其中一个请求之后进入无限循环。