jvisualvm

Getting Java program running in Eclipse to show up in VisualVM

帅比萌擦擦* 提交于 2020-01-04 04:39:09
问题 I'm trying to use Java VisualVM on Windows 7 64-bit together with Eclipse Kepler and am experiencing the following issue: I have a Java application running inside Eclipse, but when I open jVisualVM, the only item showing up in the Applications under Local is VisualVM itself. Is it possible to have my Java application show up as well? Do I need to launch it with some command line parameter to allow VisualVM to connect? Do I need to run it outside of Eclipse? 回答1: Due to a design peculiarity in

permgen, but Java VisualVM says “No GC root found”

老子叫甜甜 提交于 2020-01-01 05:04:11
问题 I have a very simple 'Hello world' type web application (Spring 3.2.1, Hibernate 4.1.9) on stopping/restarting the web-app Tomcat 7.0.26 The following web applications were stopped (reloaded, undeployed), but their classes from previous runs are still loaded in memory, thus causing a memory leak (use a profiler to confirm): /myapp I took the following steps: Started JVisualVM Right click on Tomcat and selected 'Heap Dump' Clicked on 'OQL Console' on the [heapdump] Ran this query: select x

How to execute eclipse under java VisualVM

大兔子大兔子 提交于 2019-12-24 17:40:44
问题 I developed couple of plugins specific for my project and I think I have some leackage because my eclipse slow down after long using time, so I want to profile it. I can run eclipse from eclipse (in plugins development mode) and connect it to JVVM, but problem (slow eclipse) occurs after long time of "normal" development, so I want to start my "normal" eclipse and connect to VisualVM. Problem is that eclipse appears in VisualVM as and I can't profile it in any way (I see only number of

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

末鹿安然 提交于 2019-12-24 11:34:11
问题 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 export its X11 connection to my host when I tell it to run JVisualVM on the VM. So I started by downloading XMing here: http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe/download I used all default/recommended

How to change the application name in VisualVM?

删除回忆录丶 提交于 2019-12-22 08:48:14
问题 How can i change the application name in VisualVM ? I have multiple applications that where started from my IDE, but it's hard to distinguish them, there name are equal and the only difference is the PID. So i want to give them meaningful names, but the menu-item "Rename.." is disabled. How can i rename the application ? It seems to me like rename is only possible on snapshots -> descripion of snapshots 回答1: Rename and Remove menu item are enabled only for snapshots not for applications. If

Daemon Threads, thread count, and total started thread count

戏子无情 提交于 2019-12-21 08:22:40
问题 I have a simple code for a multi-threaded echo server in Java (it returns whatever received back to the clients). I'm profiling various resources of the server including the thread statistics. Below are some of these statistics as per number of connected clients. My questions is for the baseline (# of clients 0) compared with non-baselines! 1) why when a single client connects, the total thread count increases by 2? (for the rest, it makes sense to increment by 1) 2) What are the two non

Daemon Threads, thread count, and total started thread count

房东的猫 提交于 2019-12-21 08:22:16
问题 I have a simple code for a multi-threaded echo server in Java (it returns whatever received back to the clients). I'm profiling various resources of the server including the thread statistics. Below are some of these statistics as per number of connected clients. My questions is for the baseline (# of clients 0) compared with non-baselines! 1) why when a single client connects, the total thread count increases by 2? (for the rest, it makes sense to increment by 1) 2) What are the two non

How do you run jvisualvm.exe under the local system account under Windows Server 2008?

无人久伴 提交于 2019-12-21 05:16:24
问题 I've been looking for a comparable approach as posted here for Windows Server 2003 for starting jvisualvm under system account. But I got the error: ...\jdk1.6.0_24\bin\jvisualvm.exe exited on ... with error code -1073741819. I found that jvisualvm is using a configuration file: ...\jdk1.6.0_24\lib\visualvm\etc\visualvm.conf This configuration file contains a default_userdir property that points to ${HOME}/... . The system account seems to have issues with ${HOME} . Changing this parameter

How Java VisualVM shows threads that are not running/finished?

丶灬走出姿态 提交于 2019-12-20 06:48:11
问题 For testing I've created a thread which has just sleep in it. And I know that GC doesnt collect them for a while even if their usage is done but when you dont keep them as an object after they complete their task they should've be gone. So for testing purposes I used Java VisualVM but this is the first time I'm using it. And I see all these timer threads lying around with 0ms but I can still see them. Is this normal? And what does this mean? If I spam thousands of them, will it slow down my

How to find the default JMX port number?

三世轮回 提交于 2019-12-18 10:02:07
问题 I am running a Java application on Java 6 VM on a remote Windows XP, on which I can run jvisualvm.exe to connect to the running application automatically. Now I need to connect that application from my local computer, but I don't know the JMX port number of the remote computer. Where can I find it? Or, must I restart that application with some VM parameters to specify the port number? After reading the question How to find the JMX port in a server, I executed the command on the remote