Gateway Policy Plugin export fails with JVM Tenured space is exhausted
search cancel

Gateway Policy Plugin export fails with JVM Tenured space is exhausted

book

Article ID: 218470

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

When  exporting  a folder from the server using policy plugin I am getting the following error:

Expiring Daemon because JVM Tenured space is exhausted
> Task :export FAILED

This error is coming after 8-9 minutes running the export .

Whereas when I am exporting the same from local machine it is working fine within 40 seconds.

Environment

Release : 10.0

Component : API GATEWAY

Cause

The default memory in the gradle config is set 64mb which is to low for larger exports

DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

Resolution

Update the gradle.properties and increase the memory size

org.gradle.daemon=true
org.gradle.configureondemand=true
org.gradle.jvmargs=-Xmx4g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8