Issue Description
Type: bug report or feature request
Describe what happened (or what feature you want)
com.alibaba.nacos.client.Worker.longPolling.fixed-fbnacos.cogo.club_8847-7bb8387e-ca9f-4763-a9db-8eedd4e3ed8c c.a.n.c.c.h.ServerHttpAgent.httpPost:159 [NACOS SocketTimeoutException httpPost] currentServerAddr: err : connect timed out
Describe what you expected to happen
How to reproduce it (as minimally and precisely as possible)
Tell us your environment
spring boot 2.1.0
nacos config : com.alibaba.boot
nacos-config-spring-boot-starter
0.2.6
config配置:
nacos:
config:
server-addr: http://127.0.0.1:8847
username: nacos
password: xxxx
namespace: 057f83b0-16b2-4740-8a84-3fe860fa733a
data-id: xxxx.yaml
auto-refresh: true
group: DEFAULT_GROUP
type: yaml
bootstrap:
enable: true
log-enable: true
3条答案
按热度按时间zvokhttg1#
报连接超时的时候,这个地址 http://127.0.0.1:8847/能访问吗
bxpogfeg2#
nacos/conf/application.properties 中新增
server.tomcat.accept-count=8192
另外,Linux 内核 查看 net.ipv4.tcp_max_syn_backlog 以及 net.core.somaxconn 的配置,比如sysctl net.core.somaxconn
如果小于 8192 则修改 /etc/sysctl.conf 新增或者修改对应的值即可,然后sysctl -p
最后重启 nacos 看看。wsewodh23#
Thanks for your feedback and contribution. But the issue/pull request has not had recent activity more than180 days. This issue/pull request will be closed if no further activity occurs7 days later.
We may solve this issue in new version. So can you upgrade to newest version and retry?
If there are still issues or want to contribute again. Please create new issue or pull request again.