Skip to content

macOS — Firebird 5.0.1.1469 — Too many open Files #8345

Answered by devnoname120
devnoname120 asked this question in Q&A
Discussion options

You must be logged in to vote

Solution ✅

How to fix the Firebird server service:

echo 'limit openfiles 65535' | sudo tee -a /etc/csh.login

How to fix isql:

echo 'ulimit -n 65535' | sudo tee -a /etc/profile
echo 'ulimit -n 65535' | sudo tee -a /etc/zprofile

This should be enough. But if it still doesn't work you can attempt to run these in addition:

sudo launchctl limit maxfiles 65535 unlimited
sudo sysctl -w kern.maxfiles=245760
sudo sysctl -w kern.maxfilesperproc=122880

If these 3 last commands fixed it you will need to run them at boot to persist them. You can create two launch daemon files for that:

/Library/LaunchDaemons/limit.maxfiles.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by devnoname120
Comment options

You must be logged in to vote
7 replies
@aafemt
Comment options

@devnoname120
Comment options

@mrotteveel
Comment options

@devnoname120
Comment options

@mrotteveel
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #8343 on December 09, 2024 11:18.