Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    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?
    Robert LU
    @RobberPhex
    Hi, I moved some pages from archive repo. please review this visualvm/visualvm.github.io#2
    Jean-Marc Borer
    @jmborer
    Hi there. Is there a plan to move from Ant to Maven for building the app?
    I would be willing to help since I am used to work with the NB platform and Maven since several years now.
    So to start experimenting I would like to know which is really the official sources repo on GitHub for the sources of VisualVM?
    Jean-Marc Borer
    @jmborer
    For my information: what is the difference between oracle/visualvm and visualvm/visualvm.github.io?
    Jiri Sedlacek
    @jisedlac
    @jmborer Hello Jean-Marc, thanks for your interest in VisualVM! FYI, visualvm/visualvm.github.io hosts the project web pages, oracle/visualvm contains the tool sources.
    Currently we don't plan to switch from Ant to Maven. Can you please file a RFE (https://github.com/oracle/visualvm/issues/new?template=feature_request.md) and describe your use case?
    Jean-Marc Borer
    @jmborer
    @jisedlac Thank you for your answer. I'll do what you suggest. 1) IMHO, with Maven it is much easier to compile and build a Netbeans Platform based application. Ant is more flexible but NB projects are more complexe to understand and therefore to build. 2) When people like me want to build their own app/plugin relying on VisualVM artifacts/modules, it is easier as well 3) publish the Maven artifacts to a repo is just super simple and would avoid the step to use Maven Nb plugins to to publish the artifacts of the Ant project.
    My question is: would you be interested if I try to port maybe even in parallel the build from Ant to Maven?
    By the way, I was able to re-use some modules from VisualVM (the graphs) in my own NB platform app without using the copied-over modules, but by using the original once instead.
    I did not look at the 11.1 based code, but do you still need to copy some module sources from NB platform to VisualVm instead of "depending" on them?
    Abhay
    @abhaybhegde
    Hi, how do i increase the max char limit of SQL query displayed during JDBC profilling?
    Tomas Hurka
    @thurka
    @abhaybhegde The limit is 1024 chars and it is currently not configurable. As a workaround you can change MAX_STRING_LENGTH constant in ProfilerRuntimeCPUand rebuild VisualVM. This way you can increase the max char limit of SQL query.
    Jean-Marc Borer
    @jmborer
    I have updated the readme in my clone to improve the explanation how to generate Maven artefacts. Any interests in integrating this in the master?
    Jean-Marc Borer
    @jmborer
    The documentation to create a plugin is gone. Any chance to restore it?
    Zac Policzer
    @ZacAttack
    Hey folks! Recently upgraded to visvualvm 2.0.1 on OSX. In the past I used to be able to right click an object and copy the objects id down (which I could then feed into an oql query with heap.findObject). I find that in 2.0.1 this functionality is more elusive. Any idea on how to find this?
    Jiri Sedlacek
    @jisedlac
    @ZacAttack The Object ID column is hidden by default. Please enable it by right-clicking the table header. Then you'll have the Copy | Copy Object ID action available in the context menu for the selected instance.
    Zac Policzer
    @ZacAttack
    @jisedlac Thank you so much! That worked!
    iKarthik
    @iKarthik
    Hello, am trying to remote profile my spring boot application with VisualVM. I have modified startup params to be able to remote monitor and am able to connect my local visual vm to my remote spring boot instance successfully. However, i dont see the profiler tabs (like I normally see when i connect visual vm to a locally running JVM application). I especially would like to see the jdbc tabs, which gives me a ton of information about what SQLs are being used
    reading in SO(https://stackoverflow.com/questions/34283299/profiler-tab-not-coming-in-visualvm-for-remote-jmx-connection), i have seen a few posts that says "Visual VM does not all to remote profile, but only allows remote monitoring". Is this true?
    @thurka I just saw your earlier comment that says "Profiler tab is only available for local java applications.". If this is true, what options do i have to remote profile my applications? Are there any workaround/tools that exists, that will help me do this?
    Tomas Hurka
    @thurka
    @iKarthik You can run VisualVM on remote machine and display it on your local one using vnc or remote X session or RDP, etc.
    iKarthik
    @iKarthik
    @thurka My remote application is dockerized running within a kubernetes cluster. Dont have the luxury of running visual vm there
    Azary Smotrich
    @azary1_gitlab
    Trying to start visualvm 2.0.4 on linux / KDE with OpenJDK 11 and getting a SIGSEGV in Java itself.

    Problematic frame:

    C [libatk-wrapper.so+0xeeba] component_added_handler+0xa

    Any clues?
    Azary Smotrich
    @azary1_gitlab
    Found the old bug here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798924
    The solution/workaround is to comment-out the line assistive_technologies=org.GNOME.Accessibility.AtkWrapper in the /usr/lib64/jvm/java-11-openjdk-11/conf/accessibility.properties file. Strange, that bug should have been fixed long time ago.
    1 reply
    Tomas Hurka
    @thurka

    @thurka My remote application is dockerized running within a kubernetes cluster. Dont have the luxury of running visual vm there

    Hmm, in such case I am not sure what you can do, but if you want to do some more experiments, you can try:

    • run your application in the test environment outside of docker, kubernetes
    • modify the docker image and include VisualVM there
    • use NetBeans and remote profiling. If your application can run on JDK 8, use NetBeans 8.2
    Truman
    @TrumanXia
    how can visual 2.0.5 font be adjusted?
    i see no menu or shortcut
    Jiri Sedlacek
    @jisedlac
    @TrumanXia To change the font size, start VisualVM with the --fontsize parameter: visualvm --fontsize 15. For a permanent change, add this parameter to the visualvm_default_options in <visualvm_install>/etc/visualvm.conf.
    michaelnellis
    @michaelnellis

    I am trying, unsuccessfully, to connect VisualVM to a vagrant image with a tomcat java app. Can someone provide some assistance? The vagrant image is using NAT. I have changed the java parameters in the tomcat java app to include the remote jmx configurations. I have disabled the vagrant image firewall. I have setup the port forwarding of the vagrant image using virtualbox. VisualVM will not connect. I can connect a web browser to our application so I know that the port forwarding is working. Here are the jmx settings:
    -Dcom.sun.management.jmxremote=true
    -Dcom.sun.management.jmxremote.port=8849
    -Dcom.sun.management.jmxremote.authenticate=false
    -Dcom.sun.management.jmxremote.ssl=false
    -Djava.rmi.server.hostname=127.0.0.1
    -Dcom.sun.management.jmxremote.rmi.port=8849'

    Thanks

    Truman
    @TrumanXia
    @jisedlac thanks
    Tomas Hurka
    @thurka
    @michaelnellis I am not sure what is the correct setup for JMX, especially when you are using NAT, but -Djava.rmi.server.hostname=127.0.0.1 does not look right to me. java.rmi.server.hostname should be set to IP address used by VisualVM.
    michaelnellis
    @michaelnellis
    @thurka ... I believe I found a reference that says what I am trying to do, perform remote profiling on a vagrant image, is not possible with VisualVM ... so you can consider my post as resolved.
    Tomas Hurka
    @thurka
    @michaelnellis Right, remote profiling is not possible, but you can use both CPU and Memory sampler as remote profiler.
    black-hawk-256
    @black-hawk-256

    I’m start the jstatd prozess as “root” on a unix host and add this host to remote in my visualvm

    I only see metaspaces, classes and threads and cpu moniotor is not supported
    In the register card “monitor and all buttons "perform gc" and "heap dump" are disabled.
    Is that correct?
    Under the register card "sampler" all buttons (cpu, memory, stop)
    are disabled. Is it not possible to get heap dumps from remote java application?
    much thanks for your answer

    6 replies
    black-hawk-256
    @black-hawk-256

    @thurka
    many thanks for your answer.
    ok i undertand. to get the heap space dump from remote applications
    is only possible with the jmx connecton parameter in my java app
    on the server. :( :(

    that is harmful and why is the register card even "sampler"
    activated this was confusing me. grrrrrr