dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

Aborted clients - Got an error reading communication packets - mysql

This is a discussion on Aborted clients - Got an error reading communication packets - mysql ; Hello, I get pages of error logs with this message - "Got an error reading communication packets". And the aborted clients are easily in hundreds. Here is my set of configurations: I am running Microsoft .Net 2.0 on Windows 2003 ...


Home > Database Forum > Other Databases > mysql > Aborted clients - Got an error reading communication packets

Reply

 

LinkBack (3) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1  
Old 06-26-2007, 12:28 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Aborted clients - Got an error reading communication packets

Hello,

I get pages of error logs with this message -
"Got an error reading communication packets". And the aborted clients
are easily in hundreds.

Here is my set of configurations:
I am running Microsoft .Net 2.0 on Windows 2003 Server using IIS 6.0.
I am using Mysql 5.0 with Mysql/.Net Connector 1.0.

Some of the settings on my.ini -
Connection timeout - 180
Wait timeout - 360
Max packet size - 10 M
Max connections - 5000 (pretty high, but set to be on a safer side)

When a perform a netstat -ao - I have lot many sockets open with
TIME_WAIT status. On the MySql Command client - the Aborted clients
average around 100's

The connection string from ,Net application has pooling=false with no
help.

The webserver does not have a heavy load and has less than 5 users at
any point in time.

On the registry settings, I have the max ports > 60000 and the
time_wait setting changed to 30.

My application is opens a connection, performs a query and closes the
connection and this is the fashion followed for all DB operations.

Been hunting around for a solution and it has been driving me crazy.
Any suggestions will be highly appreciated.

Thanks,
Narmatha

Reply With Quote
  #2  
Old 06-26-2007, 12:46 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Aborted clients - Got an error reading communication packets

== Quote from narmathabala ( narmathabala@gmail.com)'s article
> Hello,
> I get pages of error logs with this message -
> "Got an error reading communication packets". And the aborted clients
> are easily in hundreds.
> Here is my set of configurations:
> I am running Microsoft .Net 2.0 on Windows 2003 Server using IIS 6.0.
> I am using Mysql 5.0 with Mysql/.Net Connector 1.0.
> Some of the settings on my.ini -
> Connection timeout - 180
> Wait timeout - 360
> Max packet size - 10 M
> Max connections - 5000 (pretty high, but set to be on a safer side)
> When a perform a netstat -ao - I have lot many sockets open with
> TIME_WAIT status. On the MySql Command client - the Aborted clients
> average around 100's
> The connection string from ,Net application has pooling=false with no
> help.
> The webserver does not have a heavy load and has less than 5 users at
> any point in time.
> On the registry settings, I have the max ports > 60000 and the
> time_wait setting changed to 30.
> My application is opens a connection, performs a query and closes the
> connection and this is the fashion followed for all DB operations.
> Been hunting around for a solution and it has been driving me crazy.
> Any suggestions will be highly appreciated.
> Thanks,
> Narmatha



increase your packet size
--
POST BY: lark with PHP News Reader
Reply With Quote
  #3  
Old 06-26-2007, 01:02 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Aborted clients - Got an error reading communication packets

On Jun 26, 12:46 pm, lark wrote:
> == Quote from narmathabala ( narmathab...@gmail.com)'s article
>
>
>
> > Hello,
> > I get pages of error logs with this message -
> > "Got an error reading communication packets". And the aborted clients
> > are easily in hundreds.
> > Here is my set of configurations:
> > I am running Microsoft .Net 2.0 on Windows 2003 Server using IIS 6.0.
> > I am using Mysql 5.0 with Mysql/.Net Connector 1.0.
> > Some of the settings on my.ini -
> > Connection timeout - 180
> > Wait timeout - 360
> > Max packet size - 10 M
> > Max connections - 5000 (pretty high, but set to be on a safer side)
> > When a perform a netstat -ao - I have lot many sockets open with
> > TIME_WAIT status. On the MySql Command client - the Aborted clients
> > average around 100's
> > The connection string from ,Net application has pooling=false with no
> > help.
> > The webserver does not have a heavy load and has less than 5 users at
> > any point in time.
> > On the registry settings, I have the max ports > 60000 and the
> > time_wait setting changed to 30.
> > My application is opens a connection, performs a query and closes the
> > connection and this is the fashion followed for all DB operations.
> > Been hunting around for a solution and it has been driving me crazy.
> > Any suggestions will be highly appreciated.
> > Thanks,
> > Narmatha

>
> increase your packet size
> --
> POST BY: lark with PHP News Reader


Bigger than 10 M?

Thanks,
Narmatha

Reply With Quote
  #4  
Old 06-26-2007, 01:08 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Aborted clients - Got an error reading communication packets

narmathabala@gmail.com wrote:
> Hello,
>
> I get pages of error logs with this message -
> "Got an error reading communication packets". And the aborted clients
> are easily in hundreds.
>
> Here is my set of configurations:
> I am running Microsoft .Net 2.0 on Windows 2003 Server using IIS 6.0.


Ouch, not sure if even microsoft would run that combination, they seem to like
BSD servers.

> I am using Mysql 5.0 with Mysql/.Net Connector 1.0.


