Questions tagged [ulimit]

ulimit gets or sets the upper limit for resources available to the current shell.

356 questions
0
votes
3 answers

Why can't I create 50k processes in Linux?

Using Linux $ uname -r 4.4.0-1041-aws $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial With limits allowing up to 200k processes $ ulimit -a core file size…
Paul Draper
  • 78,542
  • 46
  • 206
  • 285
0
votes
1 answer

Suse Linux ulimit -v global setting

Where could be ulimit -v global setting stored? > me@server:/home/me : ulimit -a core file size (blocks, -c) 1 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f)…
Samuel
  • 95
  • 1
  • 9
0
votes
0 answers

Can the core dump cause memory leak?

I recently did this to my system ulimit -c unlimited and it created as designed, a core file for the program I use, ever since, I have had random crashes to my program but I haven't had the possibility to check the core dump to see what errors it…
J. Doe
  • 160
  • 11
0
votes
0 answers

Why ulimit -f doesn't work?

I have got Ubuntu 14.04, there is ulimit for ${myuser} ulimit -Hn 65536 I count number of opened files: sudo lsof -u ${myuser} |wc -l 677245 How does it possible? Edit: Also there is parameters; cat /proc/sys/fs/file-max 524288
Oleg Ilyin
  • 161
  • 1
  • 16
0
votes
1 answer

How to count of open files by a user in linux

Is their any specific command to count of open files (nofile) by a user in linux?
thanuja
  • 546
  • 1
  • 8
  • 22
0
votes
1 answer

ulimit for virtual memory size of a process

I'm running Linux OS (Ubuntu) on virtual box. When I am running the command ulimit -Sv 50 It's not setting the soft limit for virtual memory size in that bash session. The error I'm getting is: fatal error: out of heap memory I was running…
Scissor
  • 153
  • 2
  • 14
0
votes
1 answer

Icecast - Too many open files

I'm running an Icecast 2.4.3 server on a CentOS 7. When I have a lot of listeners, I receive these errors and everything stops working: [2017-06-21 18:56:37] WARN connection/_accept_connection accept() failed with error 24: Too many open…
Arvy
  • 1,072
  • 2
  • 16
  • 29
0
votes
1 answer

Restricting resources of a docker container for individual users

For a docker container you can set CPU limits (e.g. --cpu-quota --cpu-shares) and memory limits (--memory) on docker run. It is also possible to set the global nproc limit for users via --ulimit. Let's say two different users are running workloads…
0
votes
1 answer

What is the way to find file descriptor ulimit in Linux

I have a few servers wherein the ulimit is set as 65536 while in some 200000.Not sure depending on what parameter it is taken, referred the question given on [On Linux - set maximum open files to unlimited. Possible? But still not clear, what…
Niceha
  • 384
  • 2
  • 12
0
votes
0 answers

Allowing only certain resources or process counts for grep or any other such process

I have a cron-job(sh file) which greps(ps aux | grep) for certain process every 2 min. It usually takes <5 secs to run. But sometimes back, my server load went to 2400 and I had to manually restart my server to bring everything back to normal. When…
kadamb
  • 1,532
  • 3
  • 29
  • 55
0
votes
1 answer

Soft virtual memory limit (ulimit -v)

I have a linux user with soft virtual memory limit (ulimit -v) set to aroud 5GB. Having this in mind I try to do: get all user processes with ps -u -o pid --no-heading; for each pid, open file in /proc/pid/status; get VmSize parameter and sum them…
0
votes
1 answer

Mosquitto increase max connections

I install mosquitto, and have changed a lot of setting in /etc/security/limits.conf /etc/sysctl.cnof /etc/pam.d/common-session /etc/pam.d/common-session-noninteractive Detail changed: $ sudo vim…
Asoul
  • 996
  • 1
  • 10
  • 22
0
votes
1 answer

Under what conditions does GNU Make change the stack size, and why?

Consider this makefile: .PHONY: all all: dummy test ulimit -s include dummy dummy: test touch dummy When I run it, I get: $ make -v GNU Make 4.1 Built for x86_64-pc-linux-gnu Copyright (C) 1988-2014 Free Software Foundation, Inc. License…
Jason Gross
  • 5,928
  • 1
  • 26
  • 53
0
votes
1 answer

python , launch an external program with ulimit

I need to launch an external program from my python script. This program crashes, so I need to get a core dump from it. what can i do?
Gioviiz
  • 19
  • 8
0
votes
1 answer

Why can't Firefox cope with a memory limit set by ulimit?

When I set a memory limit for firefox using: $ ulimit -Sv 512000 $ ulimit -v 512000 $ firefox %u I get the following error: [4881] ###!!! ABORT: PR_CreateThread failed!: file…
Zelphir Kaltstahl
  • 5,722
  • 10
  • 57
  • 86