You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BTW, a better way to patch Runtime.availableProcessors in Docker is to use bind mount to override /sys/devices/system/cpu/online file in the container or to use JDK 8u191+ which has buit-in support for this feature.
In Docker, we hack the sysconf system call to return the right cpu cores for java.lang.Runtime.availableProcessors(), use below sentence to link it.
export LD_PRELOAD="/usr/local/lib/libsysconfcpus.so:
then crash....
The text was updated successfully, but these errors were encountered: