Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

yourkit loses connection, browser can still connect

Moderators: Vladimir Kondratyev, Anton Katilin

yourkit loses connection, browser can still connect

Postby wmilspec » Wed Jan 27, 2016 5:53 pm

Hi all,

Warning: this may be a firewall issue.

I'm trying yjp_2015.12-b17_EAP . We have licenses (somewhere) but it was easier to download the eap for a quick test.

I'm finding the following problem:

Context

- yjp_2015.12-b17_EAP
- java application running w/ yourkit agent on box A (10.25.10.14)
- yourkit profiler running on box B
- Initially yourkit profiler successfully connects to remote application:
10.25.10.14:10001

Problem

-Immediately the UI displays text that says:
Code: Select all
    Local Application "WrapperJVMMain" at port 10001 has terminated or connection is lost


Additional info

-However, browser can still connect from box B to A:10001 and shows profiler output over display
http://10.25.10.14:10001/
-If I run the profiler locally (on Box A, 10.25.10.14) , it can connect "back to itself" via to a 'remote application 10.25.10.14:10001'

Extra Problem
I tried changing the port by adding ',port=8080' to the yjp options, yjpagent did not honor it, i.e. it listend on 10001

Code: Select all
-agentpath:c:/opt/yourkit/yjp_2015.12-b17_EAP/bin/win64/yjpagent.dll=disablestacktelemetry,disableexceptiontelemetry,port=8080,delay
=10000,probe_disable=*


Any suggestions?

thanks in advance
wmilspec
 
Posts: 2
Joined: Wed Jan 27, 2016 4:59 pm

Re: yourkit loses connection, browser can still connect

Postby Anton Katilin » Wed Jan 27, 2016 9:49 pm

Hi,

Could you please send the profiler UI log file ~/.yjp/log/yjp-<PID>.log (for simplicity, delete everything in ~/.yjp/log before running the UI to reproduce the problem). It should contain exact exception that turned the UI to the "disconnected" state.

I tried changing the port by adding ',port=8080' to the yjp options, yjpagent did not honor it, i.e. it listend on 10001
Why do you think so? Could you please provide the agent log ~/.yjp/log/WrapperJVMMain-<PID>.log

Best regards,
Anton
Anton Katilin
 
Posts: 5574
Joined: Wed Aug 11, 2004 8:37 am

Re: yourkit loses connection, browser can still connect

Postby Anton Katilin » Wed Jan 27, 2016 9:55 pm

Update: if this is really a firewall issue, you may try connecting to the remote machine via SSH tunnel:
https://www.yourkit.com/docs/java/help/connect.jsp

The syntax in the remote connection dialog should be

user@10.25.10.14

...where "user" is the user name under which you can ssh to the host A.
Anton Katilin
 
Posts: 5574
Joined: Wed Aug 11, 2004 8:37 am

Re: yourkit loses connection, browser can still connect

Postby wmilspec » Thu Jan 28, 2016 3:41 am

Here's my yjp log. I don't see evidence of exception
a few other points:
-as these are windows boxes, we don't have ssh enabled
-as far as 'port=' not working: I concluded as such by checking netstat. [I had tried to switch the port to 80 or 8080 to get past any firewall issues]

Code: Select all
15.12-17 0.040: Command line:
  C:\opt\yourkit\yjp_2015.12-b17_EAP\jre64\bin\javaw.exe
  -XX:+HeapDumpOnOutOfMemoryError
  -Xmx4G
  -XX:PermSize=256m
  -XX:MaxPermSize=256m
  -jar
  ..\lib\yjp.jar
