did you check if you use the FPM? because of the thread model it's common at least since apache 2.4 to send the php parts to the fast cgi / fpm.
So the memory consumption of the apache does not correlate with the php consumption and apache is able to solve the 10k connection problem.
-> queue model instead of threadpool.