It is a PHP problem, if getmxrr() timeout and PHP blocked at that function, it may cause trouble for next request assigned to it. There is not much we can do about.
Either allocate enough spear PHP processes by setting "PHP_LSAPI_CHILDREN" larger than "Max connections". Or, let LSWS to kill...