Questions tagged [limits]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
207 views

Iptables, Limit the number of IPs connected to a specific port per second

iptables can limit connections per ip at the same time with the --connlimit command . but I want to know is there a way to limit connected IPs at the same time? for example, if you limit connections ...
A H's user avatar
  • 11
1 vote
0 answers
18 views

Marking services for killing in a resource-starvation situation

We use systemd --user to run certain services of our own. In some cases, these "get out of hand" -- spawn way too many processes, which exhausts RAM and causes the machine to "thrash&...
Mikhail T.'s user avatar
  • 2,377
2 votes
1 answer
2k views

EKS Pods with ephemeral-storage constantly evicted

I'm working on EKS v1.20.11-eks-f17b81 and I'm facing an issue with a Java container Alpine based. Basically my deployment have the limits of ephemeral-storage for the request's and also the limit's ...
user2275908's user avatar
0 votes
0 answers
1k views

Ubuntu 21.10 ulimit (open file descriptors) not applying correctly

The situation is strange because I have 2 identical servers with the same application but on one server i get a ulimit error from the custom application ulimit error: too many open files but on the ...
Arturski's user avatar
  • 274
0 votes
0 answers
140 views

Block users from accessing anything outside home folder and run any executables on Windows

I am facing a quite complex problem and I do not know how to approach it in the best way. In short I need to block access (browse, display, run etc.) to anything outside of the profile/home directory ...
BrX's user avatar
  • 13
0 votes
1 answer
1k views

Docker blocks when running multiple containers

I have no problem running 6000 docker containers. But when I start 6056, docker blocks and the server becomes unstable (sudo blocks for several minutes, but docker ps works). There is plenty of memory ...
Ole Tange's user avatar
  • 3,096
0 votes
0 answers
63 views

Is there anything similar to hashlimit for mac address?

The hashlimit module works basically like ‘limit’ but can be used with source IP, destination port, destination IP and source port, thanks to the –-hashlimit-mode option. Is there anything similar ...
Harry's user avatar
  • 15
0 votes
1 answer
1k views

Policyd-rate-limit how to set limit outgoing mails for each individual sender domain

I am using policyd-rate-limit and it works only for global sending outgoing mails like that: limits: - [30, 600] Limit to 30 mails yb 10 minutes. And when I try to set limit for each user like ...
Macsurf's user avatar
  • 51
0 votes
0 answers
2k views

How to determine which resource is exhausted

On a server with a very high load many of my daily cron jobs stopped working. I have postfix server running that only delivers locally so that I can see the output of the cron jobs with mutt. I ...
Pablo's user avatar
  • 179
1 vote
1 answer
1k views

Can quotas and limits checked at organization level in Google cloud?

Please help me on my question,I spent a lot time to know the difference between quotas and limits and for checked out quotas at organization level. As I am seeing some limits are their per ...
Mahaboob's user avatar
0 votes
0 answers
628 views

Caddy "CSR doesn't contain a SAN short enough to fit in CN"

The Common Name (CN) in a TLS certificate is documented to have a limit of 64 chars. The trick when issuing a cert for a so long subdomain is to set the CN to something else (shorter) and have the ...
Xavi Montero's user avatar
1 vote
0 answers
317 views

RHEL8 Limits not applied when setuid is configured

I have configured my limits.conf file to allocate a huge stack size * soft stack 65535 * hard stack 65535 ulimit -s shows the correct value for both root ...
Sam Daniel's user avatar
0 votes
0 answers
253 views

number of subdomain limit/alphabet issue on nginx

I have an issue adding new subdomains via nginx - specifically all subdomains crash/get blocked when a subdomain beginning with the letter 'a' is added to our system. This is a server hosted on AWS ...
RebRy's user avatar
  • 21
0 votes
2 answers
522 views

How to reserve some disk space (e.g. for backup)

I have a VPS with Wordpress (including storage and database on the same machine). Now I want to make daily backups to an external service (AWS S3): the issue is that first I need to generate a tar of ...
collimarco's user avatar
0 votes
1 answer
389 views

Is it possible to limit OpenSSH maximum number of clients?

