引用    http://www.avricot.com/blog/?post/2010/05/03/Get-started-with-java-JVM-memory-(heap%2C-stack%2C-xss-xms-xmx-xmn...)

  -Xmx : max heap size (ex: -Xmx4g)

  -Xms : min heap size. (ex: -Xms2g)

  -Xmn : the size of the heap for the young generation
      Young generation represents all the objects which have a short life of time. Young generation objects are in a specific location into the heap, where the garbage collector will pass often.

      All new objects are created into the young generation region (called "eden").

      When an object survive is still "alive" after more than 2-3 gc cleaning, then it will be swap has an "old generation" : they are "survivor" .
      Good size is 33%

优化之前

  JAVA_OPTS="-Xmn3g -Xms4g -Xmx4g -XX:PermSize=512m -XX:MaxPermSize=512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"

优化之后

  JAVA_OPTS="             -Xms4g -Xmx4g -XX:PermSize=512m -XX:MaxPermSize=512m -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:+ParallelRefProcEnabled -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"

最新文章

  1. Nodejs reactjs服务端渲染优化SEO
  2. Rest接口中正则表达式
  3. js 标签云效果
  4. scala函数组合器
  5. 上传图片(基于zepto.js)
  6. ClassLoader(摘录)
  7. CCA概述和安装
  8. mysql-test库要命的地方
  9. LFS:kernel panic VFS: Unable to mount root fs
  10. Asp.net MVC集成Google Calendar API(附Demo源码)
  11. python网络爬虫之beautfiulSoup
  12. linux --> 计算机是如何启动的?
  13. Flask-论坛开发-5-memcached缓存系统
  14. UVAlive-7040 color(组合数学,二项式反演)
  15. 各种遍历输出(经典版)----java基础总结
  16. Python-sys模块,异常
  17. ARP命令详解
  18. 编程开发之--java多线程学习总结(6)
  19. PHP——0128练习相关2——js点击button按钮跳转到另一个新页面
  20. mac appstore应用下载失败,不能更新等等问题,都可以解决

热门文章

  1. 【POJ 2752 Seek the Name, Seek the Fame】
  2. WebStrom Sass 编译配置 windows
  3. poj 2723 Get Luffy Out-2-sat问题
  4. 转:ListView中getView的工作原理
  5. CANO入门(三)
  6. Bzoj3093 [Fdu校赛2012] A Famous Game
  7. oracle odbc 驱动安装(不安装oracle客户端)
  8. [9018_1963][IOI_1998]Picture
  9. Grep查看日志的方法【转】
  10. 中国大陆无法访问Steve Purcell的emacs配置解决办法