[Tutorial] Permanently Setting Your ULIMIT System Value #6198
Locked
TippyFlitsUK
started this conversation in
Tutorials
Replies: 1 comment
-
fs.nr_open is worth considering too for setting the values in use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Linux
ulimit
command output can be rather misleading when it comes to successfully running a Lotus process.If the
Max open files
limit is not set correctly for Lotus you are very likely to run in to numerous random errors like the example shown below of a failed Window Post.Even if you increase the max open files value using the
ulimit -n
command it doesn't actually guarantee that your Lotus process will use the new setting.The following steps help you check the
max open files
setting that Lotus sees and then permanently set a higher value so you never have to worry about it again.CHECK YOUR CURRENT LOTUS MAX OPEN FILES SETTING
ps -ef | grep lotus
. This will produce and output screen that looks something like below (you may have more or less information reported depending on how many Lotus processes you are running).PPID
value of the Lotus daemon. In the above example that is5377
cat /proc/5377/limits
. This will output a screen that looks like this:Max open files
value is1024
. This is much too low to run Lotus and you will need to follow the steps in the next section to permanently set a correct limit. If your value is high then you are all set and do not need to read any further. I personally set a maximum value of1048576
and would recommend using the same.PERMANENTLY SETTING YOUR LOTUS MAX OPEN FILES SETTING TO A NEW VALUE
sudo nano /etc/sysctl.conf
fs.file-max = 1048576
sudo sysctl -p
Beta Was this translation helpful? Give feedback.
All reactions