Max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

C++
# Execute:
sudo sysctl -w vm.max_map_count=262144
# Execute:
sudo echo 'vm.max_map_count=262144' >> /etc/sysctl.conf# Execute: sudo sysctl -w vm.max_map_count=262144
# Execute: sudo echo 'vm.max_map_count=262144' >> /etc/sysctl.conf
Source

Also in C++: