Please refer to this erlang-questions message:
I havng Windows 8.1 ande reproduced this behavior usi Windows 2008R2 virtual machines running on VirtualBox 5.2.18 (Arch Linux host system). Please see the attached Vagrantfile.
- Start up VM using vagrant up in the same directory as the Vagrantfile
- Download the Erlang 21.0.1 installer on the host system, and copy to the same directory as the Vagrantfile
- Within the VM, map a drive using net use * \\vboxsvr\vagrant /p:n. Generally this will become the Z: drive.
- Copy the otp_win64_21.0.1.exe from Z: to a directory on the VM
- Run the installer, using the default settings
- Start the task manager to view CPU usage - the "Performance" tab is useful
- Run the command to reproduce the issue: erl.exe -noinput -eval "io:format(erlang:system_info(version)), halt()."
- Note that the command takes several seconds to run, and consumes 100% CPU while doing so
- Stop the VM, and modify the Vagrantfile to specify 2 CPUS
- Re-start the VM and re-run the test. Note that performance and CPU use are acceptable.
If you install 20.3 via the otp_win64_20.3.exe installer and re-run the test with one CPU, you will notice that execution time and CPU usage are acceptable.