How to increase number of open files in digital ocean droplets
up vote
-1
down vote
favorite
I am trying to increase number of open files from 1024 to 32768 in Digital Ocean Droplet in the result of following command result
$ulimit -a
I am able to do in aws ec2 successfully in following way
$sysctl -w fs.file-max=65536
$sysctl -w fs.nr_open=65536
$echo 65536 > /proc/sys/fs/nr_open
$ulimit -n 32768
$sudo vi /etc/sysctl.conf
fs.file-max = 32768
sudo vi /etc/security/limits.conf
- soft nofile 32768
- hard nofile 32768
- soft nproc 65536
- hard nproc 65536
But with same process it's not reflecting in Digital Ocean machines.
Any Idea ll be appreciated.
linux ubuntu droplet
add a comment |
up vote
-1
down vote
favorite
I am trying to increase number of open files from 1024 to 32768 in Digital Ocean Droplet in the result of following command result
$ulimit -a
I am able to do in aws ec2 successfully in following way
$sysctl -w fs.file-max=65536
$sysctl -w fs.nr_open=65536
$echo 65536 > /proc/sys/fs/nr_open
$ulimit -n 32768
$sudo vi /etc/sysctl.conf
fs.file-max = 32768
sudo vi /etc/security/limits.conf
- soft nofile 32768
- hard nofile 32768
- soft nproc 65536
- hard nproc 65536
But with same process it's not reflecting in Digital Ocean machines.
Any Idea ll be appreciated.
linux ubuntu droplet
Have you tried this? Raising the Maximum Number of File Descriptors (Open Files) on Ubuntu 14.04 Trusty. Most probably work on 16.x & 18.x.
– Praveen P
8 hours ago
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I am trying to increase number of open files from 1024 to 32768 in Digital Ocean Droplet in the result of following command result
$ulimit -a
I am able to do in aws ec2 successfully in following way
$sysctl -w fs.file-max=65536
$sysctl -w fs.nr_open=65536
$echo 65536 > /proc/sys/fs/nr_open
$ulimit -n 32768
$sudo vi /etc/sysctl.conf
fs.file-max = 32768
sudo vi /etc/security/limits.conf
- soft nofile 32768
- hard nofile 32768
- soft nproc 65536
- hard nproc 65536
But with same process it's not reflecting in Digital Ocean machines.
Any Idea ll be appreciated.
linux ubuntu droplet
I am trying to increase number of open files from 1024 to 32768 in Digital Ocean Droplet in the result of following command result
$ulimit -a
I am able to do in aws ec2 successfully in following way
$sysctl -w fs.file-max=65536
$sysctl -w fs.nr_open=65536
$echo 65536 > /proc/sys/fs/nr_open
$ulimit -n 32768
$sudo vi /etc/sysctl.conf
fs.file-max = 32768
sudo vi /etc/security/limits.conf
- soft nofile 32768
- hard nofile 32768
- soft nproc 65536
- hard nproc 65536
But with same process it's not reflecting in Digital Ocean machines.
Any Idea ll be appreciated.
linux ubuntu droplet
linux ubuntu droplet
edited yesterday
Sergey Kovalev
4,2241324
4,2241324
asked yesterday
Shree Prakash
43
43
Have you tried this? Raising the Maximum Number of File Descriptors (Open Files) on Ubuntu 14.04 Trusty. Most probably work on 16.x & 18.x.
– Praveen P
8 hours ago
add a comment |
Have you tried this? Raising the Maximum Number of File Descriptors (Open Files) on Ubuntu 14.04 Trusty. Most probably work on 16.x & 18.x.
– Praveen P
8 hours ago
Have you tried this? Raising the Maximum Number of File Descriptors (Open Files) on Ubuntu 14.04 Trusty. Most probably work on 16.x & 18.x.
– Praveen P
8 hours ago
Have you tried this? Raising the Maximum Number of File Descriptors (Open Files) on Ubuntu 14.04 Trusty. Most probably work on 16.x & 18.x.
– Praveen P
8 hours ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53238026%2fhow-to-increase-number-of-open-files-in-digital-ocean-droplets%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Have you tried this? Raising the Maximum Number of File Descriptors (Open Files) on Ubuntu 14.04 Trusty. Most probably work on 16.x & 18.x.
– Praveen P
8 hours ago