polipo http proxy 不稳定

439 views
Skip to first unread message

Yiling Cao (c2h2)

unread,
Oct 11, 2011, 10:26:14 AM10/11/11
to sh...@googlegroups.com
每每运行一段时间就crash了。。。 必须重启。。。 不知到大家有碰到过吗?

我在我两台server上都碰到这情况。

Yiling Cao (c2h2)

unread,
Oct 11, 2011, 10:28:23 AM10/11/11
to sh...@googlegroups.com
无数此类 log:
45681 Refusing client connections for one second.
45682 Couldn't establish listening socket: Too many open files
45683 Refusing client connections for one second.
45684 Couldn't create socket: Too many open files
45685 Connect to hq.sinajs.cn:80 failed: Too many open files
45686 Couldn't establish listening socket: Too many open files
45687 Refusing client connections for one second.




2011/10/11 Yiling Cao (c2h2) <yilin...@gmail.com>
每每运行一段时间就crash了。。。 必须重启。。。 不知到大家有碰到过吗?

我在我两台server上都碰到这情况。

Xi Shen

unread,
Oct 11, 2011, 11:07:32 AM10/11/11
to sh...@googlegroups.com
Too many open files

可能是polipo自己的问题。打开file handle,不关掉;也可能是你系统有别的程序的bug,导致file handle用完了。

--
Regards,
David Shen

http://about.me/davidshen
https://twitter.com/#!/davidshen84

Shell Xu

unread,
Oct 11, 2011, 9:37:03 PM10/11/11
to sh...@googlegroups.com

我完全没问题,三台机器,其中一台vps。

From P81HD

文剑

unread,
Oct 11, 2011, 11:43:40 PM10/11/11
to sh...@googlegroups.com
并发连接数过高,超过open files的限制

当前是这么多
ulimit -a | grep open

需要酌情增大,如
ulimit -n 2048

2011/10/12 Shell Xu <shell...@gmail.com>



--
Best,

文剑

Yiling Cao (c2h2)

unread,
Oct 11, 2011, 11:45:16 PM10/11/11
to sh...@googlegroups.com
我的request 数量比较多, 有时候1分钟上千个request... 

系统肯定没问题, 其中也有VPS, 和dedicated server.

源泉星火(张明源)

unread,
Oct 11, 2011, 11:53:11 PM10/11/11
to sh...@googlegroups.com
那就加大ulimit 吧!

2011/10/12 Yiling Cao (c2h2) <yilin...@gmail.com>



--
明源
http://www.Linuxzh.org
Twitter: @muxueqz

Yiling Cao (c2h2)

unread,
Oct 12, 2011, 12:13:06 AM10/12/11
to sh...@googlegroups.com
好, 我以加大, 如果还有问题, 我会回帖的.

ulimit 后 需要加在 /etc/rc.d 之类的地方吗?

2011/10/12 源泉星火(张明源) <zhangmin...@gmail.com>

源泉星火(张明源)

unread,
Oct 12, 2011, 12:56:42 AM10/12/11
to sh...@googlegroups.com
如果用ulimit,需要,并且需要重启polipo。

Albert Lee

unread,
Mar 13, 2017, 4:09:24 AM3/13/17
to Shanghai Linux User Group



muxueqz於 2011年10月12日星期三 UTC+8下午12時56分42秒寫道:

Albert Lee

unread,
Mar 13, 2017, 4:09:27 AM3/13/17
to Shanghai Linux User Group


c2h2於 2011年10月11日星期二 UTC+8下午10時26分14秒寫道:
每每运行一段时间就crash了。。。 必须重启。。。 不知到大家有碰到过吗?

我在我两台server上都碰到这情况。

Proxy error: 504 Connect to ip.gs:80 failed: Connection reset by peer.
不明白,现在重启也不管用了,完全被封,求指教 

Yiling Cao

unread,
Mar 13, 2017, 10:27:33 AM3/13/17
to sh...@googlegroups.com
自己写了个python proxy 解决了。或者用ATS

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout



--
Reply all
Reply to author
Forward
0 new messages