How do you control the max size of a HEAP table?

Maximum size of HEAP table can be controlled by MySQL config variable called max_heap_table_size.