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
0
votes
0 answers

PermGen size (as monitored in VisualVM) starts decreasing

We are running a Swing App which starts getting very slow after a time and it appears to be due to the fact that the PermGen size as seen in JVisualVM is reducing until eventually the Permgen used is the same as the size. The Heap size does not…
0
votes
1 answer

Eclipse: Java Monitor won't show cpu statistics

I am profiling a java application using jvisualvm. The CPU profile from jvisualvm has narrowed down the slow part of the code to one particular method. It doesn't say which part of the method is slow though. To get more information I tried…
eeijlar
  • 1,232
  • 3
  • 20
  • 53
0
votes
1 answer

Eclipse huge CPU spikes

I am desperately trying to find the issue of my Eclipse to freeze for moments (up to 2-3 sec) caused by CPU spiked (18-19 cores with 100% load). During the spikes nothing works, whole eclipse just unresponsive. Life got better since I modified…
Cron Merdek
  • 1,084
  • 1
  • 14
  • 25
0
votes
0 answers

Thread dump for a Citrix virtualized process?

I need to do a thread dump to a JAVA application running through Citrix XenApp (on Windows 2008). I'm able to see the process in Task Manager, but when I'm trying to do the thread dump using jstack -l I'm receiving the following error: "Not…
0
votes
1 answer

VisualVM Cannot connect to 178.xxx.xxx.xxx:xxxx using service:jmx:rmi///

I used visualvm last week on my notebook and it worked without any issues. When I wanted to use it yesterday I get the error: VisualVM Cannot connect to 178.xxx.xxx.xxx:xxxx using service:jmx:rmi///... once adding a jmx connection. The odd thing…
user2693017
  • 1,750
  • 6
  • 24
  • 50
0
votes
1 answer

Regarding Threads and JVisualVM

I am running the following program in Java (through Eclipse IDE): package threaddemo; class Runner extends Thread{ @Override public void run() { while(true) System.out.println("Running in a thread ...."); } } public…
Garrett
  • 1
  • 2
0
votes
1 answer

Heap dump in visualvm glassfish

I have a webservice on amazon ec2 running on glassfish 4 server, I tried to connect visualvm to the server but it were impossible, so I followed this tutorial (http://looksok.wordpress.com/2012/02/10/remote-use-of-visualvm-with-xming/), I installed…
RoberV
  • 587
  • 5
  • 22
0
votes
1 answer

What does this Max value stands for in J VisualVm?

Hi I can not find a document? Our vm options is like this…
cgon
  • 1,955
  • 2
  • 23
  • 37
0
votes
3 answers

Take thread dump of application without tomcat restart

I had to create thread dump of web application in tomcat runned as a service without need to restart tomcat. I tried to attach jconsole, jvisualvm, jstack, but without success. Tomcat is not jmx remote enabled. (But can't introduce properties -…
romsac
  • 67
  • 8
0
votes
1 answer

How to profiling Java methods invoked by reflect

I'm using JVisualVM to profile my Java application. In my application, I use reflect to run some methods. For example: public void a() {} public void b() {} public void runMethod() { Method m = this.getClass().getMethod("a"); // or…
Bin Wang
  • 2,697
  • 2
  • 24
  • 34
0
votes
1 answer

JVisualVM remote working when destination is behind NAT?

I am in developer network and the JBoss to be monitored using JVisualVM is behind client firewall in separate network. JBoss is exposed to us through a NAT. The exposed JMX port works when using telnet from our developer network, but JVisualVM still…
user1340582
  • 19,151
  • 35
  • 115
  • 171
0
votes
1 answer

CPU consumption of Thread.sleep()

Watching in the Sampler Tab / CPU, under the CPU Samples sub-tab, i see that the most consuming method is java.lang.Thread.sleepnative. I have about 30 Threads with relative sleep() calls. But what's the meaning of this? My average reported CPU…
Fede Rossi
  • 69
  • 2
  • 7
0
votes
1 answer

Running btrace on a short running program from NetBeans

I wanted to run btrace on a short running program from NetBeans so I started jvisualvm from a Window command prompt then started the program in debug mode from NetBeans and set a breakpoint on the first statement in the "main" class.. I then…
scvblwxq
  • 41
  • 5
0
votes
1 answer

Java VisualVM to get HeapDump from tomcat but Tomcat is not listed under local applications

I am trying to diagnose a possible memory leak issue. The application is behaving very slow. Just by increasing the permgen size will only temporarily solve the issue. I want to garbage collect the unwanted classloader space. so, I need to get a…
Diya
  • 31
  • 5
0
votes
1 answer

How can delegating method be so slow?

I have few methods which are indicated as slow by profiler of jvisualvm Unfortunately, I can't see what can be improved, since methods are public int getDimensionValue(int index) { if( !containsDimension(index) ) { throw new…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385