You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "kyle-ip (via GitHub)" <gi...@apache.org> on 2024/03/23 07:45:09 UTC
Re: [I] Memory leak still showed on parquet.write_table and Table.from_pandas [arrow]
kyle-ip commented on issue #40738:
URL: https://github.com/apache/arrow/issues/40738#issuecomment-2016399240
Hi @guozhans .
Have you tried to release the memory pool: https://arrow.apache.org/docs/python/generated/pyarrow.MemoryPool.html#pyarrow.MemoryPool.release_unused
I encountered a similar issue:
Every time I used **pyarrow.parquet.ParquetDataset** to load parquet from S3, the memory usage continued to increase and cannot be released, so I used **release_unused** after the I/O operations:
```python
import pyarrow as pa
pool = pa.default_memory_pool()
# ...
pool.release_unused()
```
However, the occupied memory cannot be released immediately until I executed next time. On the other hand, it’s not sure how much memory can be released.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org