Generate java dump when OutOfMemory

前端 未结 3 1119
难免孤独
难免孤独 2021-01-05 05:34

I have a program that should eventually generate OutOfMemory . The program code is:

public class VeryLargeObject implements Serializable {
    p         


        
3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-05 05:49

    For starter drop the XX options and any options BEFORE VeryLargeObject, otherwise you pass the parameters to the java program and not the JVM

提交回复
热议问题