I have 8 gb RAM on mysql server but i'm still getting out of memory exception while selecting large data from tables.I looked into the memory consumed by mysql , its around 1 gb only.Any clue on y getting this error?? My config file is as below:
default-storage-engine=MyISAM
max_connections=500
query_cache_type = 2
query_cache_size=512M
query_cache_limit = 512M
table_cache=128
tmp_table_size=512M
thread_cache_size=8
myisam_max_sort_file_size=1024M
myisam_sort_buffer_size=126M
key_buffer_size=512M
read_rnd_buffer_size=64M
sort_buffer_size=512M
innodb_log_file_size=256M
innodb_buffer_pool_size=700M
innodb_additional_mem_pool_size=20M
innodb_flush_log_at_trx_commit=2
innodb_buffer_pool_size=700M
myisam_max_extra_sort_file_size=512M
And no i'm not using any text.long text or blob though i'm using varchar in many fields.
max_allowed_packetcurrently set to ? – RolandoMySQLDBA Jun 22 '12 at 18:06