Moving the mouse pointer over a java.awt.Window using JRE7 consumes
aprox. twice the CPU time as with JRE6 when logging is used (when a call
to java.util.logging.getLogger(String)---even without using the returned
Logger--- has been done). Keyboard key event processing suffers the same
performance penalty. For steps to reproduce this problem please look at:
The performance degradation seems to be "enabled" by the call of
sun.util.logging.PlatformLogger.redirectPlatformLoggers() done inside
java.util.LogManager.readPrimorialConfiguration() on JRE7. Call chain:
This call is not made on JRE6. If this problem is not easy to solve then
I guess is better to remove this call from JRE7's
readPrimordialConfiguration as it does more harm than good.
Please let me know if there is a better place to report this problem. A
couple of weeks ago I "opened" a bug report on bugs.sun.com but I
received no response at all.
Reported on jdk7u-dev@:
In cases when we don't build complex strings for logging in AWT code, we don't
usually guard such logging statements with if (...loggable...) checks.
The suggested change will address these specific cases by
eliminating some internal string building operations in the logger
code itself, thus boosting performance even further.
Pushed to awt-gate forest: http://hg.openjdk.java.net/jdk8/awt/jdk/rev/9ed029a0326d