performance - Simple Java program - profiling shows unexpected behavior -


given extremely simple java program, shown below, start program , profile visualvm.

public class test {     public static void main(string args[]) throws interruptedexception{       thread.sleep(10000000l);    }  } 

as can seen below metrics, behind scenes keeps on ticking. possibly going on behind scenes here? included screenshot of "sampler" memory , looks if bunch of primitive arrays keep getting created, why this?

enter image description here

enter image description here

you connected process visualvm. obviously, takes some work present fact jvm doing work :) in specific detail, data being collected , sent on jmx connection. garbage created.


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -