infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
open file limits on RedHat
mike-ellert
I'm running CL5.8Rev3 on Redhat.
Lawson support has confirmed there is an issue leaving file descriptors open when the outbound save files are opened and the existing files are zero length. It only seems to happen on the idx files as of Rev3 but doing save cycles and subsequently closing and opening a thread will cause the number of used files by the engine process to grow.
When it hits 1024 open files (confirmed using lsof), the process will start to throw errors about "too many files open" and will panic soon after. I verified this by repeatedly recreating the conditions that cause file handles to be left open and actively monitoring the process at the same time.
Our soft and hard open file limits for the hci user and system are set to 20,000.
My question is, why does the engine process seem to 'ignore' the user limits for open files?
Any thoughts would be appreciated.
Find more posts tagged with
Clovertech
Comments
System
Originally posted by Ron Ridley
Besides checking your ulimit for those users:
ulimit -n
Try also checking your sysctl settings:
sysctl fs.nr_open
sysctl fs.file-max
Do any of the above values seem to be at that 1024 file limit?
mike-ellert
Thanks for the response Ron
file-max is set to 100,000
ulimit -n reports 20,000 for the hci user.
I can't find any entry for nr_open but some quick research says that it defaults to 1024*1024.
After our last failure, we booted the machine - all adjustments to file-max and the user hard and soft limits were made since the previous boot. I will push the process this morning to get to the 1024 limit and see if it is still a problem and report later.
mike-ellert
No luck. The process still cannot exceed 1024 open files.
System
Originally posted by Ron Archambault
I
mike-ellert
We have them set in there at 20,000
System
Originally posted by Ron Ridley
To see if it is a kernel mis-reporting values or if it is an issue with CL reading the ulimit changes, can you recreate the opening of more than 1024 files with another application?
Here's an example using python:
import os
f = {}
#create a lot of files and open them
for x in range(1050):
f[x] = open('%s' % x, 'w')
# Close the open files
for x in range(1050):
f[x].close()
# Remove created files
for x in iter(f):
os.unlink(x)
mike-ellert
Genious Ron - just freakin' genious. Nice idea!
I checked using your python script - I modified it to wait for input so I could double dog check the files were simultaneously open. Your script was able to open 1065 files at once.
I'll forward the findings on to Lawson support.
Thank you.