If your Data Management Gateway crashes a lot, just make sure you have .NET framework version 4.5.1 or later installed. 4.5.1. introduced fixes that the Data Management Gateway needs.

If you install it and reboot the server your DMG should be running much more smoothly.