Workaround for Slow Java Swing Menus -
in java 7 , 8 there bug in swing menus causes slow when running application remotely on x11 while other x11 applications running. issue introduced in java 7 , has never been fixed. have suggestions on workaround. using nxclient addresses swing menu issue, introduces own unwelcome issues.
the steps reproduce swing menu issue are: - run x11 application locally activity - log remote server using ssh -y someserver - execute java gui application (e.g. jvisualvm) running java 7 or 8 - select menu , observe several second delay in response
just spent entire day trying solve same issue. there's barely info out there.
local machines:
- linux fedoracore 20, kde desktop, nvidia geforce 7300 le
- linux fedoracore 20, kde desktop, nvidia geforce gt 720
running remote java gui on ssh, swing popups extremely slow pc2. desktop freezes until popup appears. on other hand, pc1 runs fast/smooth, no problems @ all.
turns out, in case, problem pc2 has 2 monitors. closest bug report find is: jdk-8004103 : sun.awt.x11.xtoolkit.getscreeninsets() may slow , appears still open.
temporary workarounds:
- in kde, disable second monitor, launch application, enable second monitor
- work in gnome desktop (my gnome environment not affected issue)
- launch remote java app using java 6 (issue not present in java6)
none of these ideal workarounds, considering desktop freezes 3-4 seconds every time click on menu item, they'll time being.
Comments
Post a Comment