<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 :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
      618 隨筆 :: 87 文章 :: 225 評(píng)論 :: 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 閱讀(495) 評(píng)論(0)  編輯  收藏 所屬分類(lèi): Maven
    主站蜘蛛池模板: 日日摸日日碰夜夜爽亚洲| 国产亚洲av人片在线观看| 亚洲中字慕日产2020| 国产乱子精品免费视观看片| 亚洲国产精品久久久久婷婷老年| 中国一级特黄的片子免费 | 亚洲AV区无码字幕中文色| 一区二区三区在线免费| 亚洲一区二区三区免费| 中文在线观看免费网站| 国产aⅴ无码专区亚洲av| 久久精品视频免费播放| 亚洲第一香蕉视频| 国产AV无码专区亚洲AVJULIA| 国产自国产自愉自愉免费24区 | 亚洲国产一级在线观看 | 亚洲不卡在线观看| 午夜一级免费视频| 成人一级免费视频| 久久亚洲国产欧洲精品一| 久久国产色AV免费看| 亚洲最大成人网色香蕉| 国产免费资源高清小视频在线观看| 亚洲AV无码AV吞精久久| 在线日韩日本国产亚洲| 在线观看免费中文视频| 亚洲人成人伊人成综合网无码| 亚洲福利中文字幕在线网址| 国产一级a毛一级a看免费人娇| 亚洲第一页在线视频| 国产自产拍精品视频免费看| 牛牛在线精品观看免费正| 亚洲AV乱码久久精品蜜桃| 久久这里只有精品国产免费10| 猫咪免费人成网站在线观看入口| 伊人久久大香线蕉亚洲| 免费AA片少妇人AA片直播| 高清免费久久午夜精品| 亚洲毛片免费观看| 亚洲精品尤物yw在线影院| 2021免费日韩视频网|