I am running the golang rest API on the ec2 instance which is working properly but when I make any changes in the code and run "go install" the ec2 console stops responding and I have to reboot the instance. ec2 instance is running with 4 GB ram and ubuntu 2.0.
How do I debug and fix this issue?