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

learn more… | top users | synonyms

0
votes
0answers
19 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 ...
4
votes
1answer
39 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 ...
0
votes
2answers
129 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 ...
0
votes
0answers
36 views

Updating hard limit of “maximum open files” of running process

I am trying to increase the "maximum open files" limit of my running process (apt-cacher-ng). I am following below link http://gregchapple.com/updating-ulimit-on-running-linux-process/ By following ...
4
votes
1answer
371 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
318 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 ...
0
votes
0answers
153 views

How can I set 'ulimit -r 95' for a non-root user in ubuntu?

I need to set ulimit -r 95 for a non-root user. I edited: /etc/security/limits.conf /etc/pam.d/common-session /etc/pam.d/su according to this and this post. i.e. in limits.conf: [myusername] soft ...
2
votes
2answers
959 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 ...
1
vote
1answer
4k 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 ...
3
votes
1answer
1k 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
532 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
151 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 ...
2
votes
1answer
6k 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
195 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
124 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
187 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
62 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
2k 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
2k 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 ...
0
votes
1answer
2k 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 ...
6
votes
2answers
3k 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
2k 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
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 ...
8
votes
1answer
6k 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 ...
54
votes
2answers
120k 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 ...
1
vote
2answers
746 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
2k 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
6k 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 ...
3
votes
2answers
3k views

Permanently set process limit

How do you permanently set process limit per user (ulimit -u) in Ubuntu?
6
votes
1answer
2k 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) ...