首页 > 解决方案 > 运行 gradle mlExportBatchesToDirectory 时出现“超出 GC 开销限制”错误

问题描述

运行 gradle mlExportBatchesToDirectory 时收到“超出 GC 开销限制”错误。

gradle 命令是:

gradle mlExportBatchesToDirectory -PexportPath=/qa2/tgtfiles/Customer -PbatchSize=25000 -Ptransform=CustomerTransform,querydate1,"$querydate1" -PfilenamePrefix="Customer_Daily_$(date "+%Y%m%d")_" -PfilenameExtension=.json -PwhereUrisQuery='cts.andQuery([cts.collectionQuery("latest"),cts.orQuery([cts.andQuery([cts.collectionQuery("customer"),cts.jsonPropertyScopeQuery("PolicyDownloadInfo", cts.trueQuery())]),cts.collectionQuery("customerpreference"),cts.collectionQuery("registrationcontacts")]),cts.notQuery(cts.jsonPropertyValueQuery("PartyId", "defaultprimary")),cts.notQuery(cts.jsonPropertyValueQuery("PartyId", "defaultadditional"))])' -PenvironmentName=qa

即使我将批量大小减少到 50,错误仍然会发生。

标签: marklogicml-gradle

解决方案


推荐阅读