Questions tagged [ulimit]

181 questions
1
vote
1 answer

ulimit command or other memory / cpu limiting options?

I have a command line process that is ran by my ruby on rails application to use the ImageMagick 'convert' command to convert a PDF into multiple PNGs. The problem is that when I run the command it takes all the memory on my VPS (512MB) and renders…
bwizzy
  • 1,295
  • 4
  • 14
  • 17
1
vote
1 answer

What are some basic ulimit settings for a student shared server?

I'm developing a shared linux server for a few Unix/Linux classes. Anywhere from 100 to 500 students will be using this system but expect a concurrency of no more than 50. I'm trying to set ulimits (best way?) to ensure that no one user can crash…
Gray Race
  • 853
  • 3
  • 11
  • 22
1
vote
1 answer

Restricting memory available to a user

In Debian 6, how can I limit the total amount of memory (both resident set size and total virtual memory) that a user has access to? I have tried setting limits via ulimit, but if a process spawns subprocesses, the subprocesses do not have their…
user75046
1
vote
1 answer

Process niceness value

I was just looking for some clarification about the niceness value of a process, or perhaps some advice if I'm going about this all wrong. Say I have a couple dozen web server processes on a single machine, and I'm worried about any given one of…
jvnk
  • 123
  • 4
1
vote
1 answer

Stunnel, limits.conf

After reading the fine advice and accepted answer at Stunnel too many clients , I'm finding that this looks like our problem, but I'm having trouble applying the solution. First of all, ulimit is a shell thing that impacts processes spawned from…
Kyle
  • 1,859
  • 2
  • 17
  • 23
1
vote
1 answer

MySQL open files limit

This question is similar to set open_files_limit, but there was no good answer. I need to increase my table_open_cache, but first I need to increase the open_files_limit. I set the option in /etc/mysql/my.cnf: open-files-limit = 8192 This worked…
Brian
  • 796
  • 1
  • 6
  • 15
1
vote
1 answer

Apache keeps crashing due to unable to create worker thread

Am getting a lot of these in our error log ((11)Resource temporarily unavailable: apr_thread_create: unable to create worker thread) and (110)Connection timed out: proxy: HTTP: attempt to connect to 127.0.0.1:80 (*) failed The parameters of the…
Dina Abu-khader
  • 141
  • 2
  • 2
  • 7
1
vote
1 answer

SLES 10 ulimit shows core dumps unlimited, but no dumps occur

Core dump limits are disabled for a user using the normal /etc/security/limits.conf mechanism: # ulimit -a core file size (blocks, -c) unlimited However, running a segfault test shows no core being dumped: /tmp/a.out Segmentation…
mikemaccana
  • 3,370
  • 5
  • 25
  • 29
1
vote
5 answers

Limit amount of RAM to a process (Linux)

I have a Zope server (just a long running python process) which tends to eat up all RAM on my server after a couple of days. I do not want to restart it every night - maybe it's better to limit the RAM for this process and see if it can work…
mawimawi
  • 400
  • 3
  • 6
  • 17
1
vote
2 answers

Wildfly : Too many open files

We recently got a "too many open files" error in our production Wildfly 17 on debian 9. A simple restart of the wildfly service got rid of the error but I'd like to avoid the problem to come back. I'd like to increase the limit but I'm not sure what…
Ror
  • 321
  • 3
  • 16
1
vote
0 answers

How to interpret the number of open and max file descriptors for nginx?

I want to get the currently open file descriptors and upper limit of open file descriptors on an AWS Linux instance. The reason is to determine whether to increase the limits for nginx to have enough file descriptors available. I get the following…
Manuel
  • 225
  • 3
  • 13
1
vote
0 answers

Cannot login with root after change limits.conf

I have changed my /etc/security/limits.conf and now cannot log in with root. I do NOT have physical access to server console. I DO know the root password. I have tried: ssh root@localhost 'echo "fs.file-max = 5000000" > /etc/sysctl.conf; echo…
1
vote
1 answer

OS limits ignored by bamboo

Our developers wants bamboo because of integrations to other Atlassian software and we have regularly problems with this buildserver. Often the buildjobs fail with OutOfMemory exceptions like this: java.lang.OutOfMemoryError: unable to create new…
Lion
  • 506
  • 10
  • 21
0
votes
2 answers

Managed hosting, VPS & RAM - Virtual Memory?

I'm talking to a web host that's just starting up. They have shared hosting and managed VPS's. With shared hosting I understand that they have a script checking if a process goes over memory limits and if so, the process is killed. Similarly, for…
Diagon
  • 246
  • 1
  • 11
0
votes
1 answer

AIX ftp file limit

I am unable to restore/ftp a file to my AIX 5.3 server. I am logged in as root: # id uid=0(root) gid=0(system) groups=2(bin),3(sys),7(security),8(cron),10(audit),11(lp) I have set the fsize option in "/etc/security/limits" to "-1(unlimited)". I…
zerxeese
  • 11
  • 1
  • 3