I am trying to limit the number of total OpenSSH connections to our Unix systems. At first, I have tried modifying OpenSSH configuration with MaxSessions and MaxStartups options but with no success. ...
Ciges's user avatar
  • 131
1 vote
1 answer
5k views

systemctl limits - solr complaining

I'm building a solr server (on Ubuntu 18.04, using the repo solr-common and solr-jetty). On startup, solr was reporting that nfile and nproc (1024, 6721 resp) was set too low. I ran systemctl edit ...
symcbean's user avatar
  • 22.4k
0 votes
1 answer
1k views

What is the command line to backup my /var/www/html files?

what is the best command line to backup my files ? tar -czf /backup/backup.tar.gz /var/www/html or tar -czvf /backup/backup.tar.gz /var/www/html and what are the difrences between this to ? P.S. ...
Jack Duldi's user avatar
0 votes
0 answers
293 views

Email limit on SMTP when the sender and receiver are under the same domain

In the company I work at, I have to setup our backend application to send a big amount of emails with updates to a customer (we have permission for that), but without using any 3rd party service apart ...
Alexios's user avatar
  • 11
-3 votes
1 answer
465 views

How much is too much (processes, threads) [closed]

I wonder if I have too much processes and if systemd is getting overloaded. When I run ps aux | wc -l O get "840" If I run ps -e H | wc -l I have around 5k (5128 to be exact), substracting the process ...
Кристиян Кацаров's user avatar
3 votes
1 answer
4k views

High CPU usage by WMIPRVSE.EXE process at regular intervals in Windows

I noted eventually at production server with almost 200.000 handle and wmiprvse.exe process with high cpu usage. The server has approximately 200 processes running on Windows server 2012-R2 (...
lsalamon's user avatar
0 votes
1 answer
2k 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 ...
Williams Perdana's user avatar
0 votes
1 answer
1k 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 ...
JosephDoggie's user avatar
0 votes
1 answer
159 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....
Mir Adnan's user avatar
  • 105
1 vote
1 answer
1k 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.
Paul Draper's user avatar
14 votes
5 answers
15k 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 ...
intelfx's user avatar
  • 311
2 votes
1 answer
7k 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 ...
crashoverbike's user avatar
3 votes
1 answer
3k 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 ...
Itai Ganot's user avatar
  • 10.8k
0 votes
1 answer
323 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 ...
Guillaume Fenollar's user avatar
0 votes
1 answer
959 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 ...
Emilio Zaldivar's user avatar
1 vote
0 answers
646 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. ...
w00t's user avatar
  • 1,164
1 vote
0 answers
293 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 ...
DOB's user avatar
  • 11
2 votes
3 answers
17k 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 ...
user6232516's user avatar
2 votes
1 answer
5k 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/...
Alex's user avatar
  • 301
6 votes
3 answers
7k 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 ...
fadedbee's user avatar
  • 2,118
5 votes
1 answer
2k 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 ...
JDS's user avatar
  • 2,628
1 vote
4 answers
38k 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?
user327925's user avatar
1 vote
1 answer
838 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 ...
Marc's user avatar
  • 151
5 votes
1 answer
6k 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 ...
moritz's user avatar
  • 151
-1 votes
1 answer
2k 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 ...
My dream of Bulgaria's user avatar
1 vote
1 answer
3k 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/...
devnox's user avatar
  • 11
0 votes
1 answer
2k 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 ...
FelikZ's user avatar
  • 355
1 vote
1 answer
439 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 ...
Daniel Cukier's user avatar
1 vote
0 answers
761 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 ...
slashRahul's user avatar
1 vote
1 answer
3k 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....
asvignesh's user avatar
  • 127
1 vote
1 answer
831 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 ...
user3143813's user avatar
1 vote
1 answer
823 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 ...
Ravi Bhatt's user avatar
2 votes
1 answer
996 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 ...
AudioDan's user avatar
  • 398
1 vote
0 answers
158 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 ...
PaulDaviesC's user avatar
0 votes
2 answers
4k 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 ...
Digital ink's user avatar
19 votes
2 answers
76k 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] ...
John M's user avatar
  • 333