openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #09343
[Bug 1202707] Re: 100% CPU load and freeze caused by sun.reflect.Reflection.getCallerClass0 with Update 25
I see similar freezes and 100% cpu usage with the grails codenarc plugin
- I see it with both current openjdk 6 and 7. Oracle JDK downloads work
without problems.
anders@nacl:~$ java -version
java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.13.04.2)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
anders@nacl:~$ galternatives
anders@nacl:~$ java -version
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.13.04.2)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
(works)
anders@nacl:~$ /opt/jdk1.7.0_25/bin/java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
--
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-7 in Ubuntu.
https://bugs.launchpad.net/bugs/1202707
Title:
100% CPU load and freeze caused by
sun.reflect.Reflection.getCallerClass0 with Update 25
Status in “openjdk-7” package in Ubuntu:
Incomplete
Bug description:
I ask for adding previous version of this package back into
repository, there was no such problem with Update 21.
Related:
https://bugzilla.redhat.com/show_bug.cgi?id=976693
http://jira.codehaus.org/browse/GROOVY-6246
Example thread dump with issue caused by Apache Log4j 2:
"main" prio=10 tid=0xb6806800 nid=0x49a runnable [0xb69cc000]
java.lang.Thread.State: RUNNABLE
at sun.reflect.Reflection.getCallerClass0(Native Method)
at sun.reflect.Reflection.getCallerClass(Reflection.java:68)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:80)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:74)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:31)
at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:342)
at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:301)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1202707/+subscriptions
References