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

learn more… | top users | synonyms

5
votes
1answer
11k views

nofile ulimit -n on Ubuntu 14.04 LTS

➜ sudo sysctl -a|grep file fs.file-max = 2037581 fs.file-nr = 2784 0 2037581 ➜ ~ cat /proc/sys/fs/file-max 2037581 ➜ ~ cat /proc/sys/fs/file-nr 2720 0 2037581 /etc/security/limits.conf ...
2
votes
1answer
762 views

Generating core files on Ubuntu

Recently I've been trying to enable core dumps on Ubuntu. I made a simple program, that would crash (it writes some data out of array). At first, core dumps weren't generated. This was because ulimit ...
0
votes
1answer
193 views

how does ulimit work in linux?

I am learning about ulimit right now and this is a bit confusing. I start with this as my default ulimit. test@ubuntu:~$ ulimit -n 1024 I can see my hard and soft limit: test@ubuntu:~$ ulimit ...
0
votes
1answer
2k views

Ardour, system has a limit for maximum amount of locked memory

After installing and starting Ardour I receive the following warning message: WARNING: Your system has a limit for maximum amount of locked memory. This might cause Ardour to run out of memory ...
3
votes
0answers
314 views

nofile limit not changed for sh command in non-interactive session

Running 12.04.3 LTS A user submitting a batch job to the queue was receiving a 'too many open files error' Investigation suggested changing the /etc/security/limits.conf file which has been ...
2
votes
0answers
251 views

Core only dumped upon receiving SIGQUIT

Learning about signals, I found out that calling the <stdlib.h> functionabort(void); in a C program, which roughly equals to raising a SIGABRT signal, doesn't create a core file on my Ubuntu ...
1
vote
0answers
78 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 ...
1
vote
0answers
77 views

Set limits on processes ubuntu

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 ...
1
vote
0answers
387 views

How to redirect the output to a log file from upstart script?

I am using upstart to start/stop my c++ app server as shown below - start on runlevel [2345] stop on runlevel [016] chdir /opt/tetra/app_server respawn post-stop script sleep 30 end script ...
1
vote
0answers
68 views

How to persistently limit resources of a program

I am running several programs on my computer and under normal circumstances my RAM (2GB) and CPU power is sufficient. However it occurs that a single program suddenly turns the system permanently ...
0
votes
0answers
22 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 ...
0
votes
0answers
32 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 ...
0
votes
0answers
18 views

How to exclude a specific (non root) login user from limits.conf rules

To set limits, for instance, in the number of concomitant processes, for any user on a system, the only way (known to me) is to edit the configuration file for the pam_limits module: ...
0
votes
0answers
68 views

ulimit view resource usage for user / group

when you go: ulimit -a you get the limits: core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size ...