Questions tagged [ulimit]

"ulimit" is a shell command for setting limits on what resources a process can use

Filter by
Sorted by
Tagged with
1 vote
0 answers
41 views

SSH "... request failed on channel 0" - remote system limits exceeded?

I am currently unable to connect to my remote workstation (I unfortunately do not have admin privileges) via SSH, instead receiving the error message shell request failed on channel 0 when trying to ...
  • 21
0 votes
0 answers
17 views

What the open file limit `ulimit -[H]n` does apply to?

A set of systems is configured to 1024 limit. I'm running a set of programs (written by me) for which lsof -p <pid>|wc -l returns values no greater than 200-300 at any time. But sometimes they ...
  • 111
7 votes
3 answers
2k views

Is the kilobyte used by time and ulimit commands either 1000 (SI) or 1024 (old school) bytes?

From man time: M Maximum resident set size of the process during its lifetime, in Kilobytes. From ulimit -a: max memory size (kbytes, -m) unlimited But a "kilobyte" may mean ...
  • 399
1 vote
0 answers
204 views

Understanding too many open files and current limits

A Java application will sometimes have issues after the logs point to too many open files. Okay, let's look at some limits... cat /proc/sys/fs/file-max -> 200000 ulimit -n -> 1024 ...
0 votes
0 answers
209 views

How does visual studio code exceed max open files limit

On my Ubuntu 20.04, the maximum number of file descriptors that a process can have (ulimit -n) is set to 1024. I'm working on an app which sometimes crashes because it exceeds that number. Checking ...
0 votes
1 answer
37 views

What is "the core file"?

Reading about limits.conf : https://raazkumar.com/tutorials/linux/linux-security-limits-conf/ core – limits the core file size (KB) "The core file size". What is "The core file"? ...
  • 315
0 votes
1 answer
1k views

Can't change file descriptor max limit in Ubuntu 20.04 (LTS) x64

Trying to increase system wide file descriptor count on Ubuntu 20.04 (LTS) x64, currently running as a droplet in DigitalOcean. Following the process outlined here; quick summary below: Use ulimit -n....
  • 101
0 votes
1 answer
827 views

ulimit to limit process memory usage

I tried ulimit 1280000 s1-agent but the process still uses more than that. What did I do wrong? Is there a way to limit it in limits.conf? What line should I put in limits.conf do do so?
  • 1
0 votes
1 answer
2k views

ulimit -n command shows no change inspite of modifying the /etc/security/limits.conf file

While compiling peridigm, I am facing the following error. /usr/bin/ld: cannot find /usr/local/bin/trilinos-12.12.1/lib/libgaleri-xpetra.a: Too many open files /usr/bin/ld: cannot find /usr/local/bin/...
  • 101
2 votes
0 answers
612 views

How To Limit User RAM and CPU

So this is my first time posting on Ubuntu forums, so please excuse me if this question is repetitive, or just plain stupid. A bit of background: I am a 14yr old developer, who has an ubuntu 20.04 ...
1 vote
0 answers
343 views

file descriptor is too large for select()

I'm locally running an R script which involves opening a very large number of files, and also generating a lot of temporary files and storing them in /tmp/Rtmpxxxx. Initially it crashed because my ...
0 votes
1 answer
785 views

The size of the file set as a limit in limits.conf

I edited the /etc/security/limits.conf file to limit the size of files that a user "student" can create: @student hard fsize 3001 @student soft fsize ...
  • 353
2 votes
1 answer
2k views

Ubuntu 18.04: Maximum number of clients reached - related to dbus-daemon

From time to time I get this message, I cant start application when this happens. I've tried those links: Can't start applications due to “Maximum number of clients reached” error and How can I ...
  • 121
0 votes
0 answers
529 views

What is an allowed ulimit value based on?

If I run cat /proc/sys/fs/file-max it returns a value over 3,000,000 - but I can't set ulimit to more than 1,000,000. If I try I get -bash: ulimit: open files: cannot modify limit: Operation not ...
11 votes
2 answers
28k views

Too many open files

when i open Lutris and then LOL client , this happening. And game never work good. I tried many things but never can change the open file limit. How can fix this ? Waiting on children Waiting on ...
2 votes
0 answers
253 views

Difference between lsof and ulimit -a

I have a problem in my jaxws-service and it returns the error: too many open files I wanted to monitor open files. When I inserted lsof, a file used by tomcat is returning a number that is higher ...
2 votes
2 answers
2k views

New Ubuntu user, having trouble increasing the “open file limit”

