If you are running multiple GemFire processes as the same user on the same node, having too many open files or too many processes or threads is likely the cause of the OOM error. This issue is caused when there is not enough soft ulimits for the open files (-n) and the processes (-u).
This is because soft ulimit is per user and if you are running multiple GemFire processes as the same user on the same node, the actual value is now divided by the number of the GemFire processes.
These are the recommended values per user for Unix/Linux: