Out of memory error

Out of memory error

am 04.11.2010 02:21:35 von OldBoy

------=_NextPart_000_001C_01CB7C0A.0F35EAA0
Content-Type: text/plain;
charset="ks_c_5601-1987"
Content-Transfer-Encoding: base64

RGVhciBNeVNRTCB1c2VycywNCg0KSSBnb3QgYW4gIk91dCBvZiBtZW1vcnki IGVycm9yIG1lc3Nh
Z2Ugb24gc2VydmVyIHllc3RlcmRheS4NCkkgcmVzdGFydGVkIG15c3FsZCwg YW5kIGV2ZXJ5dGhp
bmcgd2FzIGdvIGJhY2sgdG8gbm9ybWFsIGFuZCBub3cgaXMgZmluZS4NCg0K SXQgaGFwcGVuZWQg
YWxyZWFkeSB0d2ljZSBpbiB0aGlzIHdlZWtlbmQgZXZlbi4NCkJ1dCBJIGRv bid0IGtub3cgd2hh
dCdzIHdyb25nLg0KDQpTZXJ2ZXIgaGFzIFF1YWRDb3JlIFhlb24gQ1BVLCA0 RyBFQ0MgUkFNLCAy
RyB4IDQ5KGVhKSBpYmRhdGEgZmlsZXMsIG1vc3RseSBiYXNlZCBvbiB1c2lu ZyBJbm5vREIgdHlw
ZWQgdGFibGVzLg0KDQpCZWxvdyBpcyBzZXJ2ZXIgY29uZGl0aW9uIGRldGFp bHMuDQoNCltyb290
QHN2cjQwIG15c3FsXSMgdWxpbWl0IC1hDQpjb3JlIGZpbGUgc2l6ZSAgICAg ICAgICAoYmxvY2tz
LCAtYykgMA0KZGF0YSBzZWcgc2l6ZSAgICAgICAgICAgKGtieXRlcywgLWQp IHVubGltaXRlZA0K
c2NoZWR1bGluZyBwcmlvcml0eSAgICAgICAgICAgICAoLWUpIDANCmZpbGUg c2l6ZSAgICAgICAg
ICAgICAgIChibG9ja3MsIC1mKSB1bmxpbWl0ZWQNCnBlbmRpbmcgc2lnbmFs cyAgICAgICAgICAg
ICAgICAgKC1pKSA3NzgyNA0KbWF4IGxvY2tlZCBtZW1vcnkgICAgICAgKGti eXRlcywgLWwpIDMy
DQptYXggbWVtb3J5IHNpemUgICAgICAgICA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29uY3VycmVuY3kg PSAxNg0KaW5ub2Ri
X2ZsdXNoX2xvZ19hdF90cnhfY29tbWl0ID0gMQ0KaW5ub2RiX2xvZ19idWZm ZXJfc2l6ZSA9IDhN
DQppbm5vZGJfbG9nX2ZpbGVfc2l6ZSA9IDUxMk0gDQppbm5vZGJfbG9nX2Zp bGVzX2luX2dyb3Vw
ID0gMw0KaW5ub2RiX21heF9kaXJ0eV9wYWdlc19wY3QgPSA5MA0KaW5ub2Ri X2xvY2tfd2FpdF90
aW1lb3V0ID0gMTIwDQouDQouDQouDQoNCkkgZXhwZWN0IHRoZSB0cm91Ymxl LXNob290aW5nIHNv
b24sIGF0IGxlYXN0IHRoZSByZWFzb24gY2F0Y2hpbmcuDQoNCg0KVGhhbmsg eW91Lg0KDQpLaW0g
Q2hp

------=_NextPart_000_001C_01CB7C0A.0F35EAA0--

Re: Out of memory error

am 04.11.2010 05:02:38 von amoiz.shine

upgrade to the lastest MySQL 5.1.x branch GA and try again.

Best regards,
Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**)