15.12-17 0.040: Executable: C:\opt\yourkit\yjp_2015.12-b17_EAP\jre64\bin\javaw.exe
15.12-17 0.040: Windows Server 2008 R2; version 6.1.7601; 64-bit process
15.12-17 0.041: hid: 16022D9318XV2XYX7741226V9YWZ746U8YWY82708Y 64-bit machine
15.12-17 0.041: Today is 20160128
15.12-17 0.041: full_build_stamp: 2015.12.17 201601261442
15.12-17 0.041: Agent library path: C:\opt\yourkit\yjp_2015.12-b17_EAP\bin\win64\yjpagent.dll
15.12-17 0.041:
---------------------------------------------------------------------
Product: YourKit Java Profiler 2015.12-b17 EAP - built on 201601261442
JDK: 1.8.0_72
VM: Java HotSpot(TM) 64-Bit Server VM
Vendor: Oracle Corporation
OS: Windows Server 2008 R2
OS version: 6.1
OS arch: amd64
Date and time: Thu Jan 28 03:27:09 UTC 2016
Properties:
  awt.toolkit=sun.awt.windows.WToolkit
  file.encoding.pkg=sun.io
  file.encoding=Cp1252
  file.separator=\
  java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
  java.awt.printerjob=sun.awt.windows.WPrinterJob
  java.class.path=..\lib\yjp.jar
  java.class.version=52.0
  java.endorsed.dirs=C:\opt\yourkit\yjp_2015.12-b17_EAP\jre64\lib\endorsed
  java.ext.dirs=C:\opt\yourkit\yjp_2015.12-b17_EAP\jre64\lib\ext;C:\Windows\Sun\Java\lib\ext
  java.home=C:\opt\yourkit\yjp_2015.12-b17_EAP\jre64
  java.io.tmpdir=C:\Cygwin\tmp\
  java.library.path=C:\opt\yourkit\yjp_2015.12-b17_EAP\jre64\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Cygwin\usr\local\bin;C:\Cygwin\bin;C:\Program Files\Microsoft SQL Server\100\Tools\Binn;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\opscode\chef\bin;C:\opscode\chef\embedded\bin;C:\Windows\System32\WindowsPowerShell\v1.0;.
  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=Windows Server 2008 R2
  os.version=6.1
  path.separator=;
  sun.arch.data.model=64
  sun.awt.enableExtraMouseButtons=true
  sun.boot.class.path=C:\opt\yourkit\yjp_2015.12-b17_EAP\jre64\lib\resources.jar;C:\opt\yourkit\yjp_2015.12-b17_EAP\jre64\lib\rt.jar;C:\opt\yourkit\yjp_2015.12-b17_EAP\jre64\lib\sunrsasign.jar;C:\opt\yourkit\yjp_2015.12-b17_EAP\jre64\lib\jsse.jar;C:\opt\yourkit\yjp_2015.12-b17_EAP\jre64\lib\jce.jar;C:\opt\yourkit\yjp_2015.12-b17_EAP\jre64\lib\charsets.jar;C:\opt\yourkit\yjp_2015.12-b17_EAP\jre64\lib\jfr.jar;C:\opt\yourkit\yjp_2015.12-b17_EAP\jre64\classes
  sun.boot.library.path=C:\opt\yourkit\yjp_2015.12-b17_EAP\jre64\bin
  sun.cpu.endian=little
  sun.cpu.isalist=amd64
  sun.desktop=windows
  sun.io.unicode.encoding=UnicodeLittle
  sun.java.command=..\lib\yjp.jar
  sun.java.launcher=SUN_STANDARD
  sun.jnu.encoding=Cp1252
  sun.management.compiler=HotSpot 64-Bit Tiered Compilers
  sun.os.patch.level=Service Pack 1
  user.country=US
  user.dir=C:\opt\yourkit\yjp_2015.12-b17_EAP\bin
  user.home=C:\Users\wmilspec
  user.language=en
  user.name=wmilspec
  user.script=
  user.timezone=UTC
  user.variant=
Environment:
  ALLUSERSPROFILE=C:\ProgramData
  APPDATA=C:\Users\wmilspec\AppData\Roaming
  CLIENTNAME=milspec-530
  COMMONPROGRAMFILES=C:\Program Files\Common Files
  COMPUTERNAME=APP03
  COMSPEC=C:\Windows\system32\cmd.exe
  CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
  CommonProgramW6432=C:\Program Files\Common Files
  EXECIGNORE=*.dll
  FP_NO_HOST_CHECK=NO
  HOME=C:\Cygwin\home\wmilspec
  HOMEDRIVE=C:
  HOMEPATH=\Users\wmilspec
  HOSTNAME=app03
  INFOPATH=/usr/local/info:/usr/share/info:/usr/info
  LANG=en_US.UTF-8
  LOCALAPPDATA=C:\Users\wmilspec\AppData\Local
  LOGONSERVER=\\APP03
  MACADDR=8c4920524153
  NUMBER_OF_PROCESSORS=4
  OLDPWD=/cygdrive/c/opt/yourkit
  ORIGINAL_PATH=/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/opscode/chef/bin:/cygdrive/c/opscode/chef/embedded/bin:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0
  OS=Windows_NT
  PATH=C:\Cygwin\usr\local\bin;C:\Cygwin\bin;C:\Program Files\Microsoft SQL Server\100\Tools\Binn;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\opscode\chef\bin;C:\opscode\chef\embedded\bin;C:\Windows\System32\WindowsPowerShell\v1.0
  PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
  PRINTER=Send To OneNote 2010
  PROCESSOR_ARCHITECTURE=AMD64
  PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 63 Stepping 2, GenuineIntel
  PROCESSOR_LEVEL=6
  PROCESSOR_REVISION=3f02
  PROFILEREAD=true
  PROGRAMFILES=C:\Program Files
  PROMPT=$P$G
  PS1=\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$
  PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
  PUBLIC=C:\Users\Public
  PWD=/cygdrive/c/opt/yourkit/yjp_2015.12-b17_EAP/bin
  ProgramData=C:\ProgramData
  ProgramFiles(x86)=C:\Program Files (x86)
  ProgramW6432=C:\Program Files
  SESSIONNAME=RDP-Tcp#0
  SHELL=/bin/bash
  SHLVL=2
  SYSTEMDRIVE=C:
  SYSTEMROOT=C:\Windows
  TEMP=C:\Cygwin\tmp
  TERM=xterm
  TMP=C:\Cygwin\tmp
  TZ=Etc/GMT
  USER=wmilspec
  USERDOMAIN=APP03
  USERNAME=wmilspec
  USERPROFILE=C:\Users\wmilspec
  WINDIR=C:\Windows
  _=./profiler.exe
  windows_tracing_flags=3
  windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log
