So why does this variable change whenever I restart the control panel?
It seems that the AIM server always resets the value to 16mb. Mine is set to 1GB and I have checked the settings using MySQL tools to confirm this.
I'm now getting an error saying
Message is Unable to persist process context Packet for query is too large (31721605 > 16776192). You can change this value on the server by setting the max_allowed_packet' variable. Sending failure reply
Everyone should check the Server output on startup to see if AIM sets the value as 16mb.