Possible network issue
Alan Bateman
Alan.Bateman at oracle.com
Wed Nov 8 17:16:59 UTC 2023
On 08/11/2023 12:38, Robert Engels wrote:
> The thing is it never denies the memory request - just delays it. I am
> fairly certain if I raise the mbufs it will work - similar to lowering
> the transfer size - but I don’t think this is a viable solution. I
> think it needs to be resolved in the net layer.
>
There is typically network tuning required when trying to support a
large number of connections, more so when dealing with high volumes of
short lived connections. It's not clear if the temporarily resource
exhaustion is telling us that this system needs tuning, it's macOS bug,
or macOS expect all applications doing non-blocking I/O to treat ENOBUFS
the same as EAGAIN/EWOULDBLOCK. It wouldn't be hard to have the JDK
handle ENOBUFS but we concern is that it would introduce spinning, esp.
when the socket is reported as ready for writing. The man pages and
documentation is insufficient, kinda need someone from Apple to comment.
-Alan.
More information about the loom-dev
mailing list