JMAP doesn't recognize the option file=/tmp/heap.bin so it thinks it is the PID.
jmap -heap:format=b PID
you should find the output file heap.bin in your working directory.
Hope it helps
-heap option is for live heap statistics.
use -dump option instead. For example:
jmap -dump:format=b,file=/tmp/heap.jprof 21369