Server unreachable after starting with Yourkit

Questions about YourKit Java Profiler
Post Reply
alexbern
Posts: 7
Joined: Fri Feb 26, 2016 3:18 pm

Server unreachable after starting with Yourkit

Post by alexbern »

Hello,

I have downloaded a trial version for Linux and followed the instructions to integrate with my server that I want to profile (no IDE integration). The server is running under WebSphere Liberty profile, so I tried both the Liberty option and the generic option. The Yourkit runs on the same machine as as the server.

As soon as I start my server with Yourkit, I can not reach it from my browser. The server is configured to accept SSL traffic only via port 9443.

I could not find anything in the help to explain this. Is there some additional configuration steps or something I have missed?

Many thanks
Alex
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Server unreachable after starting with Yourkit

Post by Anton Katilin »

Hi Alex

Does the server start at all after applying the -agentpath parameter? Do you see any errors in its log?

Is the profiler agent log file ~/.yjp/log/<session name>-<pid>.log created?

Best regards,
Anton
alexbern
Posts: 7
Joined: Fri Feb 26, 2016 3:18 pm

Re: Server unreachable after starting with Yourkit

Post by alexbern »

Hi Anton,

The server "starts" but the messages.log and console.log seem to miss some "successful" start messages. It looks like the server is starting but gets stuck somewhere.

Server Java version:
[root@lanneluc-node1 bin]# ./java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build pxa6470_27sr3fp10-20150708_01(SR3 FP10))
IBM J9 VM (build 2.7, JRE 1.7.0 Linux amd64-64 Compressed References 20150630_255653 (JIT enabled, AOT enabled)
J9VM - R27_Java727_SR3_20150630_2236_B255653
JIT - tr.r13.java_20150623_94888.01
GC - R27_Java727_SR3_20150630_2236_B255653_CMPRSS
J9CL - 20150630_255653)
JCL - 20150628_01 based on Oracle jdk7u85-b15


No errors anywhere including yjp log (see below). Here is the jvm.options I created for Liberty following Yourkit instructions:
-agentpath:/root/yjp-2015-build-15088/bin/linux-x86-64/libyjpagent.so=disablestacktelemetry,disableexceptiontelemetry,delay=10000,probe_disable=*,sessionname=WebSphereLiberty

And here is the running java command line:

root 6155 0.2 3.7 7173992 299668 pts/2 Sl 10:57 0:24 /root/RTCSaaS_Qos0_WIs_Liberty/server/jre/bin/java -javaagent:/root/RTCSaaS_Qos0_WIs_Liberty/server/liberty/wlp/bin/tools/ws-javaagent.jar -Djava.awt.headless=true -XX:MaxPermSize=256m -agentpath:/root/yjp-2015-build-15088/bin/linux-x86-64/libyjpagent.so=disablestacktelemetry,disableexceptiontelemetry,delay=10000,probe_disable=*,sessionname=WebSphereLiberty -Djazz.connector.sslEnabledProtocols=TLSv1,TLSv1.1,TLSv1.2 -Djazz.connector.algorithm=IbmX509 -Djava.awt.headless=true -DSQLSERVER_JDBC_DRIVER_FILE=/root/RTCSaaS_Qos0_WIs_Liberty/server/sqlserver/sqljdbc4.jar -DORACLE_JDBC_DRIVER_FILE=/root/RTCSaaS_Qos0_WIs_Liberty/server/oracle/ojdbc6.jar -DDB2I_JDBC=/root/RTCSaaS_Qos0_WIs_Liberty/server/db2i -DDB2Z_JDBC=/root/RTCSaaS_Qos0_WIs_Liberty/server/db2z -Dorg.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin=true -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true -DJAZZ_HOME=file:///root/RTCSaaS_Qos0_WIs_Liberty/server/conf -Dcom.ibm.team.repository.tempDir=/tmp -Dlog4j.configuration=file:///root/RTCSaaS_Qos0_WIs_Liberty/server/conf/startup_log4j.properties -Xmx4G -Xms4G -Xmn512M -XX:MaxDirectMemorySize=1G -Dderby.locks.waitTimeout=1200 -Dderby.locks.deadlockTimeout=1140 -agentlib:healthcenter -Dcom.ibm.java.diagnostics.healthcenter.agent.port=1972 -Dcom.ibm.team.repository.cluster.nodeId=node1 -Dcom.ibm.team.repository.service.internal.db.allowConcurrentAccess=true -Dcom.ibm.team.repository.mqtt.broker.address=tcp://9.37.249.148:1883 -Dretry.count=0 -Dretry.wait=10 -DAsynchronousDistributedInteger=1 -Xgcpolicy:gencon -Xcompressedrefs -Xgc:preferredHeapBase=0x100000000 -verbose:gc -Xverbosegclog:logs/gc.log -Xdiagnosticscollector -jar /root/RTCSaaS_Qos0_WIs_Liberty/server/liberty/wlp/bin/tools/ws-server.jar clm

