<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 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      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成黄在线观看动漫软件 | 免费精品一区二区三区第35| 亚洲国产精品人久久电影| 亚洲成a人在线看天堂无码| 最近免费最新高清中文字幕韩国| 国产亚洲精品免费| 亚洲精品视频免费在线观看| 亚洲人成网站观看在线播放| 麻豆最新国产剧情AV原创免费 | 亚洲免费观看视频| 一个人看的www在线观看免费| japanese色国产在线看免费| 亚洲 日韩经典 中文字幕| 久久亚洲精品无码| 九月婷婷亚洲综合在线| 日本黄网站动漫视频免费| 中文字幕一区二区三区免费视频| 亚洲精品蜜夜内射| 亚洲精品人成电影网| 国产AV无码专区亚洲AV男同| 亚洲AⅤ永久无码精品AA| 中文字幕av无码无卡免费| 亚洲视频在线观看免费| 一本一道dvd在线观看免费视频| 亚洲人成7777| 亚洲黄色高清视频| 久久精品亚洲综合| 不卡一卡二卡三亚洲| 亚洲 小说区 图片区 都市| 成年女人毛片免费播放人| 色播精品免费小视频| 免费h视频在线观看| CAOPORN国产精品免费视频|