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
1
vote
1 answer

see contents of StringBuffer or char[] from a Java heap dump

I have a Java heap dump that I'm analyzing, looking for high consumers of memory. More than 50% of the memory in the dump is in use by two StringBuffers, each of which holds a char[] which (naturally) accounts for most of the memory in the…
Dan
  • 7,155
  • 2
  • 29
  • 54
1
vote
2 answers

If not parent object, what does GC clear up on the parent after super.finalize() method?

My question is based on the fact that: Whenever we create a sub class, the superclass object is not created even if the super class constructor is invoked. If finalize() method is defined in subclass then super.finalize() must be called…
Nirmal
  • 1,229
  • 1
  • 15
  • 31
1
vote
1 answer

Jedis getResource() is taking lot of time

I am trying to use sentinal redis to get/set keys from redis. I was trying to stress test my setup with about 2000 concurrent requests. i used sentinel to put a single key on redis and then I executed 1000 concurrent get requests from redis. But…
Global Warrior
  • 5,050
  • 9
  • 45
  • 75
1
vote
1 answer

Cannot find configuration VisualVM in GGTS

Is there a way to use VisualVM when running a Grails application in Groovy-Grails Tool Suite? I have already installed VisualVM Eclipse plugin but cannot find where to configure this.
1
vote
1 answer

IBM JDK 7 is missing jstatd. Not able to monitor Java application running on AIX using VisualVM.

I have an enterprise application running on AIX 7 and have installed both IBM JDK 6 and 7 in the server. As per the VisualVM documentation, we need to start the jstatd daemon on the server. This utility is however missing in IBM JDKs. How can I use…
ITQuest
  • 113
  • 1
  • 2
  • 8
1
vote
1 answer

Java: monitor static fields state

I have a JVM running. For 2 different moments in time t0 and t1 I'd like to know how values for all static fields of all classes changed at t1 versus t0. Solutions I had in mind: Monitor/debug/profile all static fields write access. Compare 2…
preeze
  • 1,061
  • 1
  • 12
  • 18
1
vote
1 answer

Fails to connect through JMX+SSL from VisualVM

I have connected a JMX connection from a machine without SSL. But when I give the SSL though the App is getting launched without any error, VisualVM is unable to establish a JMX connection through the specified port. Following is the command I used…
Kalpa-W
  • 348
  • 3
  • 22
1
vote
1 answer

How do I fix "Error starting VisualVM" in Eclipse?

I tried the following steps: In Eclipse under Window > Preferences > Run/Debug > Launching > VisualVM Configuration. Next to VisualVM Executable, I choose Browse. and select jvisualvm.exe from C:\Program Files\Java\jdk1.6.0_32\bin. Now when I press…
iamnotapsycho
  • 23
  • 1
  • 5
1
vote
2 answers

jvisualvm thread cpu time usage

I'm using the jvisualvm to monitor the running java program. when I dig into the details of thread cpu usage, I get the following picture. The CPU usage consists of file portions: Running, Sleeping, Wait, Park and Monitor. I didn't find any official…
Evans Y.
  • 4,209
  • 6
  • 35
  • 43
1
vote
0 answers

JMX icon and application title

I have an application that exposes several MBeans using spring-jmx. When I open JVisualVM the program is listed as com.package.Main, and it has a default icon. How do I change this. I know it is possible as my Intellij IDE has an icon, and simply…
Klaus Groenbaek
  • 4,820
  • 2
  • 15
  • 30
1
vote
1 answer

How can I get in a JVM profiler a view similar to the "Timeline Panel" in android's Traceview?

In the Android platform you've got Traceview, a profiling tool featuring this "Timeline Panel" view where you can easily see the time spent by each method in a historical and structured way. One nested call shows under another, you can zoom in to…
Victor Basso
  • 5,556
  • 5
  • 42
  • 60
1
vote
3 answers

How do I get a peak memory usage snapshot from JVisualVM?

I need a memory snapshot at the peak of my application's memory usage - is there an easy way to achieve this? thanks
MalcomTucker
  • 7,407
  • 14
  • 72
  • 93
1
vote
1 answer

How use VisualVM profiler with STS?

I would like to use VisualVM profiler with Springsource Tool Suite (STS). The application is running under the Tomcat server in STS. When jvisualvm.exe is run from the jdk bin folder, the following error is displayed: Local Java applications cannot…
Helen Reeves
  • 471
  • 2
  • 14
  • 26
1
vote
3 answers

java.lang.InternalError: Can't connect to X11 window server for JVisualVM profiling session

I have an Ubuntu server VM (myapp01) and have a Java application deployed there. The app has been acting wonky and I would like to profile it with JVisualVM. To do this I need to install X-Windows on my Windows 7 host, and then get the Ubuntu VM to…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
1
vote
1 answer

How to run X Windows from a (headless) Ubuntu server?

We have an Ubuntu server VM that is running a Java application on it, and I need to profile it using Java's JVisualVM GUI tool. I need to SSH into the server (say, ssh admin@ourapp.example.com) and turn on X Windows so that I can run JVisualVM at…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756