Are you trying to import 8.1.5 to 8.1.7 on such case, I would suggest that you use 8.1.5's imp. One other thing and to increase your swap space and see whether it goes through.

Sam