D.6 Linux Open Files Error

If you run the User Application on Linux, you might encounter a Too Many Open Files Error. Linux allows 1024 open files for each process, but the User Application often requires more. NetIQ suggests increasing the number of open files to 4096 to avoid the Too Many Open Files error.

Use the ulimit command to increase the number of open files. There are some restrictions on ulimit for non-root users. Here is an example of how you can use the ulimit command to increase the number of open files to 4096 for a non-root user:

  1. Log in as root.

  2. Edit the file /etc/security/limits.conf. Add an entry for the user named novlua and allow nofile up to 4096:

    novlua   hard    nofile    4096
  3. Log in as user novlua and pass 4096 to the ulimit -n command. You can issue the command again with no argument to see the current value:

    novlua@myhost:~> ulimit -n 4096
    novlua@myhost:~> ulimit -n

You might want to specify ulimit in the user environment or the start-tomcat script so that the new value is always used.