yjp.log:
15088 0.027: Command line:
/root/yjp-2015-build-15088/bin/../jre64/bin/java
-Xmx4G
-XX:+HeapDumpOnOutOfMemoryError
-XX:OnError=/root/yjp-2015-build-15088/bin/../bin/yjp.sh -on_error %p
-jar
/root/yjp-2015-build-15088/bin/../lib/yjp.jar
15088 0.027: Executable: /root/yjp-2015-build-15088/jre64/bin/java
15088 0.027: uname:
sysname: Linux
release: 3.10.0-229.14.1.el7.x86_64
version: #1 SMP Tue Aug 25 11:21:22 EDT 2015
machine: x86_64
15088 0.027: Linux; fast_thread_cpu_time=1; 64-bit process
15088 0.027: hid: 360229994943YZ28V805Z3Y5526VZ4V4W8 64-bit machine
15088 0.027: Today is 20160225
15088 0.027: full_build_stamp: 15088 201602211325
15088 0.027: Agent library path: /root/yjp-2015-build-15088/bin/linux-x86-64/libyjpagent.so
15088 0.027:
---------------------------------------------------------------------
Product: YourKit Java Profiler 2015 build 15088
Build: 15088 on 201602211157
JDK: 1.8.0_72
VM: Java HotSpot(TM) 64-Bit Server VM
Vendor: Oracle Corporation
OS: Linux
OS version: 3.10.0-229.14.1.el7.x86_64
OS arch: amd64
Date and time: Thu Feb 25 17:42:01 EST 2016
Properties:
awt.toolkit=sun.awt.X11.XToolkit
file.encoding.pkg=sun.io
file.encoding=UTF-8
file.separator=/
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.awt.printerjob=sun.print.PSPrinterJob
java.class.path=/root/yjp-2015-build-15088/bin/../lib/yjp.jar
java.class.version=52.0
java.endorsed.dirs=/root/yjp-2015-build-15088/jre64/lib/endorsed
java.ext.dirs=/root/yjp-2015-build-15088/jre64/lib/ext:/usr/java/packages/lib/ext
java.home=/root/yjp-2015-build-15088/jre64
java.io.tmpdir=/tmp
java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=1.8.0_72-b15
java.specification.name=Java Platform API Specification
java.specification.vendor=Oracle Corporation
java.specification.version=1.8
java.vendor.url.bug=http://bugreport.sun.com/bugreport/
java.vendor.url=http://java.oracle.com/
java.vendor=Oracle Corporation
java.version=1.8.0_72
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Oracle Corporation
java.vm.specification.version=1.8
java.vm.vendor=Oracle Corporation
java.vm.version=25.72-b15
line.separator=