---------------------------------------------------------------------


15.12-17 0.041: com.yourkit.Main1: starting...
15.12-17 0.041: com.yourkit.Main1: number of args: 0
15.12-17 0.041: com.yourkit.Main1: offlineOptionSpecified = false
15.12-17 0.073: com.yourkit.h.c3: [update installer]: no update scheduled - nothing to do
15.12-17 0.194: com.yourkit.Main1: oomeDumperStatus: 1
15.12-17 0.325: com.yourkit.h.f.a.a: FYI: native (current) LAF font: javax.swing.plaf.FontUIResource[family=Tahoma,name=Tahoma,style=plain,size=11]
15.12-17 0.326: com.yourkit.h.f.a.a: FYI: metal font: javax.swing.plaf.FontUIResource[family=Dialog,name=Dialog,style=bold,size=12]
15.12-17 0.326: com.yourkit.h.f.a.a: general font: javax.swing.plaf.FontUIResource[family=Tahoma,name=Tahoma,style=plain,size=11]
15.12-17 0.326: com.yourkit.h.f.a.a: menu font: javax.swing.plaf.FontUIResource[family=Tahoma,name=Tahoma,style=plain,size=11]
15.12-17 0.889: com.yourkit.h.i.c.c: ParallelExecutor: pool size 4
15.12-17 0.949: shmem: Global\YOURKIT SHARE G: OK, isFirst=1
15.12-17 0.949: shmem: Local\YOURKIT SHARE L: OK, isFirst=1
15.12-17 0.952: shmem: Global\YOURKIT SHARE2 G: OK, isFirst=1
15.12-17 0.953: shmem: Local\YOURKIT SHARE2 L: OK, isFirst=1
15.12-17 0.961: shmem: Global\YOURKIT SHARE5 G: OK, isFirst=1
15.12-17 0.961: shmem: Local\YOURKIT SHARE5 L: OK, isFirst=1
15.12-17 1.143: com.yourkit.h.b6: marker: created C:\Users\wmilspec\.yjp\.yjp_20071015_ui52778
15.12-17 1.783: com.yourkit.h.q: UPDATES_URL: https://www.yourkit.com/updates_yjp_2015_12.xml?build=2015.12.17
15.12-17 3.007: com.yourkit.i.g: LWS-update: code=200 text: payload=AM...   result=ok
15.12-17 168.970: com.yourkit.c.a5: snapshot_outer: starting: null
15.12-17 168.970: com.yourkit.c.a5: controller telemetry limit: 3600
15.12-17 168.975: com.yourkit.c.a5: snapshot_outer: done in 0 sec: null
15.12-17 180.916: com.yourkit.c.a5: snapshot_outer: starting: null
15.12-17 180.916: com.yourkit.c.a5: controller telemetry limit: 3600
15.12-17 180.918: com.yourkit.c.a5: snapshot_outer: done in 0 sec: null
15.12-17 194.632: com.yourkit.c.a5: snapshot_outer: starting: null
15.12-17 194.632: com.yourkit.c.a5: controller telemetry limit: 3600
15.12-17 194.632: com.yourkit.c.a5: snapshot_outer: done in 0 sec: null

wmilspec
 
Posts: 2
Joined: Wed Jan 27, 2016 4:59 pm

Re: yourkit loses connection, browser can still connect

Postby Anton Katilin » Thu Jan 28, 2016 9:14 am

The client log indeed does not contain any errors or warnings, strange.

Could you please send the agent log too.
In particular, you can check that the port has been applied by searching the log for its number.

When the client tells that the remote application has terminated, can you re-connect to it immediately after that from the same client instance?
Anton Katilin
 
Posts: 5574
Joined: Wed Aug 11, 2004 8:37 am

Re: yourkit loses connection, browser can still connect

Postby Anton Katilin » Thu Jan 28, 2016 11:20 am

Update:

Could you please perform the following steps to debug the problem:

1. Install the latest EAP build 18.
2. Write this yjp.jar over <profiler directory>/lib/yjp.jar
https://www.yourkit.com/download/tmp/20 ... 15/yjp.jar
3. Add -Dyjp.log.controllers=true to <user home>/.yjp/ui.ini
4. Reproduce the problem.
5. Provide the new client log file.
Anton Katilin
 
Posts: 5574
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 10 guests

cron