jimbo1qaz
@jimbo1qaz
Nvm oracle/visualvm#34 using java 9 fixed it
Jeff Linahan
@jeffythedragonslayer
Think I found a bug in Java VisualVM
Trying to add custom jstatd connections, any port number I type in it puts a decimal point in the port number
port number should stay unsigned int
Jeff Linahan
@jeffythedragonslayer
Version 1.8.0_121 (build 140910)
Jiri Sedlacek
@jisedlac
It's not a decimal point, it's just a formatted number according to your locale (see java.text.NumberFormat).
Jiri Sedlacek
@jisedlac
You can easily override the system locale when starting VisualVM, for example 'jvisualvm --locale en:US'
Jaymer
@TheJaymer_twitter
can get VisVM to start on Wind 2012R2. Got the License Agreement dialog. See startup logo. Then all goes away.
--userdir "C:\Temp\visualvm_userdir". The created file structure is there. Looks normal.
Log file ends with:
INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy - mode: direct
INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy: fell to default (correct if direct mode went before)
after modules are loaded.
Tomas Hurka
@thurka
It will be nice to see complete messages.log file. However if there is nothing suspicious at the end of the log file, this looks like a JVM crash. Do you see JVM crash file hs_err_pidXYZ.log somewhere on your disk?
Artur Sonnenhohl
@sonnenhohl
Im creating a tool in my company for monitoring eletronic equipments at a frequency of 4Khz (250us between each point) i was trying to hack jfreechart but rendering is a problem there, now im trying to use VisualVM chart since the performance is lot better from my tests, the biggest problem for me is that i cannot (or dont know how) how to separate points in 250us since the timestamp only allows milliseconds, someone had done this before or can point me in some direction?
Is possible to create the X-Axis with fixed double values instead of timestamp?
Jiri Sedlacek
@jisedlac
@sonnenhohl The default/public implementation of VisualVM charts only allow [ms] resolution (long values for the X-axis). To enable the [us] resolution you'd have to change the underlying library implementation and either tweak the axis renderer which tranforms longs to Strings OR implement your own ChartItem which supports double values for the X-axis.
cbfiddle
@cbfiddle
I am using JDK 10 on macOS. I used to be possible to run CPU sampler without doing anything special. Now it says it cannot create a JMX connection. Whose problem is this? The documentation on JMX connections seems dated.
Tomas Hurka
@thurka
@cbfiddle It works for me. Can you, please, send VisualVM messages.log to visualvm.feedback@gmail.com ?
steviesteve
@steviesteve
Hi does anyone know if its possible to increase the limit of the sql query text displayed when using the JDBC profiler? It looks like it gets truncated maybe at around 1KB not sure if a VisualVM thing or a setting somewhere else
Tomas Hurka
@thurka
@steviesteve Yes, the SQL query is truncated at 1024 chars. What kind of application generates such a long queries?
steviesteve
@steviesteve
@thurka the application i'm trying to debug is called Mendix you don't have much control over how the ORM works so it can produce some very long queries
David
@ShevaDavid
hi. How can I use VisualVM to profile several microservices at a time?
ysong2123
@ysong2123

Hi, thanks for the great tool to help us profile our back-end components a lot! i have a quick question about the tool: firstly i use the visualVM jmx remote connection and have a heap-dump file in my local.
the interesting thing is the file is about less than 500 MB. but the heap size is about 8GB in Monitor tab. i think the 8 GB could be the real size in our java component. so why the hpprof file is just 400+MB? and i just also can get the instance size in 400+ level, can't reflect the real memory usage in the runtime, right?

Really appreciated if you great team can help on those concerns.
Thanks,

