Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a server that has been running at high CPU load due to MySQL activity, when i run the command mysqladmin pr i often see a few queries with the state "writing to net". I had a look around and couldn't find much out about this other than the fact i read somewhere that this shouldnt be expected in usual MySQL activity. Any ideas what this could mean?

Running MySQL 5.0.91-community on CentOS 4.8

share|improve this question
How are you connecting to the database? Is from localhost using a tcp connection? The local socket? Connecting from a remote server? – Niall Donegan Jan 11 '11 at 18:37
standard PHP connection to mysql over localhost – seengee Jan 11 '11 at 21:26
up vote 2 down vote accepted

"Writing to net" means that MySQL is writing a packet to the network interface. You mentioned you have PHP connecting via localhost; do you have any remote network connections at all?

share|improve this answer
i do have connections to a few other servers within my network connecting via IP - would that explain it? – seengee Jan 12 '11 at 9:11
It could. Are the queries in the writing to net state queries that get sent to remote machines? – blueben Jan 12 '11 at 9:15
just seen one - doesnt appear to be for a remote connection as host is localhost and db/user are both local – seengee Jan 12 '11 at 10:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.