Listen queue size is greater than the system max net.core.somaxconn (128)解决
来源:互联网 发布:上海移动网络客服 编辑:程序博客网 时间:2024/06/08 15:30
背景
迁移一个nginx+uwsgi+django项目,在uwsgi启动时报错。
错误
启动日志中的错误:Listen queue size is greater than the system max net.core.somaxconn (128)
解决
- 错误的提示很清楚,再加上网上一搜,就知道是uwsgi的配置文件中的listen的值设置太大了,超过系统默认值128,报错
- 但是网上全部是改uwsgi的listen参数的,都是说把listen的值改得比128小就行了。但是,项目有项目的要求,如果项目希望同时连接数超过128怎么办呢?
- 找了一下,需要修改/proc/sys/net/ipv4/tcp_max_syn_backlog /proc/sys/net/core/somaxconn这两个文件,修改方法 root权限, echo 8912 > /proc/sys/net/ipv4/tcp_max_syn_backlog 即可。当然,具体数字根据机器性能和项目要求确定。
阅读全文
0 0
- Listen queue size is greater than the system max net.core.somaxconn (128)解决
- OGG-01705 input trail file './dirdat/fc075295' is greater than the size of the file
- How Can the Packet Size Be Greater than the MTU?
- net.core.somaxconn
- net.core.somaxconn 设置
- Hadoop配置 - net.core.somaxconn
- net.core.somaxconn的作用
- [GDB] which is more than max-value-size
- UTF8 encoding is longer than the max length 32766
- CareerCup Compute the rearrangement of x that is closest to y but still greater than y
- warning: the frame size of 1104 bytes is larger than 1024 bytes [-Wframe-larger-than=]
- Whole is Greater than Sum of Parts
- Data size bigger than max size for this type: 5829
- specified class size for type `CatType' is smaller than the parent type's `GObject
- warning: the frame size of 1456 bytes is larger than 1024 bytes
- warning: the frame size of 1040 bytes is larger than 1024 bytes
- warning: the frame size of 1040 bytes is larger than 1024 bytes
- warning: the frame size of 1040 bytes is larger than 1024 bytes
- Redis的使用
- jdbc实现的orm工具类
- 行转列,同一字段合并转列,多值合并
- 在Eclipse中找不到sun.misc.Launcher类的解决方法
- 人类认知体系结构
- Listen queue size is greater than the system max net.core.somaxconn (128)解决
- dll注入技术
- php一些简单数组函数的实现、1
- 指针
- HDU 2191 :悼念512汶川大地震遇难同胞——珍惜现在,感恩生活
- 可忽略的小概率
- android SharePreference底层原理
- 常用的性能测试指标
- Kubernetes部署大数据组件系列二:一键部署Hadoop集群