找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 15854|回复: 11

Maximum number of open connections reached是怎么回事?

[复制链接]
PING百度什么的都正常.但就是很难打开,甚至提示标题里的英文. 路由器界面也登陆不上.但PING192.168.1.1又很正常.
只好手动重启了路由器才恢复的.可能是什么原因引起的呢?
我的恩山、我的无线 The best wifi forum is right here.
同样问题,求解。才把ADBYBY关闭了,又能正常上了,不晓得是不是这个插件设置问题。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

luci版的 ADBYBY过滤广告很给力,就是存在这个毛病,是不是配置文件有问题
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

lz是不是同时还开着s-s?
adbyby的bug。可以用脚本解决,定时重启adbyby就行。

点评

固件里面有s-s 但是禁止s-s自动启动 也冲突吗?  详情 回复 发表于 2015-10-5 17:13
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
像是有人解决了,在/etc/init.d/privoxy,里加入ulimit -s 2048就可以了。ulimit是一个很好的限制当前终端进程的一些优化选项,平时主要用来限制一些对cpu 内存占用相当高的进程,效果当然非常好

https://www.ibm.com/developerworks/cn/linux/l-cn-ulimit/
http://sourceforge.net/p/ijbswa/feature-requests/571/


Hi, folks. I am running privoxy on a cheap VPS box then I got a lot of "maximum number of open connections reached privoxy" error. It became almost unusable if 30~40 connections already established. After some dig, I figured out it was because pthread_create failed to spwan new thread. I realized my VPS box has only 256MB RAM. Manpages says RLIMIT_STACK soft limit size will be used as default stack size for pthread_create:

On  Linux/x86-32,  the  default  stack  size  for  a  new  thread  is  2 megabytes.  Under the NPTL threading implementation, if the
RLIMIT_STACK soft resource limit at the time the program started has any value  other  than  "unlimited",  then  it  determines  the
default  stack  size of new threads.  Using pthread_attr_setstacksize(3), the stack size attribute can be explicitly set in the attr
argument used to create a thread, in order to obtain a stack size other than the default.

Then I found out my VPS has set a pretty high stack size by default:
ulimit -s
10240

Then I added ulimit -s 2048 in /etc/init.d/privoxy then restart the service, the problem has gone.

I wonder if the default stack size will be more properly handled within privoxy configureation? Also using pthread_attr_setstacksize(&attr, stack_size) before creating the thread prevented some insane ulimit configurations caused huge memory use in privoxy.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

我用的是优酷路由宝刷潘多拉,SS用不上已经删掉了。etc/init.d下面没有privoxy。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

看花眼了。adbyby听说就是基于privoxy的,看看/etc/init.d/有没有adbyby之类的名字,然后在脚本里加了试试看看。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

lm317379829 发表于 2015-10-5 08:58
lz是不是同时还开着s-s?
adbyby的bug。可以用脚本解决,定时重启adbyby就行。

固件里面有s-s   但是禁止s-s自动启动   也冲突吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

没运行应该不冲突。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

解决没有 我也是遇到这情况 不得已就先把adbyby停了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

悲剧啊。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

我的ADBYBY也有同样问题。连luci都进不去了。只能ssh进去把ADBYBY杀一下,杀完了还会自启。
ps | grep "/usr/share/adbyby/adbyby" | grep -v 'grep' | awk '{print $1}' | xargs kill -9
所以需要马上进luci关ADBYBY。关了就好用。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 08:27

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表