Getting an error while running jmap -heap