linux - Can not connect right now. can not assign requested address? - Server Fault
we experiencing high load on our dedicated servers lately. users see error message
"can not connect right now. can not assign requested address"
popping randomly.
we have 2 linux application servers, running lightspeed web server , 1 mysql/mariadb database server.
we not sure, if error coming web server or mysql.
is there can change in our config, stop error coming up?
i think need more information in order (what kind of server, cpu, memory etc). here basic items check:
- run top see processes taking highest memory , cpu. can run
free -msee memory usage. - based on above output check
lsof|grep <app_name>see files open. tell application focus on. netstat -vatnl |grep time_waitornetstat -tulpen |grep <port>. check tcp connections , status. "cannot assign" message seems related networking binding or tcp sockets. should check tcp settings such net.core.somaxconn or net.ipv4.tcp_max_syn_backlog. there tons of guides out there tune these values web , database servers.- for mysql load , performance, can run
show processlistmysql prompt. provide list of current queries. example, here can identify query has long runtime.
hope helps. luck!
Comments
Post a Comment