Yourkit behind Nginx

Questions about YourKit Java Profiler
Post Reply
ryank
Posts: 1
Joined: Mon Jul 07, 2014 11:58 am

Yourkit behind Nginx

Post by ryank »

Hello,

I'm trying to connect to a tomcat server that runs behind an Nginx reverse proxy. I can connect directly, without using Nginx, but not if I go through the proxy. I get the following error:

Code: Select all

There is no application running at sub.domain.com with profiler agent configured to listen to port 13500 or profiler agent is incompatible  with current version of profiler.

Detail: Invalid header magic number:43528.....
Though I'm using the same YourKit version on my windows client as on my linux host? My Nginx config looks like this:

Code: Select all

server {
        listen 13500;
        server_name sub.domain.com;

        location = / {
            access_log /var/log/nginx/profiler.log slim;
            proxy_pass          http://127.0.0.1:10001;
        }
    }
The Nginx access log shows, that an error 400 is returned:

Code: Select all

xx.xx.xx.xx sub.domain.com - [07/Jul/2014:14:21:57 +0200] "\x00\x00\x00\x00\x07[\xCD\x15\x00\x01\x90\x00" 400 166 "-" "-" - 0.000 :::: "sub.domain.com.com"
Any help would be appreciated!
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Yourkit behind Nginx

Post by Anton Katilin »

YourKit agent doesn't add anything special to the socket communication, so there is nothing to tweak at the YourKit agent side.

I suppose it makes sense to ask this question in a Ngnix group or consult Nginx reverse proxy documentation.

Please also consider SSH tunneling instead. Version 2014 EAP UI offers built-in support for it:
http://www.yourkit.com/eap
Post Reply