WSO2 AM-Analytics worker error java.lang.OutOfMemoryError: 超



我使用的是APM-Analytic 2.6,我将数据库(Oracle 12c(配置为以下文档(https://docs.wso2.com/display/AM260/Configuring+APIM+Analytics#standardsetup(。 我的工作线程运行了几天,然后发生了错误:


java.lang.OutOfMemoryError: GC overhead limit exceeded
Dumping heap to /d01/WSO2/wso2am-2.6.0/wso2am-analytics-2.6.0/wso2/worker/logs/heap-dump.hprof ...
Unable to create /d01/WSO2/wso2am-2.6.0/wso2am-analytics-2.6.0/wso2/worker/logs/heap-dump.hprof: File exists
Exception in thread "MVStore background writer nio:/d01/WSO2/wso2am-2.6.0/wso2am-analytics-2.6.0/wso2/worker/database/WSO2_CARBON_DB.mv.db" java.lang.OutOfMemoryError: GC overhead limit exceeded
at org.h2.mvstore.Page.create(Page.java:122)
at org.h2.mvstore.Page.createEmpty(Page.java:101)
at org.h2.mvstore.MVMap.<init>(MVMap.java:75)
at org.h2.mvstore.MVMap.openReadOnly(MVMap.java:1156)
at org.h2.mvstore.MVStore.getMetaMap(MVStore.java:527)
at org.h2.mvstore.MVStore.openMapVersion(MVStore.java:409)
at org.h2.mvstore.MVMap.openVersion(MVMap.java:1133)
at org.h2.mvstore.MVMap.rewrite(MVMap.java:780)
at org.h2.mvstore.MVStore.compactRewrite(MVStore.java:1918)
at org.h2.mvstore.MVStore.compact(MVStore.java:1810)
at org.h2.mvstore.MVStore.writeInBackground(MVStore.java:2512)
at org.h2.mvstore.MVStore$BackgroundWriterThread.run(MVStore.java:2720)
[2019-11-12 22:16:27,292] ERROR {org.wso2.siddhi.core.util.Scheduler} - java.lang.OutOfMemoryError: GC overhead limit exceeded
[2019-11-12 22:16:34,477] ERROR {org.wso2.siddhi.core.util.Scheduler} - java.lang.OutOfMemoryError: GC overhead limit exceeded
Exception in thread "MVStore background writer nio:/d01/WSO2/wso2am-2.6.0/wso2am-analytics-2.6.0/wso2/dashboard/database/MESSAGE_TRACING_DB.mv.db" java.lang.OutOfMemoryError: GC overhead limit exceeded
[2019-11-12 22:17:12,793]  INFO {org.wso2.extension.siddhi.io.mgwfile.task.MGWFileCleanUpTask} - Uploaded API Usage data in the db will be cleaned up to : 2019-11-07 22:16:25.014
[2019-11-12 22:17:24,591] ERROR {org.wso2.siddhi.core.util.Scheduler} - java.lang.OutOfMemoryError: GC overhead limit exceeded
[2019-11-12 22:17:52,813] ERROR {org.wso2.siddhi.core.util.Scheduler} - java.lang.OutOfMemoryError: GC overhead limit exceeded
[2019-11-12 22:17:45,545] ERROR {org.wso2.carbon.deployment.engine.internal.SchedulerTask} - Error occurred while scanning deployment repository java.lang.OutOfMemoryError: GC overhead limit exceeded

如果您对我的情况有任何其他解决方案,请告诉我。

我怀疑这是因为您也使用 H2 作为分析的数据库。 但是,由于与分析相关的数据库中会保留大量数据,因此始终建议使用以下方法之一(否则,由于 H2 数据库处理数据负载的不一致,分析实例可能会失败(;

  • Postgres 9.5 及更高版本
  • MySQL 5.6
  • MySQL 5.7
  • 甲骨文 12c
  • MS SQL Server 2012
  • DB2

您可以按照文档 [1](检查标准设置选项卡,特别是数据库配置步骤(并进行正确的部署。

[1] - https://docs.wso2.com/display/AM260/Configuring+APIM+Analytics#ConfiguringAPIMAnalytics-Step4-Configurethedatabases

干杯!

最新更新