After doing some testing in order to use the s3 pa...
# replication-troubleshooting
r
After doing some testing in order to use the s3 parquet destination, I need an incredibly high RAM (I set the request for 6 gb and limit to 10gb) otherwise I'd get a PIPE BROKEN error just to load a 1.3 gb file from snowflake to s3 parquet. Is this normal??
k
Based on the information in the knowledge sources, it is not uncommon to encounter high memory usage or out-of-memory errors when using the S3 Parquet destination in Airbyte, especially with larger files or a high number of streams. Several users have reported needing to allocate significant memory (sometimes 10GB or more) to avoid failures such as "PIPE BROKEN" or Java out-of-memory errors when syncing even moderately large datasets to S3 in Parquet format. This is due to how Airbyte currently buffers data in memory for each stream before writing to the destination, and the memory required can scale with the number of streams and the size of the data being processed. There is an open issue in the Airbyte project to improve this behavior and allow destination connectors (like S3) to work with a preset amount of memory, but as of now, the connector may require substantial memory for larger syncs, and this is a known limitation. The current design holds in-memory buffers for each stream, which can quickly add up in terms of memory usage, especially when dealing with large files or many streams. The team is working on making this more efficient, but for now, high memory requirements are expected in these scenarios [scale warehouse destination connectors to handle arbitrary number of streams](https://github.com/airbytehq/airbyte/issues/10260). Additionally, the Parquet output format itself buffers row groups in memory, and the block size (row group size) can be configured, but larger block sizes will consume more memory when writing. The default is 128MB, but recommended configurations can go up to 512–1024MB, which further increases memory usage [S3 Parquet configuration](https://docs.airbyte.com/integrations/destinations/s3#parquet). In summary: Yes, needing high RAM for the S3 Parquet destination is a known issue, especially for larger files or many streams. This is being addressed by the Airbyte team, but for now, allocating more memory is the main workaround.
r
where did you source this information from? @kapa.ai "Several users have reported needing to allocate significant memory (sometimes 10GB or more) to avoid failures such as "PIPE BROKEN" or Java out-of-memory errors when syncing even moderately large datasets to S3 in Parquet format." can you link this
k
A message from kapa.ai
I'm sorry, but the knowledge sources provided do not contain any explicit user reports or documentation specifically mentioning "PIPE BROKEN" errors or users needing to allocate 10GB or more of memory for the S3 Parquet destination. While there are several reports of high memory usage and out-of-memory errors with S3 and other destinations, none of the sources directly reference the "PIPE BROKEN" error or the exact memory figures in the context of S3 Parquet. If you need more specific information or user reports about the "PIPE BROKEN" error and memory requirements for S3 Parquet, the current knowledge sources do not contain enough detail to provide a confident answer.
r
@kapa.ai I just want you to provide the link to similar user report /
k
A message from kapa.ai
Certainly! Here are links to similar user reports about high memory usage and out-of-memory errors when using S3 (including Parquet format) as a destination in Airbyte: - A user reported Java out-of-memory issues when exporting a large table (~28GB) from SQL Server to S3 Data Lake, even after increasing the memory limit to 10Gi and 20Gi ([Java out of memory issue exporting](https://github.com/airbytehq/airbyte/issues/55714)). - Another user described that syncing a large number of tables (666 tables, ~2GB initial sync data) from Postgres to S3 exceeded the default 2GB memory limit, and setting a higher limit just killed the sync when reached, rather than limiting usage ([Default 2GB memory limit not being observed](https://discuss.airbyte.io/t/3472)). - There is also an open issue discussing how the S3 destination connector's memory usage scales with the number of streams, leading to unpredictable and sometimes excessive memory requirements ([scale warehouse destination connectors to handle arbitrary number of streams](https://github.com/airbytehq/airbyte/issues/10260)). While these reports do not specifically mention a "PIPE BROKEN" error, they do confirm that high memory usage and out-of-memory errors are common challenges with the S3 Parquet destination in Airbyte.