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

learn more… | top users | synonyms

1
vote
1answer
29 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 ...
0
votes
0answers
29 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
1answer
58 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
0answers
111 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 ...
0
votes
0answers
20 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: /etc/security/...
1
vote
1answer
69 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 ...
3
votes
2answers
851 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 ...
1
vote
0answers
92 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 ...
0
votes
1answer
239 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 -...
1
vote
2answers
370 views

How are the various ulimit values for a process set?

How are the various ulimit values for a process set? I am especially interested in the number of open file descriptors. How is that set for a given process? If it is based on the user who started the ...
0
votes
0answers
78 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 (...
3
votes
1answer
3k views

core file size with ulimit

My question is probably not related to Ubuntu in particular, but since my desktop running this OS, I came to this forum. I am trying to change the core file size using ulimit -c command as follows: $...
1
vote
0answers
494 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 ...
5
votes
1answer
3k views

Permanently raising nofile limits in Ubuntu 14.04 LTS

I cannot seem to figure out what exactly is needed to allow the maximum number of file descriptors to be raised permanently for all users. /etc/security/limits.conf: root hard nofile ...
1
vote
2answers
13k views

Ubuntu 14.04: can't get past 4096 max open files for non-root user

I can't seem to increase the nofile limit for non-root users on Ubuntu 14.04, despite following every StackExchange answer related to this problem. So far I have: $ cat /etc/security/limits.d/custom....
5
votes
1answer
947 views

How to set a memory limit for a specific process?

I tried to execute mpiexec -16 ... on a 384 GB RAM server, but it induced OOM Killer and was aborted. How can I set a memory limit for mpiexec execution? I know ulimit, but it might affect other ...
0
votes
1answer
791 views

Open file limit [closed]

I'm trying to increase open file limit in Ubuntu 8.04.4 LTS. Followed information posted in this question: How do I increase the open files limit for a non-root user? Added to /etc/sysctl.conf ...
2
votes
2answers
2k views

how to setup automatic core dump on upstart script?

the myapp is an application that crashes eventually. I would like to get the core dump of those crashes... this is the upstart script I tried so far... but it still doesn't work description "...
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 *...
4
votes
1answer
3k views

Copy app error: “The open file ulimit level is too low, please increase it otherwise changes will not be detected properly”

When using Copy, I get this error: Error: "The open file ulimit level is too low, please increase it otherwise changes will not be detected properly" The application stops syncing when it appears, ...
2
votes
1answer
781 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 ...
2
votes
1answer
233 views

Default resource cap on root user

I happened to see that on my Ubuntu 12.04 some resources of the root user is capped. I have not capped anything explicitly and my limits.conf as far as root user is concerned is empty. Here is the ...
4
votes
1answer
9k views

Changing ulimit on ubuntu 12.04 Never works

I am working with hadoop and need to change number of open files ulimit -n. I have seen similar questions on stackoverflow and elsewhere and have tried everything in those answers, but it still does ...
3
votes
0answers
322 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
1answer
162 views

Major problems with setrlimit after upgrading to Saucy

I have been using setrlimit with the R programming language for several versions of Ubuntu. However after upgrading to 13.10, very strange things started happening. First I started noticing that ...
2
votes
0answers
261 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 13....
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 ...
1
vote
1answer
3k views

What is ulimit and how to install in Ubuntu?

What is ulimit and how to install in Ubuntu? When I am trying to install, I'm getting the below error: E: Unable to locate package ulimit
1
vote
1answer
3k views

how to increase maximum open files for memcached service

Using ulimit -n i am able to set per shell based maximum open files limit To make this value persistent i am able to edit this is in /etc/security/limits.conf and restart the ubuntu 12.10 box, here ...
1
vote
1answer
3k views

Modify limits of process (ulimit -n)

Is it possible to change the: - soft limit and - hard limit of a SPECIFIC process? In my case, my process is mongod and a lot of web resources tell me to simply write: ulimit -n in my Terminal. But ...
8
votes
2answers
5k views

Upstart and core files

I have an upstart job that occasionally crashes with a segmentation fault, and I have a few questions about core dumps. First, should I add a stanza: limit core unlimited unlimited Is there a ...
1
vote
1answer
3k views

Opposite command for “ulimit -c unlimited”

I encountered a bug in eclipse with this error log reported as Bug #1097078. According to the error log, there was a line as Failed to write core dump. Core dumps have been disabled. To enable core ...
0
votes
2answers
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 ...
11
votes
1answer
11k views

How to remove limit on core dump file size

I would like to increase the maximum size limit for core dump files as a regular user. Using bash, I can set it like this: $ ulimit -c 100 which works well the first time I set it. However, the ...
1
vote
1answer
1k views

Apache / MySql is not running. What is wrong?

I installed lampp / xampp on my Ubuntu 12.04. After installing, Apache and MySQL were running properly. Now, they're not. Here's what I get when I try to run apache: Command: /etc/init.d/apache2 ...
82
votes
3answers
210k views

How do I increase the open files limit for a non-root user?

This is happening on Ubuntu Release 12.04 (precise) 64-bit Kernel Linux 3.2.0-25-virtual I'm trying to increase the number of open files allowed for a user. This is for an my ecplise java application ...
2
votes
2answers
1k views

How to enable SIGQUIT core dumps with apport?

I noticed that on a 12.04 system setting ulimit -c unlimited and sending Ctrl+\ does not have the expected result. Though the shell prints ^\zsh: quit (core dumped) no core dump is written as far ...
4
votes
1answer
3k views

ulimit -u gives illegal option error when running from a script but not when from a terminal

I have the following script: #!/bin/sh echo "OUTPUT:" gcc temp.c echo "ACTOP" ulimit -t 1 ulimit -f 1024 ulimit -u 3 ./a.out > out.txt The output I get is OUTPUT: ACTOP ulimit: 7: Illegal ...
1
vote
1answer
7k views

How do I install and run Apache2?

I have downloaded apache2 from the official site and compiled and installed it per the given instructions there, but on running I get an error: ulimit: 88: error setting limit (Operation not ...
7
votes
1answer
10k views

Ulimit and make_sock errors

I'm trying to configure Redmine for Ubuntu 11.10, using this method Redmine for 11.10 but ran into some crazy snag somewhere with apache. Upon issuing service apache2 restart I get the following ...
5
votes
2answers
5k views

Permanently set process limit

How do you permanently set process limit per user (ulimit -u) in Ubuntu?
6
votes
1answer
3k views

What is a safe ulimit ceiling?

This is the output of ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) ...