ulimit gets or sets the upper limit for resources available to the current shell.
Questions tagged [ulimit]
356 questions
0
votes
2 answers
Enabling core files on CentOS 6
I am trying to enable core files on a machine running CentOS; however, nothing I have tried has produced core files…here is what I have done:
Added the following two lines to /etc/security/limits.conf:
* hard core unlimited
* soft …

Kabb5
- 3,760
- 2
- 33
- 55
0
votes
2 answers
setting maximum number of files
I am trying to set the value of maximum number of open files in Ubuntu in etc/security/limits.conf, but i am not getting the same value reflected when i fire the command ulimit -a.
I am adding the following values in the limits.conf :
* …

Abhishek
- 1
- 1
- 2
0
votes
2 answers
separate (binary) implementation of ulimit command?
Is there a source code for /usr/bin/ulimit? I need to see a user's complete list of rlimit's without him being in a shell.
In this case, we have problems running memory-intensive programs from the web server (user wwwrun, usually having /bin/false…

Christian
- 151
- 3
0
votes
1 answer
Update failed of file descriptor limit
I have a server with Debian wheezy x64, I have problem with asterisk server "Try increasing max file descriptors with ulimit -n", I try to change the file descriptor limit as follows:
# su - asterisk
$ ulimit -Hn
4096
$ ulimit -Sn
1024
$ exit
# vi…

developer
- 4,744
- 7
- 40
- 55
0
votes
1 answer
execute php file 100000 times at a time in centos
I need to run one php file 100000 times at a time. for that i used a exec command in a php file (runmyfile.php) and called that file using putty.
The runmyfile.php file is have the following code.
for($i=0;$i<100000; $i++){
exec('php -f…

user3378018
- 21
- 3
0
votes
2 answers
How to create random memory allocation failure?
I recently discovered PageHeap, a Windows debugging tool. Its option /fault permits injecting memory allocation failure every once in a while. Like, I want 1 allocation to fail every 100, or 1000, you decide. Do we have something similar on linux?…

qdii
- 12,505
- 10
- 59
- 116
0
votes
1 answer
List of performance improvement features that we can implement in java
May be this is a well known question, But i didn't find the best reference for this ques...
what is the formula to calculate and assign the default u-limit, verbose (for gc) and max heap memory value?
If there is no specific formula, what is the…

Harry
- 3,072
- 6
- 43
- 100
0
votes
1 answer
How to limit allowed time for a script run as a sub process in ksh script
I try to limit the allowed of a sub process in a ksh script. I try using ulimit (hard or soft values) but the sub process always break the limit (if take longer than allowed time).
# value for a…

NeronLeVelu
- 9,908
- 1
- 23
- 43
0
votes
0 answers
Too many files open tomcat timeout issue
Hello i am having a issue where i create connections to the as400 system using tomcat.
Everytime we call the as400 system it creates a connection. Sometimes the system lags and we never get a response back and it just holds up so we never close that…

user1863457
- 131
- 2
- 11
0
votes
2 answers
Set limit on coredumpsize using modules
I am trying to convert a csh script to a tcl script for use within the linux modules functionality. The csh script was originally used to set environment variables properly for a software package. Instead of asking an end-user to change his shell…

twinoza
- 3
- 1
- 4
0
votes
0 answers
Java Heap allocation acting different
Cannot allocate heap on one of two identical systems with the same version of java. If I set the stack size limit (ulimit -s) higher on the failing system it then works. 'strace' shows that java is failing on the second system in mmap2(). I need to…

user25849
- 101
0
votes
1 answer
How to set up core dumping on a mac?
I am writing code for an animation program and I have a problem. I need to set up core dumping. NetBeans is saying this: Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java…

I have too many problems
- 1
- 1
- 3
0
votes
0 answers
Open hundred of TCP (Websocket) Connections on one Client
I want to figure out how many connections my Server can handle. Thats why I wrote a script which actually creates a lot of connections (websocket-connections).
This works find until 200 Connections then it stops!
I am guessing it has something to…

user1354743
- 407
- 3
- 7
- 20
0
votes
1 answer
sh via Ruby: Running ulimit and a program in the same line
I am trying to run some computational-intense program from Ruby via the following command:
%x(heavy_program)
However, I sometimes want to limit the running time of the program. So I tried doing
%x(ulimit -St #{max_time} & heavy_program)
But it…

Gadi A
- 3,449
- 8
- 36
- 54
0
votes
1 answer
How to set ulimit to unlimited in perl?
I want all child processes of my perl script to generate core files in case of unexpected failures. So how can I set ulimit to unlimited inside perl?

Mihran Hovsepyan
- 10,810
- 14
- 61
- 111