我正在使用Nginx Web服务器和5个Thin应用服务器在Ubuntu上运行Rails。
每天系统会变得非常缓慢,有时会挂起。
我不确定是Thin服务器出了问题,但是当它挂起时,停止服务器会收到以下错误提示:
有时候它会找到PIDS,有时候又找不到。这是什么意思呢?
谢谢!
每天系统会变得非常缓慢,有时会挂起。
我不确定是Thin服务器出了问题,但是当它挂起时,停止服务器会收到以下错误提示:
Can't stop process, no PID found in tmp/pids/thin.3000.pid
这里是显示Thin启动和停止的日志:
bitnami@linux:/opt/bitnami$ thin -C projects/myapp/current/config/thin.yml start
Starting server on 127.0.0.1:3000 ...
Starting server on 127.0.0.1:3001 ...
Starting server on 127.0.0.1:3002 ...
Starting server on 127.0.0.1:3003 ...
Starting server on 127.0.0.1:3004 ...
bitnami@linux:/opt/bitnami$ thin -C projects/myapp/current/config/thin.yml stop
Stopping server on 127.0.0.1:3000 ...
Sending QUIT signal to process 21921 ...
>> Exiting!
Timeout!
Can't stop process, no PID found in tmp/pids/thin.3000.pid
Stopping server on 127.0.0.1:3001 ...
Sending QUIT signal to process 21945 ...
>> Exiting!
Timeout!
Can't stop process, no PID found in tmp/pids/thin.3001.pid
Stopping server on 127.0.0.1:3002 ...
Sending QUIT signal to process 21969 ...
>> Exiting!
Timeout!
Can't stop process, no PID found in tmp/pids/thin.3002.pid
Stopping server on 127.0.0.1:3003 ...
Sending QUIT signal to process 21993 ...
Timeout!
Sending KILL signal to process 21993 ...
Stopping server on 127.0.0.1:3004 ...
Sending QUIT signal to process 22017 ...
>> Exiting!
bitnami@linux:/opt/bitnami$
有时候它会找到PIDS,有时候又找不到。这是什么意思呢?
谢谢!
tmp/pids
目录以查看文件是否正在被创建?如果是,它们是否包含正确的进程 ID? - ipd