I'm developping a webservice with golang. It uses the net/http package and others packages like github.com/go-sql-driver/mysql and redigo (redis). I have no problem when I develop it, no bugs. When I put it on a server in production as a service in back ground (i.e. : launched with ./myProgram &). The problem is that after a few times, which is never the same : it can be a few minutes or a few hours, it just crash. The service doesn't appear anymore in netstat : it is down. I look the memory/CPU consumption/opened tcp connections, there's nothing anormal. I also log information on errors and requests on my service in a file, but there is nothing anormal, it just crashes.
If you have any idea,please tell me. Or any idea on the way I can track the error.