ulimit gets or sets the upper limit for resources available to the current shell.
Questions tagged [ulimit]
356 questions
0
votes
1 answer
Supervisor ulimits
I wanted to know how to modify the ulimits of supervisor process particularly.
I want increase max open process limit to unlimited for supervisor process so that , it will spawn it's child process with the same ulimits.
See the below screen shots…

Rangeesh
- 361
- 1
- 13
0
votes
2 answers
Running apache on android with termux and anlinux
Following this guide
I used termux and anlinux to install Ubuntu and apache2 on android. But when I run 'apachetcl start' I get this error:
root@localhost:~# apachectl start
/usr/sbin/apachectl: 99: ulimit: error setting limit (Operation not…

Juan Bilardi
- 11
- 1
- 3
0
votes
1 answer
centos cannot coredump with ulimit -c is unlimited
I just installed CentOs 7 on my mac using Parallel Desktop.
Here is the result of ulimit -c:
[root@centos-linux test1]# ulimit -c
unlimited
Here is the content of /etc/security/limits.conf
soft core unlimited
But the is no coredump file…

Yuan Wen
- 1,583
- 3
- 20
- 38
0
votes
1 answer
Setting ulimit in AWS ECS: HardLimit cannot be empty
Based on instructions in the official documentation and the official docker image I am running Elasticsearch locally with these configurations via docker compose:
elasticsearch:
image: 'elasticsearch:6.7.1'
container_name: elasticsearch
…

nabello
- 716
- 11
- 29
0
votes
1 answer
IPython crashing when I hold any key
When I ssh into a particular remote machine and start an IPython session, it crashed whenever I hold a key for about half a second (e.g. backspace key).
The error output is pasted below:
File "/home/zach/local/anaconda3/bin/ipython", line 11, in…

Zach Boyd
- 419
- 1
- 5
- 23
0
votes
1 answer
hive + too many connection to PostgreSQL DB
We have ambari cluster with Hadoop version – 2.6.4
When we run query in order to verify connections in PostgreSQL DB , we found many hive connection – in our case around 90
This cause other application problems
So we suspect that hiveserver2 is not…

Judy
- 1,595
- 6
- 19
- 41
0
votes
1 answer
Getting the PID and read the limits file for each PID
I'm trying to get a list of PIDs and after printing the Max open files from the /proc//limits file.
I found a way, but I was wondering if it's possible to do something more simple.
It will basically search for haproxy (sleep for this example…

LozanoMatheus
- 368
- 1
- 7
- 12
0
votes
1 answer
Query and set ulimit through .service file in Linux (systemd)
I am working on a project that needs to manage the ulimit through custom services file (lets say demo.service) on Linux.
I need to add a mechanism where my custom services file should attempt to set the current file descriptor to:
max(…

Abhay
- 31
- 1
0
votes
0 answers
Wildfly error too many open files, ulimit doesn't work
The problem : I have a Wildfly server for my web applications.
The server work during 1~2 hours and after a moment, I have this error for all the requests : Too many open files.
I have already put the ulimit nofile 65535 for all users and the same…

Ellosso
- 1
- 1
0
votes
1 answer
linux ulimit with java does not work properly
I run code on linux ubuntu 17.10
public class TestExec {
public static void main(String[] args) {
try {
Process p = Runtime.getRuntime().exec(new String[]{"/bin/sh", "-c", "ulimit", "-n"});
BufferedReader in = new…

Michal
- 109
- 1
- 9
0
votes
2 answers
Control Memory of Java process via environment variables
I need to run a script that contains a call to java. I cannot change that script (as it must be run on a variety of machines), but I can change the environment around it.
I can run a wrapping script around it, if that helps.
My underlying problem is…

Angelo Fuchs
- 9,825
- 1
- 35
- 72
0
votes
2 answers
increase number of oppened files at the same time. Ubuntu 16.04.4 LTS
In Ubuntu Mate 16.04.4LTS, every time I run the command:
$ ulimit -a
I get:
open files (-n) 1024
I tried to increase this limit adding at the /etc/security/limits.conf the command:
myusername hard nofile …

Jose Cabrera Zuniga
- 2,348
- 3
- 31
- 56
0
votes
1 answer
How do I set the ulimit in a nix build shell?
I am attempting to install the certbot package for nix, and it fails during the tests every time because the tests hit the open file limit on the system. I have modified the certbot install script just enough to print out the ulimit at the beginning…

Savanni D'Gerinel
- 2,379
- 17
- 27
0
votes
1 answer
Dump process memory on exit linux
I want to dump a process' memory when it exits. All the solutions I've seen using gcore, gdb or even procdump for linux dump the core in the middle of the execution and not exactly when it terminates
Procdump for windows has a very elegant solution…

Karan Jit Singh
- 595
- 7
- 25
0
votes
0 answers
Running MPI code with 256 procs - "[warn] select: Invalid argument" message
Following the tutorial on this link, I try to run a MPI code under MacOS 10.9.5 (Mavericks) with a number of process equal to 256 : the MPI code allocates for each process a 512x512 2D array, so it requires 256*256kB = 64MB of total used memory.
My…
user1773603