Wordpress admin "connection lost"

I’ve been getting a lot of “connection lost” messages in the admin console. I’ve read posts saying it can be anything from lack of memory to mod_security.

I set memory_limit=“512MB” in ~/.php/5.6/phprc on my dedicated server, but that hasn’t helped.

I’m not sure what changes to make for mod_security.

Anyone have this problem? What was your solution?