# Mongo 7.0.15-9 and Release of Open Files

**URL:** <https://forums.percona.com/t/mongo-7-0-15-9-and-release-of-open-files/38984>\
**Category:** Percona Server for MongoDB\
**Created:** [August 6, 2025, 8:09am UTC](https://forums.percona.com/t/mongo-7-0-15-9-and-release-of-open-files/38984 "2025-08-06T08:09:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![afmf](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@afmf](https://forums.percona.com/u/afmf)\
**Post date:** [August 6, 2025, 8:09am UTC](https://forums.percona.com/t/mongo-7-0-15-9-and-release-of-open-files/38984/1 "2025-08-06T08:09:12Z")

</div>

Good morning,

Lately our percona instances are coming down a lot due to the TooManyOpenFiles error:

> {“t”:{“$date”:“2025-07-18T10:00:25.806+02:00”},“s”:“E”, “c”:“NETWORK”, “id”:6328201, “ctx”:“conn670”,“msg”:“Unable to create eventfd object”,“attr”:{“error”:{“code”:264,“codeName”:“ **TooManyFilesOpen** ”,“errmsg”:“error in creating eventfd: Too many open files, errno: 24”}}}

or

> {“t”:{“$date”:“2025-07-19T13:00:23.589+02:00”},“s”:“I”, “c”:“NETWORK”, “id”:23018, “ctx”:“listener”,“msg”:“Error accepting new connection on local endpoint”,“attr”:{“localEndpoint”:“0.0.0.0:20100”,“error”:“Too many open files”}}

We’ve noticed that this is happening mainly with version 7.0.15-9 with Ubuntu 22.04.5 LTS Operating System.

I’ve tried to see if there was some mention of this on the release notes and I don’t see anything related to open files on:

> **[7.0 Changelog - Database Manual - MongoDB Docs](https://www.mongodb.com/docs/manual/release-notes/7.0-changelog/#7.0.22-changelog)**

As anyone else have the same issue?

Regards,

André Ferreira

---

<div class="post-metadata">

**Author:** ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)\
**Post date:** [August 6, 2025, 11:23am UTC](https://forums.percona.com/t/mongo-7-0-15-9-and-release-of-open-files/38984/2 "2025-08-06T11:23:16Z")

</div>

Hi, the OS default max open files is usually low for MongoDB. Have you increased it? typically for prod 64000 is the recommended number.

---

<div class="post-metadata">

**Author:** ![afmf](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@afmf](https://forums.percona.com/u/afmf)\
**Post date:** [August 6, 2025, 12:05pm UTC](https://forums.percona.com/t/mongo-7-0-15-9-and-release-of-open-files/38984/3 "2025-08-06T12:05:33Z")

</div>

Yes, we’ve 204800 (or bigger) on all of our servers.

---

<div class="post-metadata">

**Author:** ![ezee](https://avatars.discourse-cdn.com/v4/letter/e/bbe5ce/32.png) [@ezee](https://forums.percona.com/u/ezee)\
**Post date:** [August 6, 2025, 12:17pm UTC](https://forums.percona.com/t/mongo-7-0-15-9-and-release-of-open-files/38984/4 "2025-08-06T12:17:48Z")

</div>

@afmf you might have to check specific to the mongod user/process:

1. Check number of open files using `lsof -u mongod`
2. Check the current limits for the mongod process
  1. `pidof mongod`
  2. `cat /proc/<pid>/limits`

3. If the limit has reached, either:
  1. Increase ulimits in `/etc/security/limits.conf` and restart mongod
  2. Use connection pooling (if above not feasible)

Hope that helps.

Regards,

Ezhilan Ulaganathan
