步骤一: 点击IDEA右上角的 Edit Configurations
设置参数: -XX:+PrintGCDetails -Xmx128M -Xms128M
步骤二:在VM options中设置参数 ok皆大欢喜