os.arch=amd64
os.name=Linux
os.version=3.10.0-229.14.1.el7.x86_64
path.separator=:
sun.arch.data.model=64
sun.awt.enableExtraMouseButtons=true
sun.boot.class.path=/root/yjp-2015-build-15088/jre64/lib/resources.jar:/root/yjp-2015-build-15088/jre64/lib/rt.jar:/root/yjp-2015-build-15088/jre64/lib/sunrsasign.jar:/root/yjp-2015-build-15088/jre64/lib/jsse.jar:/root/yjp-2015-build-15088/jre64/lib/jce.jar:/root/yjp-2015-build-15088/jre64/lib/charsets.jar:/root/yjp-2015-build-15088/jre64/lib/jfr.jar:/root/yjp-2015-build-15088/jre64/classes
sun.boot.library.path=/root/yjp-2015-build-15088/jre64/lib/amd64
sun.cpu.endian=little
sun.cpu.isalist=
sun.desktop=gnome
sun.font.fontmanager=sun.awt.X11FontManager
sun.io.unicode.encoding=UnicodeLittle
sun.java.command=/root/yjp-2015-build-15088/bin/../lib/yjp.jar
sun.java.launcher=SUN_STANDARD
sun.jnu.encoding=UTF-8
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
sun.os.patch.level=unknown
user.country=US
user.dir=/root/yjp-2015-build-15088/bin
user.home=/root
user.language=en
user.name=root
user.timezone=America/New_York
Environment:
COLORTERM=gnome-terminal
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-BhmvYpK9kN,guid=84e68e14a70b029b0d72b84e56c73130
DISPLAY=:1
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_KEYRING_CONTROL=/run/user/0/keyring-ZgrR9q
GNOME_SHELL_SESSION_MODE=classic
GPG_AGENT_INFO=/run/user/0/keyring-ZgrR9q/gpg:0:1
GTK_IM_MODULE=gtk-im-context-simple
HISTCONTROL=ignoredups
HISTSIZE=1000
HOME=/root
HOSTNAME=lanneluc-node1
IMSETTINGS_INTEGRATE_DESKTOP=yes
IMSETTINGS_MODULE=none
LANG=en_US.UTF-8
LESSOPEN=||/usr/bin/lesspipe.sh %s
LOGNAME=root
LS_COLORS=rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:
MAIL=/var/spool/mail/root
NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
PWD=/root/yjp-2015-build-15088/bin
QT_IM_MODULE=ibus
SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2547,unix/unix:/tmp/.ICE-unix/2547
SHELL=/bin/bash
SHLVL=3
SSH_AGENT_PID=2804
SSH_AUTH_SOCK=/run/user/0/keyring-ZgrR9q/ssh
TERM=xterm-256color
USER=root
VNCDESKTOP=lanneluc-node1:1 (root)
VTE_VERSION=3406
WINDOWID=33562497
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/0
XDG_SESSION_ID=c1
XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt
XMODIFIERS=@im=ibus
---------------------------------------------------------------------


15088 0.027: com.yourkit.Main1: starting...
15088 0.028: com.yourkit.Main1: number of args: 0
15088 0.111: com.yourkit.Main1: oomeDumperStatus: 1
15088 0.336: com.yourkit.g.f.a.a: FYI: native (current) LAF font: javax.swing.plaf.FontUIResource[family=Cantarell,name=Cantarell,style=plain,size=15]
15088 0.336: com.yourkit.g.f.a.a: FYI: metal font: javax.swing.plaf.FontUIResource[family=Dialog,name=Dialog,style=bold,size=12]
15088 0.336: com.yourkit.g.f.a.a: FYI: default font preference for this system: metal
15088 0.337: com.yourkit.g.f.a.a: font: using metal
15088 0.337: com.yourkit.g.f.a.a: general font: javax.swing.plaf.FontUIResource[family=Dialog,name=Dialog,style=plain,size=12]
15088 0.742: com.yourkit.g.i.c.c: ParallelExecutor: pool size 4
15088 0.776: shmem 4234148E: OK
15088 0.778: shmem 42341490: OK
15088 0.888: com.yourkit.g.b6: marker: created /tmp/.yjp_20071015_ui35759
15088 2.400: com.yourkit.h.f: LWS-update: code=200 text: payload=AM... result=ok
15088 26.539: com.yourkit.d.a5: snapshot_outer: starting: null
15088 26.539: com.yourkit.d.a5: controller telemetry limit: 3600
15088 26.543: com.yourkit.d.a5: snapshot_outer: done in 0 sec: null
15088 60987.905: com.yourkit.e.bc: exiting now...
alexbern
Posts: 7
Joined: Fri Feb 26, 2016 3:18 pm

Re: Server unreachable after starting with Yourkit

Post by alexbern »

Sorry, I have attached the wrong log file. Here is the correct one:

