Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [limits]

The tag has no usage guidance.

0
votes
1answer
244 views

Add LimitNOFILE on haproxy init script

I want to add open files limit to HAProxy 1.8 process to 1024576. But since I use version 1.8, I cannot add LimitNOFILE to init scripts, instead of systemd file. How can I add limitNOFILE to those ...
0
votes
1answer
186 views

Risks to increasing the IIS 7 --“Maximum Requesting Entity Body Limit”

IIS 7 -- "Maximum Requesting Entity Body Limit" It is certainly easy enough to increase the field "Maximum Requesting Entity Body Limit" in IIS 7. Has anyone encountered risks to increasing this ...
0
votes
1answer
42 views

debian and yum packages - is there a way we can set max mem % and CPU % limits?

Is there a hard limit we can set on Debian and RPM packages? My thought is to put 20% CPU, 20% Memory and 200 MB Disk Usage hard limits. So the package can play within those limits and not beyond that....
0
votes
1answer
144 views

How to current Linux process count (compared to pid_max)

How can I get the number of Linux processes (including lightweight processes)? I want to see how many before I hit the limit dictated by /proc/sys/kernel/pid_max.
5
votes
2answers
3k views

systemd, per-user cpu and/or memory limits

There is similar question: Cgroups, limit memory per user, but the solution doesn't work in "modern" systems, where cgroups hierarchy is managed by systemd. Straightforward solution — templating ...
1
vote
0answers
3k views

Linux : Count Open Files for Process

How can I check how many open files are currently used? Checking on PM2 is just an example: I found the PID: ps aux | grep pm2 | awk '{ print $2 }' Checked that there is a limit of 65536 ...
1
vote
1answer
882 views

Ubuntu: Unable to change limit for number of open files for root (all users), what could be the reason?

I Have an Ubuntu 16.04 server. When I run as root, ulimit -n I get 1024. When I run it as my user I get 65535. But I want to make sure that all users, including root has the open files limit set to ...
0
votes
1answer
100 views

Limits configured but not applied to a daemon

On my CentOS 7, I use cat /proc/<pid>/limits to see the actuel limit set. I got confirmation that this method is totally accurate here because I'm using it on MySQL, which can't dump a specific ...
0
votes
1answer
270 views

Limited to 1024 file descriptors [relates to ulimit -n]

I have a problem to setup shoutcastv2 for more than 1000 listeners. I always get the message as follows from shoutcast log. With shoutcast v1, I don´t have this problem. INFO [MAIN] Limited to ...
1
vote
0answers
338 views

Force nproc ulimit on non interactive user

I have a script that can be launched n times at the same time through php-fpm. php-fpm pool is set to run under a certain username and I want to limit the number of processes this username can launch. ...
1
vote
0answers
81 views

OOM using CRON but not using SHELL

When I start a java program by shell, everything is working well. However if I start the same program with the same command and same user by CRON, I get a java.lang.OutOfMemoryError just after a few ...
0
votes
3answers
5k views

How to setup a traffic limit per user on OpenVPN?

I am setting up a VPN server using OpenVPN. The authentication method is the certificate one (different certs for client and server). The VPS has 1TB of traffic monthly. I plan allowing up to 4 ...
2
votes
1answer
2k views

How do I increase the open file limit on Linux?

I am using CentOS 7. I found out that the current value can be seen using $ ulimit -a (look for open files). Or just $ ulimit -n Then I try to edit these limits by editing the file at $ vim /etc/...
5
votes
3answers
2k views

How to use iptables or tc to limit packets per client.

I have some problem network clients which send data too fast. I want to slow them down, using iptables, or possibly tc. I've seen iptables solutions like: sudo iptables -A INPUT -m state --state ...
5
votes
1answer
645 views

Limit number of concurrent users switching to root account?

This is for Ubuntu 14.04 and Centos 7. I need to limit the number of users actively running as root. i.e. Logged in as root on the CLI. Basically, I want only one user at a time to be able to run ...
1
vote
4answers
14k views

Exchange 2010, 2013 and 2016 maximum mailbox size

Which is the maximum size limit for a single mailbox in exchange 2010, 2013 and 2016?
1
vote
1answer
382 views

How to change max file limits on a process

