title: Java memory keeps on increasing on running a JavaFX Application
body: <p>I'm running a JavaFx Application using Netbeans 8.2. When the application is initialised, I click on the application menu to open a file, which pops up the file chooser window. Now, this is where the problem happens. When I look at the memory usage in the System Monitor (on Ubuntu 16.04 LTS), the 
  java memory usage keeps on increasing (see image) every few seconds until I cancel the file choose window. </p>
  
  <p>I ran the profiler in netbeans to get some insight, but everything seems fine. Even heap usage is within limits. Not sure what the issue is.</p>
  
  <p><a href="https://i.stack.imgur.com/qwHN1.png" rel="nofollow noreferrer">Memory Usage Screenshot</a></p>