Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jprofiler Remote profiling on linux. How to change path of profiler data files

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.

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.

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

Thanks

like image 413
Chernyy Avatar asked Dec 30 '25 17:12

Chernyy


1 Answers

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]
like image 146
Ingo Kegel Avatar answered Jan 01 '26 07:01

Ingo Kegel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!