After opening IntelliJ Idea Ulitimate Edition 2019.1 and running my project(Java GUI Applications) twice or thrice, Xorg reach upto 2gb of memory. Usually this happens after running Intellij Idea for 15 min.
I'm using Ubuntu 18.04 with gnome3, 8gb ram, intel i5 quad core processor, 2gb Nvidia 940mx.
Here is a screenshot.
How to stop memory leak of Xorg.
NOTE: Before opening Intellij Idea Xorg takes around 30mb.