Yes I know this question has been asked before and I have tried all the solutions I have seen and none of them work for me. We are running Ubuntu 12, and we have a process that automatically gets ...
4
votes
1answer
2k views

How to apply memory limits to all cron jobs?

On a shared server (Debian Jessie), there are some memory limits (and other limits, like number of processes) that apply for a group of users, configured in /etc/security/limits.conf. It seems that ...
-1
votes
1answer
1k views

Can iptables automatically drop established session after certain seconds?

Can iptables drop automatically an established output session after certain seconds e.g. 30 sec. since its launch? But I want to restrict it only for destination port 80 and 443. The purpose is to ...
0
votes
1answer
934 views

How to configure the niceness or priority of service started on boot

I want to increase the niceness of an service (decrease the CPU priority) started as an dedicated user or group during the boot process. I'm not able to define the niceness or priority in the /etc/...
0
votes
1answer
1k views

Nodejs: server doesn't close TCP connections

Facing a problem in the production server running debian (7.0) with nodejs (v0.10.x) cluster where it doesn't close some TCP connections to the clients. This leads to connection drops when connection ...
1
vote
1answer
323 views

Bootup process does not respect file limits config in Ubuntu Linux

I have open files limit configured in /etc/security/limits.conf * hard nofile 500000 * soft nofile 500000 root hard nofile 500000 root soft nofile ...
1
vote
0answers
601 views

How can I limit total quota using squid without authentication for per user

I am having Raspberry Pi running Raspbian, I have configured it as a wifi hotspot using hostapd and dhcpd, I have configured transparent squid proxy server on it. Now all traffic goes through my proxy ...
0
votes
1answer
2k views

What is the upper limit (maximum limit ) of WinRM MaxShellsPerUser

For executing the remote powershell commands i need to configure WsMan, In WsMan MaxShellsPerUser specifies the maximum number of concurrent shells that any user can remotely open on the same computer....
0
votes
1answer
508 views

nginx and Mysql Server Load limits (depend on Server config)

my server config is Technology: Ivy Bridge Processor: Intel Xeon E3 1245v2 Intel Smart Cache: 8MB Cores: 4 Threads: 8 Frequency: 3.4GHz+ Turbo Boost: 3.8GHz Virtualization: yes ...
1
vote
1answer
631 views

Changing ulimit on ubuntu 12.04 Never works

I am working with hadoop and need to change number of open files ulimit -n. I have seen similar questions on stackoverflow and elsewhere and have tried everything in those answers, but it still does ...
2
votes
1answer
562 views

KVM Raw file size limitations

