Java Swing界面在Linux上的内存使用比Windows高。

huangapple 未分类评论46阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2020年4月11日 02:07:55
  • 转载请务必保留本文链接:https://java.coder-hub.com/61146128.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定