The computer configuration is not high enough, and the JVM is configured on the original basis. The G1 garbage collection in jdk1.7 is occasionally seen, so it is replaced with the G1 garbage collector, which is faster than the previous configuration, in addition, eclipse does not occasionally get stuck when you do not manually click recycle (only for eclipse optimization, compilation for project reasonsCodeUse 1.6.0 _ 30 ). The original configuration parameters are as follows:
-Xms512m-Xmx512m-XX: maxpermsize = 256m-xx: permsize = 256m-server-xx: + useparnewgc
According to the parameters of the G1 collector, the configuration is as follows:
-Xms512m-Xmx512m-XX: maxpermsize = 256m-xx: permsize = 256m-xx: + bytes-XX: + UseG1GC-XX: maxgcpausemillis = 50-xx: gcpauseintervalmillis = 2000-xx: + buffers = 512m-xx: + printgcdetails
I just learned about it on the Internet, but I don't know the specific implementation. If you have any questionsAxe Zheng.
References: http://developer.51cto.com/art/200907/138943.htm
Http://www.infoq.com/cn/articles/jdk7-garbage-first-collector