Is the mysql on the same machine as the web server? if not, maybe you have
trouble with firewalls, try to allow unblocked traffic between the machines.




--

//Aho
Reply With Quote
  #5  
Old 06-26-2007, 01:35 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Aborted clients - Got an error reading communication packets

== Quote from narmathabala ( narmathabala@gmail.com)'s article
> On Jun 26, 12:46 pm, lark wrote:
> > == Quote from narmathabala ( narmathab...@gmail.com)'s article
> >
> >
> >
> > > Hello,
> > > I get pages of error logs with this message -
> > > "Got an error reading communication packets". And the aborted clients
> > > are easily in hundreds.
> > > Here is my set of configurations:
> > > I am running Microsoft .Net 2.0 on Windows 2003 Server using IIS 6.0.
> > > I am using Mysql 5.0 with Mysql/.Net Connector 1.0.
> > > Some of the settings on my.ini -
> > > Connection timeout - 180
> > > Wait timeout - 360
> > > Max packet size - 10 M
> > > Max connections - 5000 (pretty high, but set to be on a safer side)
> > > When a perform a netstat -ao - I have lot many sockets open with
> > > TIME_WAIT status. On the MySql Command client - the Aborted clients
> > > average around 100's
> > > The connection string from ,Net application has pooling=false with no
> > > help.
> > > The webserver does not have a heavy load and has less than 5 users at
> > > any point in time.
> > > On the registry settings, I have the max ports > 60000 and the
> > > time_wait setting changed to 30.
> > > My application is opens a connection, performs a query and closes the
> > > connection and this is the fashion followed for all DB operations.
> > > Been hunting around for a solution and it has been driving me crazy.
> > > Any suggestions will be highly appreciated.
> > > Thanks,
> > > Narmatha

> >
> > increase your packet size
> > --
> > POST BY: lark with PHP News Reader

> Bigger than 10 M?
> Thanks,
> Narmatha



apparently so. also look at the client packet size because that is also
controllable. all of your clients must be configured to use the same packet size
and this packets size has to be less than the packet size allowed by the server.
increase your packet size to 32 or 64 M.
--
POST BY: lark with PHP News Reader
Reply With Quote
  1 links from elsewhere to this Post. Click to view. #6  
Old 06-26-2007, 06:21 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Aborted clients - Got an error reading communication packets

narmathabala@gmail.com wrote:
>
> I get pages of error logs with this message -
> "Got an error reading communication packets". And the aborted clients
> are easily in hundreds.


You get that message in the log every time the server closes a client
connection because it was inactive too long. Too long is "longer than
wait_timeout".

> Some of the settings on my.ini -
> Connection timeout - 180
> Wait timeout - 360


This is 6 minutes. Each client connection that stays idle will be
forcibly closed by the MySQL server after 6 minutes.
What was your reason to decrease wait_timeout from the 8 hour default?

> Max connections - 5000 (pretty high, but set to be on a safer side)


This safety is expensive. You risk running out of memory instead.
On Windoze you may run out of TCP handles even before...

> My application is opens a connection, performs a query and closes the
> connection and this is the fashion followed for all DB operations.


Obviously the connections were *not* closed.


XL
--
Axel Schwenke, Support Engineer, MySQL AB

Online User Manual: http://dev.mysql.com/doc/refman/5.0/en/
MySQL User Forums: http://forums.mysql.com/
Reply With Quote
  #7  
Old 03-15-2009, 02:29 PM
Database Newbie
 
Join Date: Mar 2009
Posts: 2
dfriedmann is on a distinguished road
Default Re: Aborted clients - Got an error reading communication packets

Hi,
I've got similar problems.
I'm getting lots of "(Got an error reading communication packets)" errors in mysqld.err and at the same time I can no longer connect to the mysql db from my web app.

I'm running mysql Gentoo Linux mysql-5.0.44-r2 and accessing it with IIS6 myodbc.

Some of the setttings:
wait_timeout 28,800
connect_timeout 10
max allowed packet 134,216,704
max connections 1000

Could this also be a problem of the connections not being properly closed?
Reply With Quote
Reply

Thread Tools
Display Modes


LinkBacks (?)

LinkBack to this Thread: http://dbaspot.com/forums/mysql/174618-aborted-clients-got-error-reading-communication-packets.html

Posted By For Type Date
Google Groups This thread Refback 05-26-2009 03:14 PM
Software Development « François Schiettecatte’s Blog This thread Refback 05-21-2009 09:37 AM
C3P0, MySQL and ‘Error Reading Communication Packets’ « François Schiettecatte’s Blog Post #6 Pingback 02-24-2009 04:19 PM

Similar Threads

Thread Thread Starter Forum Replies Last Post
Aborted clients - Got an error reading communication packets Database Administrator databases 1 06-26-2007 11:29 AM
F40 built-in ethernet port speed? Database Administrator aix 13 05-31-2007 07:47 PM
unable to ping gateway Database Administrator aix 13 03-16-2007 12:15 AM
Using DB2 Control Centre when authorized to the schema Database Administrator db2-udb 11 03-13-2007 08:37 PM
Can virtual IPs cause performance problems Database Administrator hp-hpux 1 05-12-2005 01:08 PM


All times are GMT -4. The time now is 09:39 AM.