ulimit gets or sets the upper limit for resources available to the current shell.
Questions tagged [ulimit]
356 questions
0
votes
2 answers
ulimit -t Linux
I wrote two simple programs on Eclipse- Ubuntu to test ulimit terminal command (Their binaries are attached)
++++++++++++++++++++++++++++++++
Iterator
#include
using namespace std;
int main(){
for(long long i = 0;;i++)
cout << i <<…

RofaelEmil
- 85
- 4
- 10
0
votes
1 answer
ulimit -a every half hour return back with old value
problem with ulimit -a every half hour return back with old value
every time i change it to
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size …

Michael Atef
- 93
- 1
- 10
0
votes
1 answer
PAM limits.conf not working on www-data in ubuntu oneric ocelot
tried uncommenting pam_limits.so from the pam.d directory but no luck. Basic PAM seems to be installed as libpam are present in /usr/lib
Here is the ucommented part of limits.conf
www-data hard CPU 1
@www-data hard CPU 1

pmagunia
- 1,718
- 1
- 22
- 33
0
votes
1 answer
How to detect all file handlers that are open in order to close then?
I want to patch python popen2 which tries to close all open filehandres by having a loop on [3, SC_OPEN_MAX].
This means that if someone increases the upper limit using ulimit to a huge value like 1,000,000 it will make any python aplication that…

sorin
- 161,544
- 178
- 535
- 806
-1
votes
2 answers
Ubuntu 16 gives "fork: retry: Resource temporarily unavailable", Ubuntu 20 doesn't
I have 2 similar machines in terms of HW. One has Ubuntu 16, the other Ubuntu 20.
I'm running a python program that is meant to open 30K TCP connections to an end point. The Ubuntu 20 machine machine was able to do the job well just by doing these 2…

Luis Serrano
- 29
- 11
-1
votes
1 answer
ENOMEM (Out of memory) and out of stack in ubt_x32a64_al
following with the new exagear x86_64 can be download it from here https://threedots.ovh/blog/2021/01/huawei-exagear-x86_64-apps-on-arm64/
i get error with running
.../files/home # ./ubt_x32a64_al
Failed to initialize ubtipc.
[Pid 29870]…

amera
- 1
- 4
-1
votes
1 answer
Change ulmit value in Spark
I am running Spark codes in EC2 instance. I am running into the "Too many open files" issue (logs below), and I searched online and seems I need to set ulimit to a higher number. Since I am running the Spark job in AWS, and I don't know where the…

daydayup
- 2,049
- 5
- 22
- 47
-1
votes
1 answer
ulimit Linux connection limit
I have a question about ulimit:
ulimit -u unlimited
ulimit -n 60000
If I execute these in a screen, will they forever be kept as a setting on the screen until I kill the screen or do I have to run it every time I run the program?
What I want to do…

user7157477
- 35
- 7
-1
votes
1 answer
What is the most correct way to set limits of number of files on Linux?
There are 3 ways to set limits of number of files and sockets on Linux:
echo "100000" > /proc/sys/fs/file-max
ulimit -n 100000
sysctl -w fs.file-max=100000
What is the difference?
What is the most correct way to set limits of number of files on…

Alex
- 12,578
- 15
- 99
- 195
-1
votes
1 answer
Image processing scripts are mysteriously killed. How do I detrmine why?
I have an account on Bluehost, it's a shared machine. I have been able to run most custom scripts with no problem, but image processing scripts are killed mysteriously after about 20 seconds. No output file is created. Sometimes I can get the…

user48918
- 551
- 5
- 5
-6
votes
1 answer
How to create and open many files using c program ? (say n files)
I need to know how to create many empty files and open them simultaneously using a c program.

Dilshad PT
- 49
- 4