15088 0.000: Command line:
/root/RTCSaaS_Qos0_WIs_Liberty/server/jre/bin/java
-javaagent:/root/RTCSaaS_Qos0_WIs_Liberty/server/liberty/wlp/bin/tools/ws-javaagent.jar
-Djava.awt.headless=true
-XX:MaxPermSize=256m
-agentpath:/root/yjp-2015-build-15088/bin/linux-x86-64/libyjpagent.so=disablestacktelemetry,disableexceptiontelemetry,delay=10000,probe_disable=*,sessionname=WebSphereLiberty
-Djazz.connector.sslEnabledProtocols=TLSv1,TLSv1.1,TLSv1.2
-Djazz.connector.algorithm=IbmX509
-Djava.awt.headless=true
-DSQLSERVER_JDBC_DRIVER_FILE=/root/RTCSaaS_Qos0_WIs_Liberty/server/sqlserver/sqljdbc4.jar
-DORACLE_JDBC_DRIVER_FILE=/root/RTCSaaS_Qos0_WIs_Liberty/server/oracle/ojdbc6.jar
-DDB2I_JDBC=/root/RTCSaaS_Qos0_WIs_Liberty/server/db2i
-DDB2Z_JDBC=/root/RTCSaaS_Qos0_WIs_Liberty/server/db2z
-Dorg.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin=true
-Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true
-Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true
-DJAZZ_HOME=file:///root/RTCSaaS_Qos0_WIs_Liberty/server/conf
-Dcom.ibm.team.repository.tempDir=/tmp
-Dlog4j.configuration=file:///root/RTCSaaS_Qos0_WIs_Liberty/server/conf/startup_log4j.properties
-Xmx4G
-Xms4G
-Xmn512M
-XX:MaxDirectMemorySize=1G
-Dderby.locks.waitTimeout=1200
-Dderby.locks.deadlockTimeout=1140
-agentlib:healthcenter
-Dcom.ibm.java.diagnostics.healthcenter.agent.port=1972
-Dcom.ibm.team.repository.cluster.nodeId=node1
-Dcom.ibm.team.repository.service.internal.db.allowConcurrentAccess=true
-Dcom.ibm.team.repository.mqtt.broker.address=tcp://9.37.249.148:1883
-Dretry.count=0
-Dretry.wait=10
-DAsynchronousDistributedInteger=1
-Xgcpolicy:gencon
-Xcompressedrefs
-Xgc:preferredHeapBase=0x100000000
-verbose:gc
-Xverbosegclog:logs/gc.log
-Xdiagnosticscollector
-jar
/root/RTCSaaS_Qos0_WIs_Liberty/server/liberty/wlp/bin/tools/ws-server.jar
clm
15088 0.000: Executable: /root/RTCSaaS_Qos0_WIs_Liberty/server/jre/bin/java
15088 0.001: uname:
sysname: Linux
release: 3.10.0-229.14.1.el7.x86_64
version: #1 SMP Tue Aug 25 11:21:22 EDT 2015
machine: x86_64
15088 0.001: Linux; fast_thread_cpu_time=1; 64-bit process
15088 0.001: hid: 360229994943YZ28V805Z3Y5526VZ4V4W8 64-bit machine
15088 0.001: Today is 20160225
15088 0.001: full_build_stamp: 15088 201602211325
15088 0.001: Agent library path: /root/yjp-2015-build-15088/bin/linux-x86-64/libyjpagent.so
15088 0.001: Agent_OnLoad: orig_options=disablestacktelemetry,disableexceptiontelemetry,delay=10000,probe_disable=*,sessionname=WebSphereLiberty
full_options=disablestacktelemetry,disableexceptiontelemetry,delay=10000,probe_disable=*,sessionname=WebSphereLiberty
15088 0.001: phase: 1
15088 0.001: jvmtiVersion: 30010201
15088 0.001: vendor: IBM Corporation
15088 0.001: version: 2.7
15088 0.001: info: 20150630_255653
15088 0.001: session_id: 116760142381542 (1456439782,27185)
15088 0.003: line_method: 1
15088 0.003: can_generate_exception_events: disabled by default on IBM - specify startup option "_enable_exception_events" to override
15088 0.003: can_access_local_variables: disabled by default on IBM - specify startup option "_with_local_vars" to override
15088 0.010: Reusing existing jar file: /tmp/yjp201602211325.jar
15088 0.010: JVMTI 30010201; 2.7; IBM Corporation; 20150630_255653; [IBM]
15088 0.015: Successfully registered probe classes: 5
Registered: .AgentLoadingSupport$JBoss
Registered: .AgentLoadingSupport$OSGi1
Registered: .AgentLoadingSupport$OSGi2
Registered: .AgentLoadingSupport$OSGi3
Registered: .CPUTracingSupport
15088 0.221: tracing=off: large method: 6184 sun.io.CharacterEncoding.installAll()
15088 0.259: tracing=off: large method: 5376 sun.nio.cs.StandardCharsets$Aliases.init(java.lang.Object[])
15088 0.471: agentStart: 1
15088 0.471: agentStart: 2
15088 0.472: agentStart: OK
15088 0.785: tracing=off: large method: 8582 sun.util.resources.CurrencyNames.getContents()
15088 0.805: tracing=off: large method: 7984 java.math.BigDecimal.dpd2bcdinit()
15088 0.900: tracing=off: large method: 2438 java.util.JapaneseImperialCalendar.roll(int, int)
15088 0.970: tracing=off: large method: 3123 javax.management.MBeanPermission.getMask(java.lang.String)
15088 1.030: [m: 5842 114] total classes: processed=1000 instrumented=1000 348 ms
15088 1.207: tracing=off: large method: 2607 com.ibm.security.x509.AlgorithmId.algOID(java.lang.String)
15088 2.319: agentInit: 1
15088 2.321: agentInit: Core loaded
15088 2.327: setTriggers:

