Swing Java 8u40 GUI Performance

I have an application presenting a very sophisticated Swing GUI. The GUI contains a total of about 60,000 different controls (mostly labels, fewer text boxes). Basically, this is a table in which each of many cells contains a standalone control with several shortcuts and a text field.

The problem that I suddenly encounter is related to the release of java after (including) 8u40. The project is built using the JDK 8u122. When I run my application using Java 8u31, everything works fine and smoothly. When I launch my application using any Java (JRE) in the past 8u31, the application starts rendering my complex controls and then takes a 100% processor and everything blocks, I have to kill my application.

Why? I checked the patch records for 8u40, but I could not find anything that could cause such a significant slowdown.

Do you have any ideas?

+5
source share
1 answer

This is similar to the argument -XX:-UseAdaptiveSizePolicy VM, which I use!

Without this, everything works even on newer versions of Java.

Now, with so many controls, I need -XX:-UseAdaptiveSizePolicy

+1
source

Source: https://habr.com/ru/post/1271300/


All Articles