mkgmap-r1846 problem

I downloaded some area by JOSM and saved to .osm file.
It makes about 9Mb. After I try to convert it to Garmin .img format using command:

java -jar mkgmap.jar myfile.osm

it generates the 63240001.img file with ONLY 163Kb size!!!
Is it normal or not?
Thank you in advance,
Alexey.

That’s not normal. You didn’t see any errors in Mkgmap’s output? Anyway, can you try again with -Xmx1024M added to the java parameters?

java -Xmx1024M -jar mkgmap.jar myfile.osm

That should give Java some memory (1Gb) to play with (the default memory setting is only 64Mb).