wso2 / product-microgateway

Choreo Connect is a cloud-native, open-source, and developer-centric API gateway.
https://wso2.com/choreo/choreo-connect/
Apache License 2.0
293 stars 252 forks source link

Error "file is too large" occurs when building Micogateway project with large number & size of swaggers #3457

Closed chashikajw closed 10 months ago

chashikajw commented 11 months ago

Description

Microgateway throws "file is too large" error when building a microgateway project with large number & size of swaggers

Steps to Reproduce

  1. Execute export _JAVA_OPTIONS="-Xms256m -Xmx2048m" to increase the memory allocated to the JVM

  2. Add large size of swagger files to a micrigateway project and build it.

You will see the file is too large issue when building the project

Version

Microgateway 3.2.0

npamudika commented 10 months ago

Fixed with https://github.com/wso2/product-microgateway/pull/3461 by upgrading the Ballerina version to 1.2.47 which includes the fixes from the Ballerina side.