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

Naming a JMX connection when using --openjmx

I am using the Java Visual VM command line to open remote JMX connections. I use it like this: jvisualvm.exe --userdir "user-config" --openjmx hostname:port This works perfectly fine. But the connection name in the view shows as hostname:port. Is…
ganeshk
  • 5,583
  • 3
  • 27
  • 31
0
votes
2 answers

jvisualvm -how to see live objects with memory consumption

I am trying to use JVisualVM to see my applications live objects and their corresponding memory count (probably at the package level) How do I achieve the same when I connect using a jstad connection Thanks
siva
  • 1,105
  • 4
  • 19
  • 38
-1
votes
3 answers

Why jvm recreate thread pool in case fixedThreadPool and don't do it in case of cachedThreadPool?

I have the code sample: public class ThreadPoolTest { public static void main(String[] args) throws InterruptedException { for (int i = 0; i < 100; i++) { if (test() != 5 * 100) { throw new…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
-1
votes
1 answer

Threads from Java Program

I run java program in debug mode using visualvm. I know my methods in the program are called from Main method but I have no idea why there are other threads. Is there a way I can reduce those threds?
goutthee
  • 329
  • 4
  • 14
-2
votes
1 answer

How to find whether a thread is executing on a particular core in a multicore processor environment?

I am currently running a java program. My java program is multithreaded. My computer has a multi-core processor. Suppose my java program has 4 threads. I would like to know which CPU core was used by which thread. I would like to know how much…
a3.14_Infinity
  • 5,653
  • 7
  • 42
  • 66
1 2 3
24
25