Linux File Handling Limitations

  • 7019668
  • 08-Jul-2008
  • 07-Aug-2017


GWAVA 4 (all builds) on Linux




By default, GWAVA uses 16 threads to scan messages. If for any reason you decide to change this value there is a Linux limitation you should know about.  By default Linux sets a limit on the number of files any process can handle at any given time. It is possible for GWAVA to run into this limit on busy systems, if some changes are not made to the Linux system.

If mail halts and all of GWAVA is still running you may have run into this issue.  To verify that this actually is the problem you are looking at: 

1)  Find the pid of asengine (ps ax | grep asengine).

  Write down the pid.

  Then type lsof -p <asengine_pid>.

  The fourth column over is for FD (file descriptors) and if it shows any of following, then you have run into the limit:


5)  Use these steps to correct it (for advanced users only):

a)  Set kernel parameter fs.file-max to 65535 by editing the file /etc/sysctl.conf and adding: 

fs.file-max = 65535

b)  Set the hard limit for max number of open files to 65535 by editing the file /etc/security/limits.conf and adding:

* soft nofile 65535
* hard nofile 65535

c)  Edit the file /etc/pam.d/login and add:

session required /lib/security/
session required /lib/security/

d)  Set the ulimit for all shells by editing the file:  /etc/profile.local and adding:

ulimit -n 65535

e)  Load the new parameters by typing the following at a terminal prompt:

‘sysctl -p /etc/sysctl.conf’

f)  Restart GWAVA by typing the following at a terminal prompt: 

'rcgwavaman restart'

If you are still experiencing this pausing after making the changes, restart the server.

See also this related article:

Adjusting your GWAVA scan threads (ADVANCED) -

Additional Information

This article was originally published in the GWAVA knowledgebase as article ID 328.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.