Jprofile可以连接到在docker中运行的JVM吗 [英] Can Jprofile connect to JVM running in docker

查看:924
本文介绍了Jprofile可以连接到在docker中运行的JVM吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是JProfiler的新手.我最近遇到了问题.我的Java应用程序在docker中运行,这意味着JVM在docker中运行.但是我的jprofile已安装在主机中.我知道jprofiler必须连接到JVM.那么,jprofiler是否可以连接到在docker中运行的jvm?

I'm new to JProfiler. I came into a problem recently. My Java app is running in docker which means the JVM is runnning in docker. But my jprofile is installed in the host machine. I know the jprofiler must connect to a JVM. So, is there anyway that the jprofiler can connect to jvm running in docker?

推荐答案

类似于将JProfiler连接到远程JVM,您只需要在容器内准备好JProfiler代理并公开端口即可.

It is similar as connects JProfiler to a remote JVM, you just need to have the JProfiler agent ready inside your container and expose the port.

此帖子有逐步指南 http://geekspearls.blogspot.com.au /2016/08/configure-jprofiler-92-to-profiling.html

这篇关于Jprofile可以连接到在docker中运行的JVM吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