I have followed this
https://rtcamp.com/tutorials/linux/increase-open-files-limit/ to increase open file limit in my Ubuntu. ulimit -Sn and ulimit -Hn now correctly shows 500000. But PHP doesn't respect this, when I reach 1024 concurrent WebSocket connections, it shows:
You MUST recompile PHP with a larger value of FD_SETSIZE. It is set to but you have descriptors numbered at least as high as 1024. --enable-fd-setsize=2048 is recommended, but you may want to set it to equal the maximum number of open files supported by your system.
I read many discussions in this forum and elsewhere, where people having "Too many open files" error and solved by just increasing ulimit without recompiling PHP. The Ratchet doc also doesn't mention about recompiling PHP. I don't want to take hassle of recompiling.
Am I missing anything or I must have to recompile?