I have a linux server that has started acting a little funny...
First of all the box is way under utilized. It's a database server, with a very low load. I'll put vmstat below and top...
- I'm running centos 5.4
- This server has been running fine for weeks
- It's firewalled, it's unlikely it's been hacked (chkrootkit agrees).
- Load is really low.
- I'm on a Gigabit switch with the server.
- I'm not having this problem with any other server.
- I have remote syslog set up on another box and it's not indicating any corresponding errors.
So, when I ssh(putty) to the box, if I haven't gotten on it in a while, putty immediatly throws a 'network connection reset' error.
Randomly it just kicks me out (or network drops)
a steady stream of pings shows now interruption.
--- vdbsrv1 ping statistics ---
80620 packets transmitted, 80619 received, 0% packet loss, time 23838ms
rtt min/avg/max/mdev = 0.234/0.273/1.741/0.043 ms, ipg/ewma 0.295/0.297 ms
SQL queries ("Select 1") to the box take about 5 seconds, even though SQL is reporting something like a .04 second execution time, so the other 4.96 seconds is a mystery
Anyone have any ideas?
top - 11:49:28 up 12 days, 17:05, 4 users, load average: 0.00, 0.03, 0.01
Tasks: 150 total, 1 running, 149 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.2%us, 0.0%sy, 0.0%ni, 99.3%id, 0.5%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 8174028k total, 8074924k used, 99104k free, 4558300k buffers
Swap: 19464184k total, 4k used, 19464180k free, 2306952k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 root 15 0 10348 692 576 S 0.0 0.0 0:02.13 init
root@dbsrv1# vmstat
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
r b swpd free buff cache si so bi bo in cs us sy id wa st
0 0 4 98980 4558300 2306992 0 0 1 13 3 2 0 0 99 0 0
time psql -c queryor equivalent, or does it take the network into account? – Tobu Jan 27 '10 at 18:44