Questions tagged [jvisualvm]

jvisualvm is a Java Virtual Machine monitoring, troubleshooting and profiling tool. It is part of Oracle/Sun JDK since JDK 6 update 7 and is based on open-source project VisualVM.

365 questions
3
votes
3 answers

What launches a JVM thread?

(Please correct me if i am wrong) I understand that when you run a java program by issuing the java command, java MyProg the program will be run onto a new JVM. What loads the program into a new JVM? is it the JRE that spawns a new thread? If…
ziggy
  • 15,677
  • 67
  • 194
  • 287
3
votes
1 answer

visualvm/jvisualvm: not supported for this JVM

I wanted to monitor the JVM of wildfly running as service with jvisualvm/visualvm but I fail to do this. I tried the following things: setting the %TMP% and %TEMP% to C:\Windows\Temp (wildfly console tells me this for java.io.tmpdir) running a…
Aurelius Baier
  • 121
  • 1
  • 6
3
votes
2 answers

How to extract a HashMap from a Java heap dump

I have a Java heap dump generated using jmap. This contains a HashMap which I need to extract into a text format (CSV would be fine). The HashMap is fairly large so I need a scripted solution. Using JVisualVM I can find the HashMap. However, there…
paj28
  • 2,210
  • 3
  • 25
  • 37
3
votes
0 answers

How can I monitor via jvisualvm and jstatd processes of all users?

I updated to java 1.8_66 and got following problem. When I run locally jvisualvm I can monitor (it's meaning connect to process) only processes running under me. When I start sudo jvisualvm, I can monitor only root processes. And I got such problem…
3
votes
2 answers

Why Java VisualVM is not showing WildFly when it is started as a service?

My PC's operating system is Windows 7 Professional 64-bit. I am using JDK 7 Update 80. I am using WildFly 8.2.1. When I start WildFly as a Console then in Java VisualVM I can see it. Then I install WildFly as a Service. When I start the service I…
srh
  • 1,661
  • 4
  • 30
  • 57
3
votes
2 answers

Is there any equivalent of JVisualVM on DotNET?

I would like to know if there is an equivalent of the excellent Java JVisualVM (included with JDK, the command is "jvisualvm") on the DotNet platform ? JVisualVM is a great tool that allows developers and admins to have really useful monitoring on…
Kedare
  • 1,289
  • 16
  • 31
3
votes
4 answers

JVisualVM: "Local Applications Cannot Be Detected"

I would like to monitor a local Java application using JVisualVM. When I'm starting it, the popup 'Local java application cannot be monitored' or 'Local Applications Cannot Be Detected' is shown. I have read here that it is a permissions problem.…
Paweł Dulęba
  • 1,048
  • 1
  • 13
  • 25
3
votes
0 answers

Java 8u20 core dump (thread dump missing stack trace)

I recently used jvisualvm and jstack to analyse a Java 8u20 tomcat core dump. For most threads I am able to see a full stack trace e.g. Thread 21234: (state = BLOCKED) - sun.misc.Unsafe.park(boolean, long) ... But for the current thread (the one…
trisport88
  • 33
  • 2
3
votes
2 answers

Why two instances of spring bean controllers are created in a Spring MVC application?

I have simple Spring MVC application with a jsp and a controller class, deployed in a tomcat server. The setup works fine for multiple requests. I have named the controller class as com.mypackage.mvcController. Now I used jvisualvm to find the…
3
votes
2 answers

Connect to remote JBoss with JMX behind a firewall

I have added the following properties to my JBOSS EAP 6.2 server; JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote" JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=9999" JAVA_OPTS="$JAVA_OPTS…
Biscuit128
  • 5,218
  • 22
  • 89
  • 149
3
votes
1 answer

Log output of JVisualVM

Are there any tools that can connect to a remote JVM and log to a file the information which is displayed in the Monitor tab of JVisualVM or the Overview tab of JConsole? I am aware of applications such as AppDynamics etc - this is for a little…
Rich
  • 15,602
  • 15
  • 79
  • 126
3
votes
0 answers

JConsole/JVisualVm Empty Menu while connecting a remote machine

I have a java app running on serverA with port 1337. I can telnet the remote server with that port and telnet connection seems okay. But when I try to connect from my machine by using either JConsole or JVisualVm, I got nothing but a blank white…
denizdurmus
  • 1,289
  • 1
  • 13
  • 39
3
votes
1 answer

Hawt.io prevents Jvisualvm to connect to the JVM

I am using Hawt.io to monitor my Apache Camel java app, but I have found that if I let it run I cannot use jvisualvm (and similar tools) to profile my app. It seems Hawt.io is using the connector that Camel exposes so jvisualvm cannot connect to the…
hveiga
  • 6,725
  • 7
  • 54
  • 78
3
votes
2 answers

JConsole not connecting to java process

When I start JConsole it identifies my java process(local) but it is not able to connect to it. Connection Failed: Retry? The connection to 17424 did not succeed. Would you like to try again? Selecting connect again gives the same error(17424 is…
Aniket Thakur
  • 66,731
  • 38
  • 279
  • 289
3
votes
0 answers

Why does heap space constantly increase when monitoring Tomcat with Java VisualVM?

I have a JRubyOnRails application running in Tomcat. After browsing to my application (localhost), logging in and then doing nothing, the Heap space seems to be growing continuously... Is that normal? If I press on Perform GC, it does go down again.…
Lieven Cardoen
  • 25,140
  • 52
  • 153
  • 244