I would second the comment that 2gb isn’t enough memory.
This might be related to a memory leak issue with Jetty, the web server library we use within Ignition. could you add the JVM arg -Dperspective.ws.disablePermessageDeflateExtension=true
to your ignition.conf and restart the gateway and let me know if it the memory usage remains maxed out?
Thanks,
Jonathan C