15088 2.333: setTriggers: to unregister: 0
15088 2.333: setTriggers: method listeners to register: 0
15088 2.333: setTriggers: OK
15088 2.334: ourUnsafe: true
15088 2.334: shmem 42341490: OK
15088 2.334: shmem 4234148E: OK
15088 2.336: Profiler agent is listening on port 10001
15088 2.336: *** HINT ***: To get profiling results, connect to the application from the profiler UI
15088 2.336: agentInit: Core.init() called
15088 2.336: agentInit: OK
15088 2.336: startProfiling: 1
15088 2.336: startProfiling: OK
15088 2.337: socket timeout: 30000
15088 2.351: [m: 6814 149] total classes: processed=2000 instrumented=2000 739 ms
15088 2.489: tracing=off: large method: 15779 sun.util.resources.TimeZoneNames.getContents()
15088 2.688: tracing=off: large method: 2890 com.ibm.ws.kernel.launch.internal.FrameworkManager.launchFramework(com.ibm.ws.kernel.boot.BootstrapConfig, com.ibm.wsspi.logprovider.LogProvider)
15088 2.751: tracing=off: large method: 2545 org.osgi.framework.AdminPermission.parseActions(java.lang.String)
15088 63.399: f_t_a_d: #7 trn=27 conv=0/0 ms=1
15088 16879.213: f_t_a_d: #50 trn=77 conv=0/0 ms=1
15088 46847.277: f_t_a_d: #123 trn=153 conv=0/0 ms=1
15088 48108.426: SP: gc #0 3 ms=37 sz=19130 p=0 t=2
15088 60641.198: Monitor profiling started
15088 62423.576: SP: pin java.util.HashMap
15088 62423.604: SP: pin org.eclipse.osgi.framework.eventmgr.EventManager$EventThread
15088 62423.692: SP: pin java.lang.Thread
15088 62423.698: SP: pin java.util.logging.LogManager$Cleaner
15088 62423.700: SP: pin com.ibm.tools.attach.javaSE.AttachHandler$teardownHook
15088 62423.701: SP: pin com.ibm.misc.SignalDispatcher
15088 62423.701: SP: pin com.ibm.lang.management.MemoryNotificationThread
15088 62423.702: SP: pin com.ibm.tools.attach.javaSE.AttachHandler$WaitLoop
15088 62425.708: vmDeath: 1
15088 62425.708: vmDeath: 2
15088 62425.708: vmDeath: 3
15088 62425.797: [m: 7006 693] WSN: starting /root/Snapshots/WebSphereLiberty-2016-02-26-shutdown.snapshot
15088 62425.894: [m: 7006 694] WSN: tables written
15088 62425.894: [m: 7006 694] WSN: heap segment closed
15088 62425.894: [m: 7006 693] WSN: map done
15088 62425.930: SP: gc #1 1 ms=36 sz=19548 p=8 t=2
15088 62425.930: [m: 7006 693] WSN: done
15088 62425.930: Snapshot captured: /root/Snapshots/WebSphereLiberty-2016-02-26-shutdown.snapshot
15088 62425.930: vmDeath: 4
15088 62425.930: vmDeath: OK
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Server unreachable after starting with Yourkit