What are the technical and practical size limitations of raw disk files to be used with KVM? Can I create a 2 or 3TB raw disk file as a data drive for a KVM based windows virtual machine (acutally ...
1
vote
0answers
128 views

Stack , data and address space limits on an Ubuntu server

I am running an Ubuntu server which has around 5000 users. The users are allowed to SSH in to the system. So in order to cap the memory used up by a process I have capped the address space limits ...
0
votes
2answers
3k views

Limit logons per user account in linux.

The current situation is that all users have local configured telnet connections to a red hat server running a simple telnet daemon. I would like to consolidate those locally configured telnet ...
16
votes
2answers
68k views

/etc/security/limits.conf soft nproc limit appears to be ignored

My MongoDB database was running into problems under load, with the following errors spamming the logs: [initandlisten] pthread_create failed: errno:11 Resource temporarily unavailable [initandlisten] ...
-5
votes
1answer
153 views

How much memory will this PHP Script need? [duplicate]

I'm trying to use a WordPress Plugin to backup my database and files but it keeps running out of memory. How much memory will this script need to finish and how much should I ask for from my hosting ...
2
votes
0answers
1k views

FAT32 limit on total length of all filenames in a directory combined?

I've kind of a weird problem on one of our customer's backup harddrives: The harddrive is formatted in FAT32 and last night our backup jobs threw an error on a subdirectory, claiming that it couldn't ...
3
votes
2answers
2k views

Find out limits of other user

On CentOS 6.4 / 64 bit - how to find the limits of the user "nobody"? Because I can not just su - nobody and call ulimit -a: # id nobody uid=99(nobody) gid=99(nobody) groups=99(nobody) # su - ...
15
votes
3answers
32k views

Is there a hard limit to the number of files a directory can have? [duplicate]

Wondering if there is a limit to the number of files that can be stored inside a directory, in CentOS 6. There is one particular directory which could potentially have millions of subdirectories. ...
-1
votes
1answer
1k views

limit filesystem cache size for specific files under linux

I have a directory with many files with high access rate. And I need to reduce the cache pressure of this specific directory to prevent other files (like my home directory files) from the pushing out ...
1
vote
1answer
2k views

Is it possible to increase the max limit of 10 pc's to any number of times without making the user a domain admin?

Normally a domain user has a maximum limit for 10 computers to join to a domain. But what i want to know is, is it possible (by joining a account to a group) to do this any number of times without ...
8
votes
3answers
15k views

Linux /etc/security/limits.conf explanation

Can anyone explain (or know of a source) that provides details about the items in limits.conf? The man page doesn't give much detail. For example it says: rtprio maximum realtime priority allowed ...
3
votes
4answers
758 views

If I upgrade an ext3 fs to ext4, will it automatically increase the maximum amount of directories per directory?

Due to an external unavoidable situation*, I need to have more than 32k directories in a directory (but as far as I can tell, less than 64k). I'm hitting the limit of ext3. I presume the original ...
0
votes
1answer
105 views

How to set memory limit on OS level to overcome problems with “Burstable memory service”?

I have VPS. It has Burstable memory service. My guaranteed memory limit is 1GB. I want linux not to take more that 1GB to programs on OS level. How to do it? It is ubuntu server.
-3
votes
1answer
63 views

Limiting traffic in network [closed]

Can I limit bandwidth for every client or vlan in my network ? The purpose is to prevent downloading managers from taking all the bandwidth and cause other computers to have a very slow Internet speed....
2
votes
1answer
7k views

From which Apache version onward is LimitRequestFieldSize no longer hardcoded to 8k max?

Title says it all: from which version onward is the LimitRequestFieldSize no longer hardcoded to a max. of 8k? It seems 2.2.15 is still affected.
0
votes
1answer
404 views

Can I globally set to cut off too big cron e-mails?

Is there a way to limit the body of all e-mails sent out by cron (to MAILTO receivers) to a specific length. If the particular output exceeds the limit, it just gets cutt off at that point. Is there ...
3
votes
2answers
2k views

When NOT to use virtualisation?

When virtualisation was new, we tried to virtualise everything, but then we noticed use cases where the our virtual machines were much slower than a bare metal. For us, we use the following rules ...
0
votes
1answer
1k views

Finding the source of a ulimit setting

On my CentOS 6.2 server the value of ulimit -v (virtual memory) is 1048576. However, this is not set in /etc/security/limits.conf (which is empty) or .../limit.d/ (which contains only a max processes ...
4
votes
2answers
8k views

Monitor open files limits, etc

We've been hitting the max open files limit on a few services recently. There are also a bunch of other limits in place. Is there a way to monitor how close processes are to these limits so we can be ...
0
votes
2answers
2k views

Message: mkdir() [function.mkdir]: Too many links

We run a web application as a production. Some days ago I discovered the error signed in subject of this theme. I know what's the problem, but want to ask, what is right way for resolve this? Yes, we ...
7
votes
2answers
15k views

Reload /etc/security/limits.conf

I would like to: make a soft 64GB limit for resident memory (so inexperienced users will get their run-amok processes killed, but experienced users can raise the limit for memory hungry processes) ...
0
votes
2answers
362 views

Is there a way to limit RAM usage by daemon in Debian?

Is there a way to set a limit on the RAM usage (virtual and resident) that a daemon can be granted in Debian? I understand that ulimit doesn't apply here, but something the right settings in /etc/...
1
vote
3answers
273 views

Limiting specific process to just one per user

My scripts are using wget to retrieve data from Internet. When many users are using this script I got very high load (about 20.00), because of disk I/O. Wget is automatically started each hour by cron....
0
votes
3answers
10k views

Maximum Size Limit for CIFS Share Accessed by Windows Server 2003 (32 bit) Client?

We have a CIFS share being served out by a NETAPP appliance. The CIFS share has grown to over 2 TB in size. A Windows Server 2003 32 bit-client accesses the share. Lets say, for example, the ...