以下是我們用於AEM應用程序的Java配置。AEM中的數據存儲垃圾收集和java垃圾收集之間的區別
java -server -Xms4096m -Xmx4096m -XXermSize=2048m -XX:MaxPermSize=2048m -Djava.awt.headless=true -Djava.io.tmpdir=<path>/tmp -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=<path>/crx-quickstart/logs/heap_dump.hprof -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintTenuringDistribution -Xloggc:<path>/crx-quickstart/logs/gc.log -Dcom.sun.management.config.file=<path>/management/management.properties -Dsling.run.modes=author,crx3,crx3tar -Dorg.apache.felix.http.host=<ip-address> -jar crx-quickstart/app/cq-quickstart-6.1.0-standalone-quickstart.jar start -c crx-quickstart -i launchpad -nofork -p 40601 -a <ip-address> -Dsling.properties=conf/sling.properties
每當我們嘗試構建大壩資產備份包時,AEM服務器都會掛起,頁面暫時不可用。過了一段時間,服務器自行出現。我們注意到GC日誌的大小突然激增。不確定它們是否相關。數據存儲垃圾收集和Java垃圾收集有什麼區別?