Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.