The commands I am/trying to use in terminal are: sudo /bin/su -c “echo ‘fs.file-max=1000000’ >> /etc/sysctl.conf” sudo /bin/su -c “echo ‘* soft nofile 1000000’ >> /etc/security/limits....
2 votes
1 answer
2k views

ulimit unlimited cannot set

I'm having a problem setting ulimits to unlimited. I am a member of the @audio group Here are the contents of my /etc/security/limits.conf @audio - rtprio 95 @audio - memlock ...
5 votes
1 answer
17k views

set ulimit for non root user

This is for my elasticsearch application, which terminates at startup showing : bootstrap checks failed [1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [...
1 vote
0 answers
1k views

Ubuntu desktop, wildcard nofile not working

I've tried setting the file limit to 32000 on ubuntu desktop for normal users by adding the following lines: * soft nofile 32000 * hard nofile 32000 To: /etc/security/limits.conf But, even after ...
  • 45
1 vote
0 answers
6k views

How do I increase number of open files with ulimit on Ubuntu 18.04? [duplicate]

When I try to ulimit -n 4097 or greater I get the following error: bash: ulimit: open files: cannot modify limit: Operation not permitted None of the solutions at How do I increase the open files ...
1 vote
0 answers
3k views

accept: too many open files issue

This happens with geth, when we hit the geth RPC api with a program to get balances for accounts. First it was failing when the number of files opened by geth was hitting 1024 barrier (the soft limit)...
1 vote
0 answers
306 views

Change max open file limit and broke ubuntu

Following a tutorial I added the line fs.file-max = 4096 to /etc/sysctl.conf and ran sudo sysctl -p to update the max number of open files. Now if I try to do anything I just get an error saying '...
  • 111
1 vote
1 answer
8k views

Unable to modify ulimit

I am on Ubuntu 18.04 Trying to modify max number of processes (hard limit) via the following command, and getting the respective error: $ ulimit -H -u 500 bash: ulimit: max user processes: cannot ...
  • 1,911
30 votes
3 answers
66k views

How to increase max open files limit on Ubuntu 18.04?

I've run ulimit -n 65536, added the following lines to /etc/security/limits.conf: * soft nofile 65536 * hard nofile 65536 alix soft nofile 65536 alix hard nofile 65536 root soft nofile 65536 ...
  • 1,003
1 vote
2 answers
6k views

Cannot increase open file limit beyond 999999 on 14.04+

I'm trying to increase open file limit for root user as well as non-root user via /etc/security/limits.conf. But, cannot get past 999999, anything above this value reverts to default 1024 nor I can ...
  • 1,683
0 votes
1 answer
4k views

limits.conf file Changing Max Memory Option

This question might have been asked earlier however i did not find any supported answer. I understand that ulimit supports few options from which max memory size is one of them. How can i set the same ...
2 votes
0 answers
2k views

Ubuntu failed to launch XXX - too many open files

I just freshly installed Ubuntu Gnome 16.04.4 a day ago and now I sometimes have trouble opening any application on my machine. When I try to open an application a notification pops up with Ubuntu ...
  • 212
2 votes
1 answer
8k views

Check the max allowed threads count for sure

I'm running an Ubuntu 17.10 server on the VDS. I'm running a 3proxy on it. The problem is that VDS somehow does not allow running more than 5000 threads per process, as I think. I think so because the ...
2 votes
0 answers
2k views

How to update ulimit value without restarting?

/etc/security/limits.conf * hard nofile 500000 * soft nofile 500000 root hard nofile 500000 root soft nofile 500000 Ulimit -a is howing the ...
  • 223
2 votes
0 answers
5k views

Cannot fork (for cron jobs), but ulimit and RAM looks fine

Several cron jobs keep failing to execute because the kernel cannot fork. It's been happening for weeks (I think since I upgraded to Ubuntu 16 but possibly earlier). Error messages $ grep fork ...
1 vote
1 answer
1k views

sysctl: /etc/security/limits.conf(55): invalid syntax, continuing

My /etc/security/limits.conf (55 & 56): * hard nofile 65535 * soft nofile 8192 I am trying to: sysctl -p --load /etc/security/limits.conf ...
0 votes
0 answers
354 views

Docker-Steam cant launch more often Game than 5 Time

I use this github Project: https://github.com/webanck/docker-wine-steam to run the Game in the container. It works really fine and i can launch the game multiple times. But in the 6th container the ...
2 votes
1 answer
797 views

Unable to increase 'open files' limit in 16.10

I'm trying to increase the 'open files' to both a regular user and to root user. Been applying different procedures from different sources without success. I'm using Ubuntu 16.10 with Linux 4.8.0-41-...
  • 41
0 votes
1 answer
1k views

Ubuntu 16.10 Server MariaDB (MySql) open_file_limit won't go higher than 16364

I'm running on Ubuntu 16.10 (yakkety yak) with MariaDB 10.x and experience the very same issue as https://serverfault.com/questions/791729/ubuntu-16-04-server-mysql-open-file-limit-wont-go-higher-than-...
  • 1
4 votes
2 answers
5k views

Open files limit not reflecting config changes

I'm trying to increase the max open files hard (and soft) limit indicated by ulimit -Hn. But no matter what configuration I change, it stays on 4096 even after rebooting. In my /etc/security/limits....
1 vote
1 answer
1k views

Duplicity fails with "too many open files" error

Duplicity won't backup anymore. I'm running the same backup script as I have for months, but something has apparently changed. GPGError: GPG Failed, see log below: ===== Begin GnuPG log ===== gpg: ...
  • 197
1 vote
1 answer
441 views

Which /etc/pam.d file for a regular terminal?

I have edited /etc/security/limits.conf to set the ulimit rtprio permanently. If I ssh to localhost or open a shell with su it works fine, but if I just log in to Ubuntu (16.04) and open a Gnome ...
0 votes
0 answers
93 views

Program tries to change user hard limit so I can execute it just by root but not with regular users

I installed a program that tries to change my hard limits (I've figured it out because the only error that it is showing is limit: coredumpsize: Can't set limit and using root I'm able to execute it) ...
  • 31
0 votes
1 answer
1k views

ulimit: Unknown option “-r”

I'm trying to get JACK running in RT mode and I need to determine whether I'm allowed the necessary real time priority. Around the internet I found that ulimit -r or more genreally ulimit -a can tell ...
  • 428
6 votes
1 answer
12k views

bash fork: retry: Resource temporarily unavailable

I am trying to run a shell script which will create process using a shell script. I get Resource temporarily unavailable error. how to identify which limit (memory/process/filecount) is creating this ...
0 votes
0 answers
479 views

can I set # of open files to be umlimited?

I am using ubuntu, but setting /etc/security/limits.conf to beyond 999999 doesn't seem to work (reverts back to 1024). Is there a way to set this to be unlimited?
  • 101
0 votes
1 answer
2k views

Ulimit for user asterisk inside an LXD container

I have a bare metal ubuntu 16.04 server with a centos 6 LXD container within which I wish to install FreePBX/asterisk which I'm building from source. The building and install process was going very ...
1 vote
1 answer
4k views

setting ulimit in init script

I am trying to install rabbitmq-server on Ubuntu 14.04.4 LTS. In /etc/default/rabbitmq-server it says: # Maximum number of open file handles. This will need to be increased # to handle many ...
  • 111
0 votes
1 answer
2k views

cannot change open file limit

On ubuntu 14.04 production web server, I set as below: /etc/security/limits.conf * soft nproc 65535 * hard nproc 65535 * soft nofile 65535 * hard nofile 65535 /etc/pam.d/common-session session [...
1 vote
1 answer
3k views

Can't set max limit of opened files

I use Ubuntu 15.10 (64bit). I tried to run ulimit -n 102400, but after reboot or relogging (log out and log in) and excuting ulimit -n I see: 1024. I tried adding * soft nofile 102400 * hard nofile ...
1 vote
0 answers
331 views

How to set ulimit in Ubuntu 15.10 chroot?

I have an Ubuntu 15.10 in a chroot and would like to permanently set a ulimit value (ulimit -c unlimited). I have looked at modifying the /etc/security/limits.conf file but the changes are not being ...
  • 203
2 votes
1 answer
1k views

Ubuntu 15.10 core files not found although core_pattern looks ok

On Ubuntu 15.10 I can not find the core files dumped by my program. ulimit is set to unlimited. After uninstalling the apport service, the /proc/sys/kernel/core_pattern file only contains core which ...
  • 203
3 votes
2 answers
9k views

sudo can't give ulimit command?

I am trying to write a solution for another user, when I noticed that sudo ulimit -c returns command not found. So then I tried this: $ sudo ulimit -c sudo: ulimit: command not found $ ulimit -c 0 ...
  • 14.3k
1 vote
0 answers
180 views

Set limits on processes to stop hangs [duplicate]

I am using my Ubuntu to do some programming assignments at college and it keeps hanging. For example, If I have an infinite loop in my C code by mistake, Ubuntu freezes. If my C program allocates ...
  • 111