<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Sealyu

    --- 博客已遷移至: http://www.sealyu.com/blog

      BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
      618 隨筆 :: 87 文章 :: 225 評論 :: 0 Trackbacks

    Maybe you know the situation: you are developing a web application using the Maven build system along with an application server like Tomcat or Jetty and a corresponding plugin (e.g. the all famous jetty-maven-plugin).

    One of the coolest features of these containers is the hot-deployment.

    However, every second time a hot deployment is executed, it crashes due to a PermGen space Exception or a similar OutOfMemoryException.

    The cause for this behaviour is a memory leak with the classloaded of these containers. If you are interested in the details, you may read this article on the Classloader Memory Leaks.

    Actually, you can’t fix this bug. But there is a way to prevent it from beeing so painful. And it’s pretty easy: simply assign more memory to your JVM!

    In order to do so, create a new environment variable named MAVEN_OPTS. Maybe you already defined this variable. What you have to do now is to adjust the MaxPermSize (and the other parameters, too) to a proper value according to your machine’s memory.
    For instance, set the MAVEN_OPTS like this:

    -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m

    Having 2 GB of RAM, these values are a good start.

    Now you should be rid of the nasty PermGen space exceptions.



    Related:
    Catching Exceptions with an UncaughtExceptionHandler in Java
    Problems with Assertions in JUnit tests using Eclipse
    .NET Color Constants
    posted on 2010-01-22 11:43 seal 閱讀(487) 評論(0)  編輯  收藏 所屬分類: Maven
    主站蜘蛛池模板: 亚洲国产高清视频在线观看| 免费精品人在线二线三线区别| 亚洲精品中文字幕| 亚洲男人天堂av| 自拍偷自拍亚洲精品被多人伦好爽| 成人性生活免费视频| 中文字幕在线免费观看| 国产在线国偷精品免费看| 亚洲爆乳大丰满无码专区| 亚洲AV无码国产精品色| 亚洲另类激情综合偷自拍| 一本久久a久久精品亚洲| 亚洲福利精品一区二区三区| 大学生a级毛片免费观看| 国产美女在线精品免费观看| 亚洲毛片在线免费观看| 91福利视频免费| 无码av免费网站| 91在线老王精品免费播放| 久久午夜无码免费| 日本免费中文字幕| 久久中文字幕免费视频| 日韩免费电影网址| 男女作爱在线播放免费网站| 日本黄色动图免费在线观看| 爱丫爱丫影院在线观看免费| a毛片在线免费观看| 99在线视频免费观看| 精品视频一区二区三区免费| 日韩精品免费在线视频| 99在线在线视频免费视频观看 | 亚洲成人免费在线观看| 久章草在线精品视频免费观看| 国产免费一区二区三区不卡| 成人爽a毛片免费| 免费国产叼嘿视频大全网站| 91精品导航在线网址免费| 91手机看片国产永久免费| 成人免费毛片观看| 国产成人在线观看免费网站| 亚洲精品A在线观看|