tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Trouble launching Tomcat with YourKit agent
Date Mon, 24 Jun 2013 16:21:47 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

All,

When trying to research my recent AWT-Thread report, I'm finding that
I can't launch Tomcat with YourKit's agent running.

I have added this command-line option when I launch Tomcat:

-
-agentpath:/Applications/YourKit_Java_Profiler_12.0.5.app/bin/mac/libyjpagent.jnilib=port=10005,onlylocal,probe=com.yourkit.probes.builtin.Threads

When Tomcat launches, I get this in catalina.out:

[YourKit Java Profiler 12.0.5] Log file:
/Users/chris/.yjp/log/Tomcat-22114.log

... and the process appears to hang. Attaching with the YourKit GUI
waits forever, does not connect.

Taking a thread dump of the offending process shows the following threads:

2013-06-24 12:16:44
Full thread dump Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode):

"Attach Listener" daemon prio=5 tid=0x00007fef8e0e0800 nid=0x410b
waiting on con
dition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Service Thread" daemon prio=5 tid=0x00007fef8e135000 nid=0x5c03
runnable [0x000
0000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread1" daemon prio=5 tid=0x00007fef90800000 nid=0x5b03
waiting on
condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread0" daemon prio=5 tid=0x00007fef90000000 nid=0x5a03
waiting on
condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"YJPAgent-OOMESnapshotDetector" daemon prio=5 tid=0x00007fef8f001000
nid=0x5803
runnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"YJPAgent-CPUSampler" daemon prio=5 tid=0x00007fef8f000000 nid=0x5703
runnable [
0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"YJPAgent-RequestListener" daemon prio=5 tid=0x00007fef8d073000
nid=0x5603 runna
ble [0x000000016692b000]
   java.lang.Thread.State: RUNNABLE
        at java.net.PlainSocketImpl.$$YJP$$socketAccept(Native Method)
        at java.net.PlainSocketImpl.socketAccept(PlainSocketImpl.java)
        at
java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:
398)
        at java.net.ServerSocket.implAccept(ServerSocket.java:530)
        at java.net.ServerSocket.accept(ServerSocket.java:498)
        at com.yourkit.runtime.Core$4.run(Core.java:702)
        at java.lang.Thread.run(Thread.java:724)

"YJPAgent-Telemetry" daemon prio=5 tid=0x00007fef8d058800 nid=0x5503
in Object.w
ait() [0x0000000166825000]
   java.lang.Thread.State: RUNNABLE
        at
java.util.logging.StreamHandler.configure(StreamHandler.java:76)
        at java.util.logging.StreamHandler.<init>(StreamHandler.java:94)
        at java.util.logging.ConsoleHandler.<init>(ConsoleHandler.java:88)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:57)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at java.lang.Class.newInstance(Class.java:374)
        at
org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLo
gManager.java:521)
        at
org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:464)
        at
org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:288)
        at java.util.logging.LogManager$2.run(LogManager.java:285)
        at java.util.logging.LogManager$2.run(LogManager.java:283)
        at java.security.AccessController.doPrivileged(Native Method)
        at
java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:283)
        - locked <0x00000001476de878> (a
org.apache.juli.ClassLoaderLogManager)
        at java.util.logging.LogManager.getLogManager(LogManager.java:265)
        at java.util.logging.Logger.<init>(Logger.java:264)
        at java.util.logging.Logger.<init>(Logger.java:260)
        at
java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1317)
        at
java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1315)
        at java.util.logging.LogManager$1.run(LogManager.java:196)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.<clinit>(LogManager.java:173)
        at java.util.logging.Logger.demandLogger(Logger.java:336)
        at java.util.logging.Logger.getLogger(Logger.java:390)
        at com.sun.jmx.remote.util.ClassLogger.<init>(ClassLogger.java:55)
        at
javax.management.NotificationBroadcasterSupport.<clinit>(NotificationBroadcasterSupport.java:352)
        at
javax.management.MBeanServerDelegate.<init>(MBeanServerDelegate.java:72)
        at
com.sun.jmx.mbeanserver.MBeanServerDelegateImpl.<init>(MBeanServerDelegateImpl.java:100)
        at
com.sun.jmx.mbeanserver.JmxMBeanServer.newMBeanServerDelegate(JmxMBeanServer.java:1374)
        at
javax.management.MBeanServerBuilder.newMBeanServerDelegate(MBeanServerBuilder.java:66)
        at
javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:320)
        - locked <0x00000001476b3830> (a
javax.management.MBeanServerBuilder)
        at
javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:231)
        at
javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:192)
        at
java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:466)
        - locked <0x00000001476b3040> (a java.lang.Class for
java.lang.management.ManagementFactory)
        at com.yourkit.runtime.OOMEDumper.setVMOption(OOMEDumper.java:75)
        at com.yourkit.runtime.OOMEDumper.enable(OOMEDumper.java:46)
        at
com.yourkit.runtime.TelemetryThread.run(TelemetryThread.java:424)

