Anyone run into `Too many open files` error on Li...
# adobe
m
Anyone run into
Too many open files
error on Linux? I could just increase the limit (currently 1024), but should I be worried about some other underlying issue? This happened in our Development environment. So we should not have that much traffic.
Copy code
"Error","ajp-nio-161.134.126.4-8310-exec-1","02/10/23","08:34:53",11111111,"'' The specific sequence of files included or processed is: xxxxxxxxxxxxxxxxxxxxx/index.cfm'' "
"Error","ajp-nio-161.134.126.4-8310-exec-10","02/10/23","08:35:30",1111111111,"'' The specific sequence of files included or processed is: xxxxxxxxxxxxxxxxxxxxxxxx/index.cfm'' "
"Error","ajp-nio-161.134.126.4-8015-exec-4","02/10/23","08:35:46",222222,"An error occurred when performing a file operation read on file xxxxxxxxxxxxxxxxxxxxxx/password.config.xml.The cause of this exception was: <http://java.io|java.io>.
FileNotFoundException: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx/password.config.xml (Too many open files). The specific sequence of files included or processed is:xxxxxxxxxxxxxxxxxxxx/login.cfm, line: 74 "
coldfusion.runtime.CustomException: An error occurred when performing a file operation read on file xxxxxxxxxxxxxxxxxxxxxxxxxxx/password.config.xml.
e
I would take a look at IO and memory use, and why you have so many files open. Usually, and I have found this that came with a lot of code, someone builds an include, then that include is added EVERYWHERE, so now each session call by a client is hitting multiple files, which becomes a mess on busy sites or overly complicated sites with a ton of code.
j
Just thinking out loud here along the same lines, could there be a file that is included e.g ("fileA.cfm") that has a <cfinclude template = "fileB.cfm"> that then in fileB.cfm there is a line embedded in it somewhere <cfinclude template = "fileA.cfm"> ?
👍 1
🤔 1
p
You're not by any chance pointing the server to the root of your user directory? I recall someone having a similar memory issue when they spun up a server (probably CommandBox/Lucee) pointing to their home folder, which contains 100k+ files and the server totally buckled trying to process them all at launch.
m
@Patrick S No not doing that.
p
Cool, I figured it was unlikely but worth mentioning. Is this happening even with a simple test file that doesn't do anything fancy, or load other resources?
m
Looking at recently changed files - to see if someone (even I ) did something stupid.