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

many to many - Django Rest Framework ManyToMany filter multiple values -

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

Java Entity Manager - JSON reader was expecting a value but found 'db' -