I have a program that should eventually generate OutOfMemory .
The program code is:
public class VeryLargeObject implements Serializable {
p
I suspect the jvm could not write to the path and fails silently. For example, this has to be a file name in a directory which exists. If you have a directory D:\workspace it will fail. If you have D:\workspace\heap.hprof it may work. Try creating a blank file of that name first to see you can do this.