"Signal Dispatcher" daemon prio=5 tid=0x00007fef8d135800 nid=0x5403
runnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"YJPAgent-Process-Exit-Listener" daemon prio=5 tid=0x00007fef8d0bc800
nid=0x4f23 waiting on condition [0x00000001663b1000]
   java.lang.Thread.State: TIMED_WAITING (sleeping)
        at java.lang.Thread.$$YJP$$sleep(Native Method)
        at java.lang.Thread.sleep(Thread.java)
        at com.yourkit.probes.builtin.Processes$1.run(Processes.java:56)
        at java.lang.Thread.run(Thread.java:724)

"Finalizer" daemon prio=5 tid=0x00007fef8e103000 nid=0x3f03 in
Object.wait() [0x00000001660df000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.$$YJP$$wait(Native Method)
        at java.lang.Object.wait(Object.java)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
        - locked <0x0000000147535960> (a
java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:151)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:189)

"Reference Handler" daemon prio=5 tid=0x00007fef8e109000 nid=0x3e03 in
Object.wait() [0x0000000165fdc000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.$$YJP$$wait(Native Method)
        at java.lang.Object.wait(Object.java)
        at java.lang.Object.wait(Object.java:503)
        at
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)
        - locked <0x0000000147535478> (a java.lang.ref.Reference$Lock)

"main" prio=5 tid=0x00007fef8e000000 nid=0x1703 in Object.wait()
[0x000000010c92d000]
   java.lang.Thread.State: RUNNABLE
        at
java.util.logging.LoggingProxyImpl.getProperty(LoggingProxyImpl.java:110)
        at
sun.util.logging.LoggingSupport.getSimpleFormat(LoggingSupport.java:163)
        at
sun.util.logging.LoggingSupport.getSimpleFormat(LoggingSupport.java:148)
        at
java.util.logging.SimpleFormatter.<clinit>(SimpleFormatter.java:62)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:190)
        at
org.apache.juli.logging.DirectJDKLog.<clinit>(DirectJDKLog.java:52)
        at
org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:170)
        at
org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:242)
        at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:293)
        at
org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:60)

"VM Thread" prio=5 tid=0x00007fef8e05e000 nid=0x3d03 runnable

"GC task thread#0 (ParallelGC)" prio=5 tid=0x00007fef8e00d000
nid=0x3503 runnable

"GC task thread#1 (ParallelGC)" prio=5 tid=0x00007fef8e00e000
nid=0x3603 runnable

"GC task thread#2 (ParallelGC)" prio=5 tid=0x00007fef8e00e800
nid=0x3703 runnable

"GC task thread#3 (ParallelGC)" prio=5 tid=0x00007fef8e00f000
nid=0x3803 runnable

"GC task thread#4 (ParallelGC)" prio=5 tid=0x00007fef8e00f800
nid=0x3903 runnable

"GC task thread#5 (ParallelGC)" prio=5 tid=0x00007fef8e010800
nid=0x3a03 runnable

"GC task thread#6 (ParallelGC)" prio=5 tid=0x00007fef8e011000
nid=0x3b03 runnable

"GC task thread#7 (ParallelGC)" prio=5 tid=0x00007fef8e011800
nid=0x3c03 runnable

"VM Periodic Task Thread" prio=5 tid=0x00007fef8e117000 nid=0x5d03
waiting on condition

JNI global references: 7145


Any ideas?

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)

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJRyHIaAAoJEBzwKT+lPKRYeV0P/1vlzIAKdn4NDrtgJ5koEaRt
drgItgUk+D2Mkzwa9ZVxSOymPiodPnlEiOYL2fzGHw/0GXtCsfigX0u7rkCDguOF
bjwnGtr1u/cxwHy3mmw0TjnkzwxzIwZLl7hqbzgKaJ47lfROA96SYIPFfSTW7oee
gBZZBQP6Hw+dPWdkF5nAQkyOsYqmVtvwEc0+U+jANkljFMiY9oMlesBd8bs+/t9O
F0dKje2dzmCdfDol32YFup/ndxaqcEDFWInpHRKo+vjdARu30anK5Yl50cX7cAy3
Z1e61c2B99ivzjT7pLGSdC3k8d2X5uY9hl0Pn3V6gDvteErsUFJu8Cr6tAA9hDIP
sHFCSU9Gf/0umpEzIvszMisFe1Dh7iAh8JBfK/dhL/esIb/tPTSEHOjBgdd6n+p4
Me9XF9tCfOS59ouG8e6DU59KYq4koxbLSwlFqq/ImbI4LlN1V4z9JWfL5n/0xHHl
rTKDKoatb979GV2ELFljLwh4gvYvWMArhthE0N/MRzL/VwqmqX3TLfQA8/s+H53S
9unl+WXu6m+vCX0dNuiMCdn5jyhDJirOfVWGVdf12YBKGoWOqlKVXUxF8vTbhRBo
kFQi95Nq7/3XH9U4b05FfI5oQYCBBjTGwJABTnh/1C/pwqH/zYKwQEoAertXUrCs
vjc6I3Mbpm9CRe14NdjC
=7u14
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message