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?
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
Post a Comment