Post by Anton Katilin »

The server "starts" but the messages.log and console.log seem to miss some "successful" start messages. It looks like the server is starting but gets stuck somewhere.
I see no problems in the log. However, did you apply the -agentpath parameter to exactly the same script that you use to start your server without profiling? It should be exactly that one. Actually, enabling of profiling is nothing but just inserting a single JVM command line option -agentpath, which should be done similarly to how other options like -D or -Xmx are applied.
alexbern
Posts: 7
Joined: Fri Feb 26, 2016 3:18 pm

Re: Server unreachable after starting with Yourkit

Post by alexbern »

Hi Anton,

Sorry of this was not clear earlier.

I tried both adding the

Code: Select all

-agentpath:/root/yjp-2015-build-15088/bin/linux-x86-64/libyjpagent.so=disablestacktelemetry,disableexceptiontelemetry,delay=10000,probe_disable=*,sessionname=WebSphereLiberty
into jvm.options file in <INSTALL_DIR>/server/liberty/servers/myappname

and

Code: Select all

-agentpath:/root/yjp-2015-build-15088/bin/linux-x86-64/libyjpagent.so=disablestacktelemetry,disableexceptiontelemetry,delay=10000,probe_disable=*
to the startup script.

You can see what the command line of the running Java process looks like in my post above. Does the order of these options matter?

Perhaps you could try this yourself; I could easily point you to where you can download the server bits. Would this help?
alexbern
Posts: 7
Joined: Fri Feb 26, 2016 3:18 pm

Re: Server unreachable after starting with Yourkit

Post by alexbern »

Anton,

I have found some log files that can explain what is happening ( java.lang.ClassNotFoundException: com.yourkit.runtime.Callback cannot be found). Every time I try to start my server, a new file like this gets created. Any ideas how I can get around this?

!SESSION 2016-02-29 11:16:25.860 -----------------------------------------------
eclipse.buildId=unknown
java.fullversion=JRE 1.7.0 IBM J9 2.7 Linux amd64-64 Compressed References 20150630_255653 (JIT enabled, AOT enabled)
J9VM - R27_Java727_SR3_20150630_2236_B255653
JIT - tr.r13.java_20150623_94888.01
GC - R27_Java727_SR3_20150630_2236_B255653_CMPRSS
J9CL - 20150630_255653
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US

!ENTRY com.ibm.ws.logging.osgi 4 0 2016-02-29 11:16:25.862
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Error starting module.
at org.eclipse.osgi.container.Module.doStart(Module.java:580)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.NoClassDefFoundError: com.yourkit.runtime.Callback
at com.ibm.ws.logging.internal.osgi.Activator.<init>(Activator.java:35)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1920)
at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:755)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:706)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
... 8 more
Caused by: java.lang.ClassNotFoundException: com.yourkit.runtime.Callback cannot be found by com.ibm.ws.logging.osgi_1.0.10.cl50720150827-0437
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:741)
... 16 more
Root exception:
java.lang.NoClassDefFoundError: com.yourkit.runtime.Callback
at com.ibm.ws.logging.internal.osgi.Activator.<init>(Activator.java:35)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1920)
at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:755)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:706)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.ClassNotFoundException: com.yourkit.runtime.Callback cannot be found by com.ibm.ws.logging.osgi_1.0.10.cl50720150827-0437
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:741)
... 16 more

