Skip to content

Commit 338d3b1

Browse files
author
Sebastian
committed
set hard limit with su
1 parent a4b434f commit 338d3b1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/main.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ jobs:
1414
cat /proc/sys/fs/file-max
1515
ulimit -Sn # Shows the soft limit
1616
ulimit -Hn # Shows the hard limit
17-
sudo ulimit -n 10485760
18-
sudo prlimit --pid $$ --nofile=10485760:10485760
19-
sudo sysctl -p
17+
sudo su
18+
ulimit -n 10485760
19+
ulimit -Hn 10485760
20+
prlimit --pid $$ --nofile=10485760:10485760
21+
exit
22+
sysctl -p
2023
cat /proc/sys/fs/file-max
2124
ulimit -Sn # Shows the soft limit
2225
ulimit -Hn # Shows the hard limit

0 commit comments

Comments
 (0)