# Max File Descriptor Count:

**URL:** <https://community.wowza.com/t/max-file-descriptor-count/34232>\
**Category:** Wowza Streaming Engine\
**Created:** [June 2, 2010, 7:09pm UTC](https://community.wowza.com/t/max-file-descriptor-count/34232 "2010-06-02T19:09:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Jeannopoulos](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Alex\_Jeannopoulos](https://community.wowza.com/u/Alex_Jeannopoulos)\
**Post date:** [June 2, 2010, 7:09pm UTC](https://community.wowza.com/t/max-file-descriptor-count/34232/1 "2010-06-02T19:09:36Z")

</div>

I run wowza as a user wowza, and I am using daemontools for managing the process.

[http://cr.yp.to/daemontools.html](http://cr.yp.to/daemontools.html)

This works great. I noticed that max file descriptor is low.

INFO server comment - Max File Descriptor Count: 1024

Now I have setup the limits.conf and increased it to 65535 with the following.

/etc/security/limits.conf

wowza - nofile 65535

Am I missing something?

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [June 3, 2010, 3:15am UTC](https://community.wowza.com/t/max-file-descriptor-count/34232/2 "2010-06-03T03:15:56Z")

</div>

Edit [install-dir]/bin/setenv.sh and uncomment the ulimit line in the script.

Charlie

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [June 3, 2010, 2:15pm UTC](https://community.wowza.com/t/max-file-descriptor-count/34232/3 "2010-06-03T14:15:17Z")

</div>

This is the tuning guide:

[https://www.wowza.com/docs/how-to-do-performance-tuning](https://www.wowza.com/docs/how-to-do-performance-tuning)

Richard

---

<div class="post-metadata">

**Author:** ![Alex\_Jeannopoulos](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Alex\_Jeannopoulos](https://community.wowza.com/u/Alex_Jeannopoulos)\
**Post date:** [June 3, 2010, 6:03am UTC](https://community.wowza.com/t/max-file-descriptor-count/34232/4 "2010-06-03T06:03:50Z")

</div>

This worked. I assumed that if I increased the number in /etc/security/limits.conf that it would automatically be set for the user running the process. Is there a way to increase it automatically without the ulimit (just curious). I will use the ulimit in the script.

Also I see the value in the script is set to 20000, what is the optimal value for this. Is there a doc on performance tuning on linux. Thanks