2010/11/4 김수ì˜=81 :
> Dear MySQL users,
>
> I got an "Out of memory" error message on server yesterday.
> I restarted mysqld, and everything was go back to normal and now is fine.
>
> It happened already twice in this weekend even.
> But I don't know what's wrong.
>
> Server has QuadCore Xeon CPU, 4G ECC RAM, 2G x 49(ea) ibdata files, mostl=
y based on using InnoDB typed tables.
>
> Below is server condition details.
>
> [root@svr40 mysql]# ulimit -a
> core file size          (blocks, -c) 0
> data seg size           (kbytes, -d) unlimited
> scheduling priority             (-e) 0
> file size               (blocks, -f) u=
nlimited
> pending signals                 (=
-i) 77824
> max locked memory       (kbytes, -l) 32
> max memory size         (kbytes, -m) unlimited
> open files                  =
   (-n) 1024
> pipe size            (512 bytes, -p) 8
> POSIX message queues     (bytes, -q) 819200
> real-time priority              (-r) 0
> stack size              (kbytes, -s) 1=
0240
> cpu time               (seconds, -t) u=
nlimited
> max user processes              (-u) 7=
7824
> virtual memory          (kbytes, -v) unlimited
> file locks                  =
   (-x) unlimited
> [root@svr40 mysql]# uname -a
> Linux svr40.hsl.co.kr 2.6.18-164.11.1.el5PAE #1 SMP Wed Jan 20 08:16:13 E=
ST 2010 i686 i686 i386 GNU/Linux
> [root@svr40 mysql]# cat /etc/redhat-release
> CentOS release 5.4 (Final)
> [root@svr40 mysql]# rpm -qa | grep MySQL
> MySQL-devel-community-5.1.42-0.rhel5
> MySQL-client-community-5.1.42-0.rhel5
> MySQL-server-community-5.1.42-0.rhel5
> [root@svr40 mysql]# tail -50 svr40.xxxx.err
> 101103 15:12:25 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095132 b=
ytes)
> 101103 15:12:25 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095132 b=
ytes)
> 101103 15:12:25 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095132 b=
ytes)
> 101103 15:12:25 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095132 b=
ytes)
> 101103 15:12:28 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095116 b=
ytes)
> 101103 15:12:38 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095132 b=
ytes)
> 101103 15:12:38 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095132 b=
ytes)
> 101103 15:12:42 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095236 b=
ytes)
> 101103 15:12:43 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095584 b=
ytes)
> 101103 15:12:45 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095132 b=
ytes)
> 101103 15:12:45 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095132 b=
ytes)
> 101103 15:12:47 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095200 b=
ytes)
> 101103 15:12:51 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095116 b=
ytes)
> 101103 15:13:12 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095120 b=
ytes)
> 101103 15:13:16 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095132 b=
ytes)
> 101103 15:13:16 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095132 b=
ytes)
> 101103 15:13:19 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095120 b=
ytes)
> 101103 15:13:22 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095548 b=
ytes)
> 101103 15:13:23 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095132 b=
ytes)
> 101103 15:13:23 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095132 b=
ytes)
> 101103 15:13:28 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095548 b=
ytes)
> 101103 15:13:32 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095132 b=
ytes)
> 101103 15:13:34 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095500 b=
ytes)
> 101103 15:13:38 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095548 b=
ytes)
> 101103 15:13:38 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095392 b=
ytes)
> 101103 15:13:40 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095120 b=
ytes)
> 101103 15:13:40 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095120 b=
ytes)
> 101103 15:13:41 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095132 b=
ytes)
> 101103 15:13:41 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095132 b=
ytes)
> 101103 15:13:45 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095548 b=
ytes)
> 101103 15:13:49 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095200 b=
ytes)
> 101103 15:13:51 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095128 b=
ytes)
> 101103 15:13:51 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095284 b=
ytes)
> 101103 15:13:52 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095548 b=
ytes)
> 101103 15:13:57 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095128 b=
ytes)
> 101103 15:13:57 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2095284 b=
ytes)
> 101103 15:14:02 [Note] /usr/sbin/mysqld: Normal shutdown
>
> 101103 15:14:02 [Note] Event Scheduler: Purging the queue. 0 events
> 101103 15:14:04  InnoDB: Starting shutdown...
> 101103 15:14:08  InnoDB: Shutdown completed; log sequence number 10 =
437654676
> 101103 15:14:08 [Note] /usr/sbin/mysqld: Shutdown complete
>
> 101103 15:14:08 mysqld_safe mysqld from pid file /var/lib/mysql/svr40.xxx=
..pid ended
> 101103 15:14:15 mysqld_safe Starting mysqld daemon with databases from /v=
ar/lib/mysql
> 101103 15:14:15 [Note] Plugin 'FEDERATED' is disabled.
> 101103 15:14:16  InnoDB: Started; log sequence number 10 437654676
> 101103 15:14:16 [Note] Event Scheduler: Loaded 0 events
> 101103 15:14:16 [Note] /usr/sbin/mysqld: ready for connections.
> Version: '5.1.42-community-log'  socket: '/var/lib/mysql/mysql.sock'=
 port: 3306  MySQL Community Server (GPL)
