Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ulimits are ignored for systemd processes #9872

Open
vishesh92 opened this issue Oct 30, 2024 · 3 comments
Open

ulimits are ignored for systemd processes #9872

vishesh92 opened this issue Oct 30, 2024 · 3 comments
Milestone

Comments

@vishesh92
Copy link
Member

vishesh92 commented Oct 30, 2024

ISSUE TYPE
  • Bug Report
COMPONENT NAME
packaging
CLOUDSTACK VERSION
N/A
CONFIGURATION

N/A

OS / ENVIRONMENT

RHEL7+

SUMMARY

We are setting max process limits in /etc/security/limits.conf to unlimited for cloud user. But RHEL7+ uses systemd which ignores the limits set in /etc/security/limits.conf or /etc/security/limits.d/*.conf.

STEPS TO REPRODUCE

Run cat /proc/$(ps aux |grep cloudstack-management|grep -v grep |awk '{print $2}')/limits
This will print the limit for the cloudstack-management process. The max process limit is not set to unlimited.

EXPECTED RESULTS
The max process limit is set to unlimited.
ACTUAL RESULTS
The max process limit is not set to unlimited.
@DaanHoogland
Copy link
Contributor

@vishesh92 , is this limited to RHEL7+ or is this specific to the use of systemd, i.e. loads of systems suffer from this?

@vishesh92
Copy link
Member Author

@vishesh92 , is this limited to RHEL7+ or is this specific to the use of systemd, i.e. loads of systems suffer from this?

I noticed this in RHEL. But it's probably specific to the use of systemd.

The fix should be simple for this.

@vishesh92
Copy link
Member Author

The fix will be to specify the limits in systemd configuration file.
Ref.: https://access.redhat.com/solutions/1257953

@DaanHoogland DaanHoogland added this to the 4.19.2.0 milestone Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants