简体   繁体   中英

How to reduce heap size in JavaFX application

My JavaFX is using a serious about of memory. How can i reduce this amount? 在此处输入图片说明

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

您可以在运行->编辑配置-> VM选项下设置-Xms和-Xmx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM