linux 上的 Jprofiler 远程分析.如何更改探查器数据文件的路径 [英] Jprofiler Remote profiling on linux. How to change path of profiler data files

查看:54
本文介绍了linux 上的 Jprofiler 远程分析.如何更改探查器数据文件的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在带有附加设置的 linux 机器上运行 java (java 6) 应用程序-agentpath:/home/myuser/jprofiler/bin/linux-x64/libjprofilerti.so=nowait,port=7777在 Win box 上使用 JProfiler 7.2.1 我可以连接到进程并检索分析数据.

I am running java (java 6) application on linux box with additional settings -agentpath:/home/myuser/jprofiler/bin/linux-x64/libjprofilerti.so=nowait,port=7777 Using JProfiler 7.2.1 on Win box I can connect to the process and retrieve profiling data.

我可以看到在 Linux 机器上,JProfiler 在/tmp"目录下生成了一些文件.文件名总是不同的(现在是jagJGZkk1"和jdcEoM0XI").由于堆的巨大大小(大约 15 GB)和/tmp"的小可用大小,我无法制作内存快照 - 随着 JProfiler 文件大小的增长,/tmp"变得满了.

I can see that on Linux box JProfiler generates some files under "/tmp" directory. Name of the files are always different (now it is "jagJGZkk1" and "jdcEoM0XI"). Because of huge size of heap (around 15 GB) and small available size of "/tmp" I cannot make a memory snapshot - "/tmp" becomes full as JProfiler's files grow in size.

如何更改 JProfiler 数据文件的路径?是否有任何属性/解决方法?

How can I change the path for JProfiler's data files? Are there any properties/workaround?

谢谢

推荐答案

更改Java使用的临时目录,编辑JProfiler安装目录中的bin/jprofiler.vmoptions并添加一行

To change the temporary directory used by Java, edit bin/jprofiler.vmoptions in the JProfiler installation directory and add a line

-Djava.io.tmpdir=[path to your temp dir]

这篇关于linux 上的 Jprofiler 远程分析.如何更改探查器数据文件的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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