!ENTRY com.ibm.ws.kernel.service.location 4 0 2016-02-29 11:16:25.868
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Error starting module.
at org.eclipse.osgi.container.Module.doStart(Module.java:580)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.NoClassDefFoundError: com.yourkit.runtime.Callback
at com.ibm.ws.kernel.service.location.internal.Activator.<clinit>(Activator.java:32)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1920)
at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:755)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:706)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
... 8 more
Caused by: java.lang.ClassNotFoundException: com.yourkit.runtime.Callback cannot be found by com.ibm.ws.kernel.service.location_1.1.10.cl50720150827-0437
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:741)
... 16 more
Root exception:
java.lang.NoClassDefFoundError: com.yourkit.runtime.Callback
at com.ibm.ws.kernel.service.location.internal.Activator.<clinit>(Activator.java:32)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1920)
at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:755)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:706)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.ClassNotFoundException: com.yourkit.runtime.Callback cannot be found by com.ibm.ws.kernel.service.location_1.1.10.cl50720150827-0437
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:741)
... 16 more

!ENTRY com.ibm.ws.org.eclipse.equinox.coordinator.1.3.100 4 0 2016-02-29 11:16:25.872
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Error starting module.
at org.eclipse.osgi.container.Module.doStart(Module.java:580)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.NoClassDefFoundError: com.yourkit.runtime.Callback
at org.eclipse.equinox.coordinator.Activator.<init>(Activator.java:21)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1920)
at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:755)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:706)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
... 8 more
Caused by: java.lang.ClassNotFoundException: com.yourkit.runtime.Callback cannot be found by com.ibm.ws.org.eclipse.equinox.coordinator.1.3.100_1.0.10.cl50720150827-0437
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:741)
... 16 more
Root exception:
java.lang.NoClassDefFoundError: com.yourkit.runtime.Callback
at org.eclipse.equinox.coordinator.Activator.<init>(Activator.java:21)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1920)
at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:755)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:706)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.ClassNotFoundException: com.yourkit.runtime.Callback cannot be found by com.ibm.ws.org.eclipse.equinox.coordinator.1.3.100_1.0.10.cl50720150827-0437
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:741)
... 16 more

!ENTRY com.ibm.ws.org.eclipse.equinox.metatype.1.4.100 4 0 2016-02-29 11:16:25.875
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Error starting module.
at org.eclipse.osgi.container.Module.doStart(Module.java:580)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.NoClassDefFoundError: com.yourkit.runtime.Callback
at org.eclipse.equinox.metatype.impl.Activator.<clinit>(Activator.java:42)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1920)
at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:755)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:706)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
... 8 more
Caused by: java.lang.ClassNotFoundException: com.yourkit.runtime.Callback cannot be found by com.ibm.ws.org.eclipse.equinox.metatype.1.4.100_1.0.10.cl50720150827-0437
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:741)
... 16 more
Root exception:
java.lang.NoClassDefFoundError: com.yourkit.runtime.Callback
at org.eclipse.equinox.metatype.impl.Activator.<clinit>(Activator.java:42)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1920)
at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:755)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:706)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.ClassNotFoundException: com.yourkit.runtime.Callback cannot be found by com.ibm.ws.org.eclipse.equinox.metatype.1.4.100_1.0.10.cl50720150827-0437
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:741)
... 16 more

!ENTRY com.ibm.ws.config 4 0 2016-02-29 11:16:25.877
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Error starting module.
at org.eclipse.osgi.container.Module.doStart(Module.java:580)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.NoClassDefFoundError: com.yourkit.runtime.Callback
at com.ibm.ws.config.internal.WSConfigActivator.<clinit>(WSConfigActivator.java:65535)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1920)
at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:755)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:706)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
... 8 more
Caused by: java.lang.ClassNotFoundException: com.yourkit.runtime.Callback cannot be found by com.ibm.ws.config_1.0.10.cl50720150827-0437
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:741)
... 16 more
Root exception:
java.lang.NoClassDefFoundError: com.yourkit.runtime.Callback
at com.ibm.ws.config.internal.WSConfigActivator.<clinit>(WSConfigActivator.java:65535)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1920)
at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:755)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:706)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.ClassNotFoundException: com.yourkit.runtime.Callback cannot be found by com.ibm.ws.config_1.0.10.cl50720150827-0437
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:741)
... 16 more

