High System CPU usage because of system.currentTimeMillis()
问题 I was debugging high System CPU usage (Not user CPU usage) on of our storm supervisors (Wheezy machine). Here are the observations Output of perf for the relevant process: Events: 10K cpu-clock 16.40% java [kernel.kallsyms] [k] system_call_after_swapgs 13.95% java [kernel.kallsyms] [k] pvclock_clocksource_read 12.76% java [kernel.kallsyms] [k] do_gettimeofday 12.61% java [vdso] [.] 0x7ffe0fea898f 9.02% java perf-17609.map [.] 0x7fcabb8b85dc 7.16% java [kernel.kallsyms] [k] copy_user_enhanced