JDK 1.6.0_29 Mac OS X profiling issue

Today I tried to run hadoop with hprof to profiling hadoop map tasks. Unfortunately the task failed with below output:

MacBookPro:hadoop-guide gsun$ hadoop -agentlib:hprof=cpu=samples,heap=sites,depth=6,force=n,thread=y,verbose=n,file=prof.output jar hadoop-guide.jar MaxTemperatureDriverWithProfile input/ncdc/sample.txt 

>>>>

HPROF ERROR: Can't open /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/jvm.hprof.txt [hprof_io.c:741]

HPROF TERMINATED PROCESS

I have to figure out why hprof don't work on Mac OS. Note kept here!!

相关推荐