<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
    主站蜘蛛池模板: 日韩精品内射视频免费观看 | 91视频免费观看| 亚洲免费在线观看视频| 亚洲精品无码永久在线观看 | 成人妇女免费播放久久久| 亚洲av无码专区在线观看亚| 亚洲a一级免费视频| 免费观看四虎精品国产永久| 色影音免费色资源| 精品亚洲永久免费精品| 国产AV无码专区亚洲AV琪琪| 亚洲一区二区久久| 亚洲av无码成h人动漫无遮挡| 亚洲午夜久久久影院| 亚洲AV之男人的天堂| 国产免费131美女视频| 亚洲午夜久久久久久久久久| 亚洲欧洲精品视频在线观看| 老司机亚洲精品影院| 亚洲男人第一av网站| 久久精品亚洲中文字幕无码麻豆| 亚洲综合久久精品无码色欲| 亚洲一区中文字幕在线观看| 男人j进女人p免费视频| 亚洲国产成人AV网站| 亚洲av综合日韩| 国产成人久久AV免费| 99热精品在线免费观看| 在线日韩av永久免费观看| 最近高清国语中文在线观看免费| 国产人在线成免费视频| www.黄色免费网站| 精品久久久久久久免费加勒比| 色吊丝永久在线观看最新免费| 亚洲区小说区图片区QVOD| 亚洲日韩精品无码AV海量| 亚洲夂夂婷婷色拍WW47| 国产成人亚洲精品播放器下载| 久9热免费精品视频在线观看| 国产福利视精品永久免费| 亚洲毛片网址在线观看中文字幕|