Questions tagged [visualvm]

VisualVM is a visual tool integrating several commandline JDK tools and lightweight profiling capabilities. Designed for both production and development time use, it further enhances the capability of monitoring and performance analysis for the Java SE platform.

653 questions
1
vote
1 answer

How to execute eclipse under java VisualVM

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,…
tomekK
  • 748
  • 8
  • 19
1
vote
2 answers

Debugging a slow Java method

VisualVM is showing me that a particular method is taking a long time to execute. Are there any widely used strategies for looking at the performance (in regards to time) of a Java method? My gut feeling is that the sluggish response time will come…
csilk
  • 188
  • 1
  • 15
1
vote
2 answers

Is 300-400 MB/min alloc/dealloc rate OK for java gc?

There is a java server-side application. Threads number is up to 1000. The app intensely uses NIO for communication, JINI etc. Would you consider allocating/de-allocating of 400 megabytes per a minute to be fine (acceptable) for a java application…
aillusions
  • 194
  • 1
  • 15
1
vote
3 answers

HEAPSPACE ERROR: cannot figure out what is causing the error

Would anyone mind having a look at these bits of code and see if there is a memory leak in them, it isn't going to be overly large but my program keeps crashing after a while of running and I don't know how to use viualvm even though I have been…
pie154
  • 603
  • 3
  • 10
  • 28
1
vote
5 answers

How am I getting a "java.lang.OutOfMemoryError: Java heap space" if my heap isn't full?

I'm debugging a fairly large project I've been working on (but did not originally create) and I've noticed that sometimes it crashes with an OutOfMemoryError. The code is loading a lot of data from files so this isn't entirely surprising in…
MalcolmOcean
  • 2,807
  • 2
  • 29
  • 38
1
vote
1 answer

.net equivalent of visualvm

I am currently working on an application in VB.NET im my spare time and have just received an OutOfMemoryException. As I am currently working in Java at work, I frequently use VisualVM to diagnose any thread/memory issues. So I am now wondering, is…
Andez
  • 5,588
  • 20
  • 75
  • 116
1
vote
1 answer

JVM calltree snapshot for VisualVM

I am trying to use VisualVM to profile a Java (Sun JDK 1.6) standalone application. I have a scripted performance test environment, where I can run my application and get it to report some metrics I care about. Is there some way to get JVM to…
Binil Thomas
  • 13,699
  • 10
  • 57
  • 70
1
vote
2 answers

Glassfish 3.1.2 Cluster Remote Monitoring JConsole/VisualVM

I have a cluster with two nodes, and I am trying to connect to those nodes with VisualVM or JConsole so I can check the health of the JVM. However, I cannot connect to the nodes, with JConsole it just says "Connection Failed" and with VisualVM it…
EpicOfChaos
  • 822
  • 11
  • 23
0
votes
1 answer

JBoss Threads - JMX vs Java Visual VM - reporting different results - Why?

When i use Java VisualVM to monitor my JBoss Application. It shows Live Threads as: 155 Daemon Threads as: 135 When i use JMX Web Console of JBoss. It shows Current Busy Threads as: 40 Current Thread Count as: 60 Why is there so much discrepancy…
Jasper
  • 8,440
  • 31
  • 92
  • 133
0
votes
1 answer

All threads when running a java project

I am using visualVM to monitor my java program, started within eclipse. I am using quartz scheduler and have 2 worker threads, so there are 3 threads for quartz. I have another thread running listening to a socket. Then I have a thread pool with 50…
lucky_start_izumi
  • 2,511
  • 13
  • 41
  • 61
0
votes
1 answer

Where to find Time(CPU) column in VisualVM?

I'm profiling my application with VisualVM 1.3.3 It seems to me that both snapshots "Hot Spots" and "Call Tree" show the wall-clock time. In this question the questioner mentions CPU time indicated in Time(CPU) column. But I can't find that column…
Evgeny
  • 21
  • 2
  • 4
0
votes
0 answers

Enable JMX over TCP (JMXMP) in Spring app

I'd like enable JMXMP in Spring application running locally. application.properties: spring.jmx.enabled=true spring.jmx.url=service:jmx:jmxmp://localhost:9875/ SampleAppConfig.java: import com.app.config.properties.SampleAppProperties; import…
Lesha Pipiev
  • 3,251
  • 4
  • 31
  • 65
0
votes
0 answers

Java Application started via Windows Task Scheduler not visible in VisualVM

When starting a JakartaEE application (Payara 6 on JDK 11) via Windows Server Task Scheduler, the process starts fine and with the correct user but is not visible in VisualVM. After running the same command (batch file) manually, the process is…
sk_dev
  • 295
  • 2
  • 10
0
votes
0 answers

java visualvm jdbc profiler: does it capture the final sql statements that are actually executed by the DB?

I am using JVisualVm's jdbc profiler to monitor my local java program. It would capture something like this: select * from reservation v where v.name like '%'%' If you try to run this in pgadmin, it would throw error: For PgAdmin to run it, we…
Cui Pengfei 崔鹏飞
  • 8,017
  • 6
  • 46
  • 87
0
votes
0 answers

VisualVM doesn't export percents in snapshots

When I click on Save icon and then on "Export Forward Calls" after CPU sampling in VisualVM to export it to a CSV file, the percents aren't exported. Is it a bug of VisualVM? Here is the excerpt from an exported CSV…
ka3ak
  • 2,435
  • 2
  • 30
  • 57