>
> [root@svr40 mysql]# cat /etc/my.cnf
>
> .
> .
> .
> .
> [mysqld]
> max_connections =3D 500
> max_connect_errors =3D 30
> table_open_cache =3D 4096
> max_allowed_packet =3D 16M
> binlog_cache_size =3D 1M
> max_binlog_size =3D 100M
> expire_logs_days =3D 7
> max_heap_table_size =3D 64M
> sort_buffer_size =3D 8M
> join_buffer_size =3D 8M
> thread_cache_size =3D 8
> thread_concurrency =3D 8
> query_cache_size =3D 64M
> query_cache_limit =3D 2M
> tmp_table_size =3D 64M
> log-bin=3Dmysql-bin
> binlog_format=3Dmixed
> slow_query_log
> long_query_time =3D 30\
>
> key_buffer_size =3D 32M
> read_buffer_size =3D 2M
> read_rnd_buffer_size =3D 16M
> bulk_insert_buffer_size =3D 64M
> myisam_sort_buffer_size =3D 128M
> myisam_max_sort_file_size =3D 10G
> myisam_repair_threads =3D 1
>
> innodb_additional_mem_pool_size =3D 16M
> innodb_buffer_pool_size =3D 2G
> innodb_data_file_path =3D ibdata1:2G;ibdata2:2G;................ibdata45:=
2G;ibdata46:100M:autoextend
> innodb_file_io_threads =3D 4
> innodb_thread_concurrency =3D 16
> innodb_flush_log_at_trx_commit =3D 1
> innodb_log_buffer_size =3D 8M
> innodb_log_file_size =3D 512M
> innodb_log_files_in_group =3D 3
> innodb_max_dirty_pages_pct =3D 90
> innodb_lock_wait_timeout =3D 120
> .
> .
> .
>
> I expect the trouble-shooting soon, at least the reason catching.
>
>
> Thank you.
>
> Kim Chi

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dgcdmg-mysql-2@m.gmane.o rg

Re: Out of memory error

am 04.11.2010 09:21:42 von Johan De Meersman

--001636c5a7a51379a2049435d9c4
Content-Type: text/plain; charset=ISO-8859-1

Out of your 4 gigabyte of memory, you allocate 2G to the innodb pool.
Assuming you're using mostly innoDB, that's good. Say there's also about
300M allocated to the OS - assuming a dedicated server; that leaves about
1.7G for non-InnoDB operations.

You have configured your server for 500 connections, and specified both
join_buffer_size and sort_buffer_size as 8M.

Every session that needs to do a sort allocates one sort buffer of the
specified size. One join buffer of *minimum* this size is allocated for
every full join between two tables, so multiple buffers may be needed for a
single query.

8M * 500 connections = 2G.

Do you see where this is going ? :-)

Not every connection will need to allocate join or sort buffers, but it may
be well worth to see what's happening on your server when you get these out
of memory errors, and maybe you can optimize some queries to use indices for
sorting, add indices to remove full joins, et cetera.

I keep telling people this: set up Munin or Cacti, and graph anything you
can find about your server. Trending gives you both the ability to look back
at what was going on when a problem occured, and look forward to see
problems coming ahead of time.

--
Bier met grenadyn
Is als mosterd by den wyn
Sy die't drinkt, is eene kwezel
Hy die't drinkt, is ras een ezel

--001636c5a7a51379a2049435d9c4--