jojo's blog--快樂憂傷都與你同在
          為夢想而來,為自由而生。 性情若水,風起水興,風息水止,故時而激蕩,時又清平……
          posts - 11,  comments - 30,  trackbacks - 0

          Synchronizing Large Applications

          When your environment contains large applications to synchronize or available memory is constrained, you can adjust the JVM options to limit memory usage. This adjustment reduces the possibility of receiving out of memory errors. The instance synchronization JVM uses default settings, but you can configure JVM options to change them.

          Set the JVM options using the INSTANCE-SYNC-JVM-OPTIONS property. The command to set the property is:

          asadmin set 
          domain.node-agent.node_agent_name.property.INSTANCE-SYNC-JVM-OPTIONS="JVM_options"

          For example:

          asadmin set 
          domain.node-agent.node0.property.INSTANCE-SYNC-JVM-OPTIONS="-Xmx32m -Xss2m"

          In this example, the node agent is node0 and the JVM options are -Xmx32m -Xss2m.

          For more information, see http://java.sun.com/docs/hotspot/VMOptions.html.


          Another example:

          bin/asadmin set domain.node-agent.agent2.property.INSTANCE-SYNC-JVM-OPTIONS="-Xmx512m"

          Note –

          Restart the node agent after changing the INSTANCE-SYNC-JVM-OPTIONS property, because the node agent is not automatically synchronized when a property is added or changed in its configuration.



          Using the doNotRemoveList Flag

          If your application requires to store and read files in the directories (applications, generated, docroot, config, lib, java-web-start) that are synchronized by the Application Server, use the doNotRemoveList flag. This attribute takes a coma-separated list of files or directories. Your application dependent files are not removed during server startup, even if they do not exist in the central repository managed by DAS. If the same file exists in the central repository, they will be over written during synchronization.

          Use the INSTANCE-SYNC-JVM-OPTIONS property to pass in the doNotRemoveList attribute.

          For example:

          <node-agent name="na1" ...>

          ...

          <property name="INSTANCE-SYNC-JVM-OPTIONS" value="-Dcom.sun.appserv.doNotRemoveList=applications/j2ee-modules/<webapp_context>/logs,generated/mylogdir"/>

          </node–agent>

          posted on 2009-01-22 12:17 Blog of JoJo 閱讀(178) 評論(0)  編輯  收藏 所屬分類: Linux 技術相關

          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(6)

          隨筆檔案

          文章分類

          文章檔案

          新聞分類

          新聞檔案

          相冊

          收藏夾

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 新余市| 塔河县| 土默特右旗| 朝阳区| 平果县| 淮阳县| 阳东县| 汕尾市| 和龙市| 崇信县| 杭锦后旗| 德安县| 奇台县| 郁南县| 抚宁县| 湖南省| 蒲城县| 安远县| 饶平县| 铜梁县| 叶城县| 瑞安市| 衡山县| 开鲁县| 乌拉特中旗| 确山县| 济阳县| 德格县| 黄平县| 西宁市| 隆德县| 沙雅县| 东源县| 东至县| 江源县| 西乌珠穆沁旗| 肃宁县| 靖远县| 稻城县| 庐江县| 女性|