英文:
Java Swing GUI memory usage is high in Linux compared to Windows
问题
我们之前在Windows上运行了一个Java Swing应用程序,最近我们为Linux平台提供了支持。
在Windows上,该应用程序在启动时大约需要200MB的内存,但在Linux上却需要300-400MB的内存。请告诉我我需要注意哪些参数,以及如何以与平台无关的方式解决这个内存问题。我知道Swing不依赖于操作系统,那么为什么会有这么大的差异呢?Linux机器是CentOS 7,并且使用了Gnome桌面。
英文:
We had a Java Swing application running in Windows which we recently supported for Linux platform.
In Windows, the application takes around 200 MB while launching but in Linux it is taking 300-400 MB of memory. Please let me know what are the parameters I need to watch and how can I fix this memory issue platform independent manner. I know Swing is not OS dependent then why this much variation. The Linux machine is Cent OS 7 and Gnome desktop.
专注分享java语言的经验与见解,让所有开发者获益!
评论