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

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

Slow performance first queries on SQL Azure -

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