# Export (csv): Too many files open

**URL:** <https://forum.mattermost.com/t/export-csv-too-many-files-open/14033>\
**Category:** Troubleshooting\
**Created:** [September 11, 2022, 7:56pm UTC](https://forum.mattermost.com/t/export-csv-too-many-files-open/14033 "2022-09-11T19:56:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)\
**Post date:** [September 12, 2022, 3:49am UTC](https://forum.mattermost.com/t/export-csv-too-many-files-open/14033/2 "2022-09-12T03:49:32Z")

</div>

Hi crypt0jan,

what Mattermost server version are you running?  
I assume the process is running for some time, so while it is running, could you verify that the increased open files limit has been applied to this process? When it’s running, grep its PID and run `cat /proc/<PID>/limits` as well as `lsof -p <PID> | wc -l` to compare the values.  
Maybe this one-liner helps with that:

```auto
echo "PID : Files-used/Soft-limit/Hard-Limit"; for pid in $(pidof mattermost); do printf "%-7d: %-10d/%-10d/%-10d\n" $pid $(lsof -p $pid | wc -l) $(awk "-F " '/^Max open files/ { print $4" "$5 }' /proc/$pid/limits); done

```

---

_[View the full topic](https://forum.mattermost.com/t/export-csv-too-many-files-open/14033)._
