[JBoss] 設定memory assignment

最近投產的JBoss 效能不穩, 檢查system log 後發現它的memory 不夠, 但電腦已經夠多的RAM, 檢查後原來JBoss 的memory management 設定須要修改.

在{JBOSS_HOME}\bin\standalone.conf 中, 修改以下內容.

REM set "JAVA_OPTS=-Xms1G -Xmx1G -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m"
set "JAVA_OPTS=-Xms4G -Xmx4G -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=4G"

修改後 restart JBoss 後便可.

About C.H. Ling 260 Articles
a .net / Java developer from Hong Kong and currently located in United Kingdom. Thanks for Google because it solve many technical problems so I build this blog as return. Besides coding and trying advance technology, hiking and traveling is other favorite to me, so I will write down something what I see and what I feel during it. Happy reading!!!

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.