1170500112
@guozix
I met the problem of "Error Starting VisualVM". It inform me of "You are running VisualVM using JRE" But I have already checked my config in eclipse preference...
Tomas Hurka
@thurka
@guozix Can you please describe in more details, what are you trying to do and what does not work? What version of VisualVM do you use and how is config in eclipse preference involved? Thanks.
1170500112
@guozix
Thank you for your attention. My JDK version is 10.0.1, and eclipse 4.7.3a. I just download the latest version visualvm1.4.2 and visualvm_launcher_u3_eclipse. I have successfully install the integration plugin of visualvm_launcher and checked eclipse preference: Window > Preferences > Run/Debug > Launching > VisualVM Configuration", there's a option "JDK Home", already pointing correctly to my jdk install path. But when I use the visualVM launcher instead of the default launcher of eclipse. It jump out a window: "Error starting VisualVM"and informing "You are running VisualVM using JRE", and inform me to use JDK instead. But I don't know why, I'm actually installed JDK10 and the path is correct. I'm hoping that visualvm work normally in eclipse.
1170500112
@guozix
add:(OS: WIN10) when I double click on visualvm.exe in "\visualvm142\bin", it also jump out the same error window
Tomas Hurka
@thurka
The dialog informing you that "You are running VisualVM using JRE" should also display path to fould JRE. What path it is?
1170500112
@guozix
It's "Location: D\JAVA\jdk10.0.1\jre"
1170500112
@guozix
I remember the time when I was building my java environment, I installed jre in the folder of jdk_home. Is that the reason of my problem?
Tomas Hurka
@thurka
Can you try to start VisualVM from commandline with the following command:
\visualvm142\bin\visualvm.exe --jdkhome D:\JAVA\jdk10.0.1
1170500112
@guozix
Nope. Same dialog again.
Tomas Hurka
@thurka
Ok, we found out that this is caused by your public JRE installation path, which is D:\JAVA\jdk10.0.1\jre. If you choose any other directory like D:\JAVA\jdk10.0.1\jre10 or D:\JAVA\jre10.0.1 VisualVM will start just fine. The only path, which will not work is D:\JAVA\jdk10.0.1\jre. :-) To fix it - please uninstall public JRE 10.0.1 and install it into different directory or do not install it at all.
1170500112
@guozix
Thanks very much! I'll have a try with the method.
Tomas Hurka
@thurka
Ok, let me know the result.
1170500112
@guozix
Aha, it works, finally. Thanks a lot.
Tomas Hurka
@thurka
You are welcome.
Prabhash Rajarathne
@rPrabhash_twitter
Hi All, I'm trying to use VisualVM for a Remote linux host. I connected with the host using "nohup jstatd -p 1099 -J-Djava.security.policy=<(echo 'grant codebase "file:${java.home}/../lib/tools.jar" {permission java.security.AllPermission;};') &" command and unfortunately I can't get the heap dump from the remote machine.
Prabhash Rajarathne
@rPrabhash_twitter
Can someone help me to enable this Heapdump option
Tomas Hurka
@thurka
You need to use JMX to be able to invoke headump remotely. If you need just heap dump and nothing else, I suggest to use jmap on remote linux host to get the heap dump.
t-gmt
@t-gmt
hi there!
have you removed JDBC button from Sampler tab?
Tomas Hurka
@thurka
JDBC button is in Profiler tab. It was never in Sampler tab.
t-gmt
@t-gmt
Thank you @thurka, you're absolutely right! I was confused because Profiler tab was missing and Sampler tab contains exactly the same buttons.
Johan Fabry
@jfabry
Hi all, anybody been able to get visualvm working with Azul Systems' Zulu? It cannot seem to find my installation even though I pass it the options --jdkhome "C:\Program Files\Zulu-Java\"
Tomas Hurka
@thurka
Azul Systems' Zulu should work just fine. Which version of VisualVM do you use? Can you post exact commandline and corresponding error message?

Thank you @thurka, you're absolutely right! I was confused because Profiler tab was missing and Sampler tab contains exactly the same buttons.

Right, Profiler tab is only available for local java applications.

benbw
@AL-Liang

Hi,all.

VisualVM(version:1.4.3 and 1.4.4) worded properly before. However, it does not show applicaitons now and all options under applications are disabled. Some applicaitons are running locally. And No errors were reported.

And I already summited a issue in github. oracle/visualvm#157
arturdeveloper
@arturdeveloper
Hello!
Having problem while trying to run VisualVM on Ubuntu 18.04. Installed from the official repository using Ubuntu Software package manager (some 250MB of downloads). Not able to get past the Licensing Agreement. The "I Agree" and "Exit" buttons at the bottom don't react to clicks. Any ideas?
arturdeveloper
@arturdeveloper
My bad! Had to restart OS to make it work. Problem resolved. Thanks!
ElvinsJ
@caoyifeng007
When I install Tracer-JVM Probes, it says "Some plugins require org.openide.filesystems.combat 8 to be installed". What can I do next?
Jiri Sedlacek
@jisedlac
@caoyifeng007 What is your VisualVM version?