Also make sure that everything that can run on the gateway is set up with memory limits so the total is less than the physical memory. If you a running a little gateway with 4G of ram, and you give Ignition 2G, you can’t allow anything else to use more than about ~1G (like any client), or you’ll push the gateway into swap, which will then thrash.
Also consider configuring your gateway with the G1GC garbage collector, as described here. In my experience, not only does latency improve, but the gateway’s average memory utilization drops.
3 Likes