WSL
WSL copied to clipboard
vfork failing unless excessively large swap space configured
Simple java class to reproduce the issue: Gist
Compiled and run using
At 5000MB the following is seen:
[bellchesters@DESKTOP]$ java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
[bellchesters@DESKTOP]$ javac Main.java
[bellchesters@DESKTOP]$ strace -ff java Main 2>&1 | grep vfork
[pid 2398] vfork() = -1 ENOMEM (Cannot allocate memory)
At 16000MB the operation completes successfully.
Marking this as a duplicate of #851 - see my comment about the incoming fix https://github.com/Microsoft/BashOnWindows/issues/851#issuecomment-264314420