Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > MySQL > MySQL General forum

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-29-2008, 08:27 PM
Dominik Klein
 
Posts: n/a
Default Error reading packet from server: Out of memory (Needed 6560 bytes)( server_errno=5)

Hi

in a 5.0.45 linux master-master replication setup, I see the error
message from the subject every now and then. Sometimes it does not
happen for a couple of months, then it happens a couple of times a day.
I cannot see any network problems otherwise, and a memtest did not bring
up any memory problems. It "feels" like this happens on a rather high
load on the system, as it never happened at night.

What can I do about that?

Regards
Dominik
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-29-2008, 08:27 PM
Dominik Klein
 
Posts: n/a
Default Re: Error reading packet from server: Out of memory (Needed 6560bytes) ( server_errno=5)

Hi.

Juan Eduardo Moreno wrote:
> Sorry, what is your setting for max_allowed_packet variable?


mysql> show variables like "%allowed%";
+--------------------+----------+
| Variable_name | Value |
+--------------------+----------+
| max_allowed_packet | 16776192 |
+--------------------+----------+
1 row in set (0.00 sec)

Here's an excerpt from the logs. It does not look like that value is
involved in this:

080428 13:07:04 [ERROR] Error reading packet from server: Out of memory
(Needed 2704 bytes) ( server_errno=5)
080428 13:07:04 [Note] Slave I/O thread: Failed reading log event,
reconnecting to retry, log 'SRV02bin.000131' position 447892967
080428 13:07:04 [Note] Slave: connected to master
'mmrepli@10.250.250.32:3306',replication resumed in log
'SRV02-bin.000131' at position 447892967
080428 13:22:14 [ERROR] Error reading packet from server: Out of memory
(Needed 2704 bytes) ( server_errno=5)
080428 13:22:14 [Note] Slave I/O thread: Failed reading log event,
reconnecting to retry, log 'SRV02-bin.000131' position 471157588
080428 13:22:14 [Note] Slave: connected to master
'mmrepli@10.250.250.32:3306',replication resumed in log
'SRV02-bin.000131' at position 471157588
080428 14:38:06 [ERROR] Error reading packet from server: Out of memory
(Needed 3464 bytes) ( server_errno=5)
080428 14:38:06 [Note] Slave I/O thread: Failed reading log event,
reconnecting to retry, log 'SRV02-bin.000131' position 583864714
080428 14:38:06 [Note] Slave: connected to master
'mmrepli@10.250.250.32:3306',replication resumed in log
'SRV02-bin.000131' at position 583864714
080428 15:13:24 [ERROR] Error reading packet from server: Out of memory
(Needed 3128 bytes) ( server_errno=5)
080428 15:13:24 [Note] Slave I/O thread: Failed reading log event,
reconnecting to retry, log 'SRV02-bin.000131' position 635409380
080428 15:13:24 [Note] Slave: connected to master
'mmrepli@10.250.250.32:3306',replication resumed in log
'SRV02-bin.000131' at position 635409380
080428 15:32:14 [ERROR] Error reading packet from server: Out of memory
(Needed 2688 bytes) ( server_errno=5)
080428 15:32:14 [Note] Slave I/O thread: Failed reading log event,
reconnecting to retry, log 'SRV02-bin.000131' position 665146758
080428 15:32:14 [Note] Slave: connected to master
'mmrepli@10.250.250.32:3306',replication resumed in log
'SRV02-bin.000131' at position 665146758

Regards
Dominik
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-29-2008, 08:27 PM
Juan Eduardo Moreno
 
Posts: n/a
Default Re: Error reading packet from server: Out of memory (Needed 6560 bytes) ( server_errno=5)

Hi,
This error occur when slave servers could incorrectly interpret an
out-of-memory error from the master and reconnect using the wrong binary log
position.

This was fix in 5.0.48 version. Please, try to update your version ( from
5.0.45) of mysql and try again.

regards,
Juan


On 4/28/08, Dominik Klein <dk@in-telegence.net> wrote:
>
> Hi.
>
> Juan Eduardo Moreno wrote:
>
> > Sorry, what is your setting for max_allowed_packet variable?
> >

>
> mysql> show variables like "%allowed%";
> +--------------------+----------+
> | Variable_name | Value |
> +--------------------+----------+
> | max_allowed_packet | 16776192 |
> +--------------------+----------+
> 1 row in set (0.00 sec)
>
> Here's an excerpt from the logs. It does not look like that value is
> involved in this:
>
> 080428 13:07:04 [ERROR] Error reading packet from server: Out of memory
> (Needed 2704 bytes) ( server_errno=5)
> 080428 13:07:04 [Note] Slave I/O thread: Failed reading log event,
> reconnecting to retry, log 'SRV02bin.000131' position 447892967
> 080428 13:07:04 [Note] Slave: connected to master '
> mmrepli@10.250.250.32:3306',replication resumed in log 'SRV02-bin.000131'
> at position 447892967
> 080428 13:22:14 [ERROR] Error reading packet from server: Out of memory
> (Needed 2704 bytes) ( server_errno=5)
> 080428 13:22:14 [Note] Slave I/O thread: Failed reading log event,
> reconnecting to retry, log 'SRV02-bin.000131' position 471157588
> 080428 13:22:14 [Note] Slave: connected to master '
> mmrepli@10.250.250.32:3306',replication resumed in log 'SRV02-bin.000131'
> at position 471157588
> 080428 14:38:06 [ERROR] Error reading packet from server: Out of memory
> (Needed 3464 bytes) ( server_errno=5)
> 080428 14:38:06 [Note] Slave I/O thread: Failed reading log event,
> reconnecting to retry, log 'SRV02-bin.000131' position 583864714
> 080428 14:38:06 [Note] Slave: connected to master '
> mmrepli@10.250.250.32:3306',replication resumed in log 'SRV02-bin.000131'
> at position 583864714
> 080428 15:13:24 [ERROR] Error reading packet from server: Out of memory
> (Needed 3128 bytes) ( server_errno=5)
> 080428 15:13:24 [Note] Slave I/O thread: Failed reading log event,
> reconnecting to retry, log 'SRV02-bin.000131' position 635409380
> 080428 15:13:24 [Note] Slave: connected to master '
> mmrepli@10.250.250.32:3306',replication resumed in log 'SRV02-bin.000131'
> at position 635409380
> 080428 15:32:14 [ERROR] Error reading packet from server: Out of memory
> (Needed 2688 bytes) ( server_errno=5)
> 080428 15:32:14 [Note] Slave I/O thread: Failed reading log event,
> reconnecting to retry, log 'SRV02-bin.000131' position 665146758
> 080428 15:32:14 [Note] Slave: connected to master '
> mmrepli@10.250.250.32:3306',replication resumed in log 'SRV02-bin.000131'
> at position 665146758
>
> Regards
> Dominik
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:
> http://lists.mysql.com/mysql?unsub=j...domc@gmail.com
>
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-10-2008, 02:03 PM
Dominik Klein
 
Posts: n/a
Default [solved] Re: Error reading packet from server: Out of memory (Needed6560 bytes) ( server_errno=5)

Upgrade to 5.0.51b seems to have solved the problem. On wednesday, I saw
the problem about a dozen times during a peak time. Upgraded wednesday
night and have not seen the error since.

Thanks
Dominik

Juan Eduardo Moreno wrote:
> Hi,
> This error occur when slave servers could incorrectly interpret an
> out-of-memory error from the master and reconnect using the wrong binary
> log position.
>
> This was fix in 5.0.48 version. Please, try to update your version (
> from 5.0.45) of mysql and try again.
>
> regards,
> Juan

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145