!ENTRY com.ibm.ws.org.apache.felix.scr.1.8.3 4 0 2016-02-29 11:16:25.884
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Error starting module.
at org.eclipse.osgi.container.Module.doStart(Module.java:580)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.NoClassDefFoundError: com.yourkit.runtime.Callback
at org.apache.felix.scr.impl.Activator.<clinit>(Activator.java:54)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1920)
at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:755)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:706)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
... 8 more
Caused by: java.lang.ClassNotFoundException: com.yourkit.runtime.Callback cannot be found by com.ibm.ws.org.apache.felix.scr.1.8.3_1.0.10.cl50720150827-0437
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:741)
... 16 more
Root exception:
java.lang.NoClassDefFoundError: com.yourkit.runtime.Callback
at org.apache.felix.scr.impl.Activator.<clinit>(Activator.java:54)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1920)
at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:755)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:706)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.ClassNotFoundException: com.yourkit.runtime.Callback cannot be found by com.ibm.ws.org.apache.felix.scr.1.8.3_1.0.10.cl50720150827-0437
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:741)
... 16 more

!ENTRY com.ibm.ws.org.apache.aries.jmx.core.whiteboard.1.1.2 4 0 2016-02-29 11:16:25.896
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Error starting module.
at org.eclipse.osgi.container.Module.doStart(Module.java:580)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.NoClassDefFoundError: com.yourkit.runtime.Callback
at org.apache.aries.jmx.core.whiteboard.Activator.<init>(Activator.java:58)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1920)
at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:755)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:706)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
... 8 more
Caused by: java.lang.ClassNotFoundException: com.yourkit.runtime.Callback cannot be found by com.ibm.ws.org.apache.aries.jmx.core.whiteboard.1.1.2_1.1.10.cl50720150827-0437
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:741)
... 16 more
Root exception:
java.lang.NoClassDefFoundError: com.yourkit.runtime.Callback
at org.apache.aries.jmx.core.whiteboard.Activator.<init>(Activator.java:58)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1920)
at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:755)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:706)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:318)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.ClassNotFoundException: com.yourkit.runtime.Callback cannot be found by com.ibm.ws.org.apache.aries.jmx.core.whiteboard.1.1.2_1.1.10.cl50720150827-0437
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:741)
... 16 more
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Server unreachable after starting with Yourkit

Post by Anton Katilin »

We're investigating the issue.

Please add com.yourkit.runtime.* to the list of allowed packages in the osgi settings. The profiler agent adds itself automatically in many cases so no manual work is normally need, but it seems that in this particular case the automatic solution might not work.
alexbern
Posts: 7
Joined: Fri Feb 26, 2016 3:18 pm

Re: Server unreachable after starting with Yourkit

Post by alexbern »

I had to add this -Dorg.osgi.framework.bootdelegation=com.yourkit.* to the startup script. Now everything works.

Would be nice if "Integration" wizard suggested to do this.

If there is a better way to do this, and solve the issue, please let us know.

Many thanks for your help.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Server unreachable after starting with Yourkit

Post by Anton Katilin »

Would be nice if "Integration" wizard suggested to do this.
Such osgi issues are automatically handled inside the agent, so no extra parameters are normally needed. We're investigating why the automatic solution might not work in this particular case and how to improve it. The difficulty is that there is no general, direct way to tell osgi to allow loading of the agent classes that would work in all cases, instead we have to take into account different osgi implementations and their internals.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Server unreachable after starting with Yourkit

Post by Anton Katilin »

We've added support of this case in the upcoming build 28.
alexbern
Posts: 7
Joined: Fri Feb 26, 2016 3:18 pm

Re: Server unreachable after starting with Yourkit

Post by alexbern »

Thank you! You guys are awesome.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Server unreachable after starting with Yourkit

Post by Anton Katilin »

Thank you :)

The build 28 with the fix is available for download now. (You may apply the fix immediately with "Help | Check for Updates").

In our tests, it works without the need to add the mentioned -D option.
Could you please check it works without the -D in your environment too.
Post Reply