Let nproc ignore OMP_NUM_THREADS and OMP_THREAD_LIMIT environment variables.
@@ -182,7 +182,7 @@ configure_cpu() {
if ((jvm_availableProcessors > 0)); then
cpu_options="-XX:ActiveProcessorCount=${jvm_availableProcessors}"
else
- cpu_options="-XX:ActiveProcessorCount=`nproc`"
+ cpu_options="-XX:ActiveProcessorCount=`nproc --all`"
fi
}
