Every time i am getting Unable to save resume file. Too many open files error in transmission application. I got solution in this post.
sudo sh -c "echo fs.file-max=$(dc -e '2 20 ^ p') > /etc/sysctl.d/file-descriptors-max.conf"
sudo service procps restartBut sudo service procps restart output:
stop: Unknown instance:
procps stop/waitingCan anyone please help me out? I am using Ubuntu 12.04 LTS.
1 Answer
My current Ubuntu 12.04 installation shows 98930 as value for file-max
> cat /proc/sys/fs/file-max
98930If you want to raise this value, you have several options.
- Create a new file:
echo "fs.file-max=$(dc -e '2 20 ^ p')" | sudo tee /etc/sysctl.d/60-file-descriptors-max.conf. This command writes the echoed line into the file. If the file exists it is silently overwritten. According to the documentation you should choose the value60-*.conffor user values. After you have done this you should entersudo service procps startand notrestartlike in your example. As you can see with the commandsudo service procps statusthe program is not running. - Directly write into the file in the proc filesystem:
echo $(dc -e '2 20 ^ p') | sudo tee /proc/sys/fs/file-max. After the command the value is set and will be used. You can use the above mentionedcatcommand to get the current value.