0

My JavaFX is using a serious about of memory. How can i reduce this amount?enter image description here

Is there a way to reduce the heap size and how do i do that in intellij?


I look at a few other questions but none seem to answer my question Does it make sense to call System.gc() and Thread.sleep() when working on Bitmaps? Is there a way to lower Java heap when not in use? But i still dont know how to do it if its possible?

Thanks

Community
  • 1
  • 1
bshek
  • 109
  • 8
  • Possible duplicate of [How to set the maximum memory usage for JVM?](http://stackoverflow.com/questions/1493913/how-to-set-the-maximum-memory-usage-for-jvm) – Itai Oct 10 '16 at 17:25
  • See linked question on how to limit memory usage. Calling `System.gc` would probably not help in this situation, as the heap is mostly unused (although allocated). – Itai Oct 10 '16 at 17:26
  • Where do I set -Xms and -Xmx – bshek Oct 10 '16 at 17:48

1 Answers1

0

you can set -Xms and -Xmx under run -> edit configuration -> VM Options

Daniele_r81
  • 123
  • 3
  • 14