marklogic - 运行 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,错误仍然会发生。
解决方案
推荐阅读
- javascript - 用分号分割数组中的每个字符串
- flutter - 让用户改变比例的最佳方式是什么?
- arrays - 如何获取 Haskell UArray 的所有元素
- flutter - 如何混淆 Flutter 应用程序 ios?
- laravel - 社交登录后如何将用户重定向回预期路线?
- java - 滚动上的 Recycleview 在最后一个项目位置抛出 java.lang.IndexOutOfBoundsException
- html - 所有容器的高度相同 - Bootstrap 4
- bluetooth-lowenergy - 接收 BLE 信息并通过 TI CC2640R2F 上的 UART 传递信息
- yocto - 如何在 bitbake 的图像中启用 PACKAGECONFIG 功能?
- python - 为什么 str 语句不能在 if....else 中使用