Heya,
I've observed that printing the ulimit in a script task has a different outcome than with the same user via ssh. My setup is:
whoamigives
ulimit -nHS
bambooagent
999888
whoamigives
ulimit -nHS
bambooagent
4096
cat /etc/security/limits.conf
#<domain> <type> <item> <value>
#
#* soft core 0
* hard core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#ftp - chroot /ftp
#@student - maxlogins 4
# End of file
* hard nofile 999888
* soft nofile 999888
root hard nofile 999888
root soft nofile 999888
cat /etc/pam.d/common-session
...
# and here are more per-package modules (the "Additional" block)
session required pam_unix.so
session optional pam_systemd.so
# end of pam-auth-update config
session required pam_limits.so
cat /etc/sysctl.conf
...
net.ipv4.route.flush=1
net.ipv6.route.flush=1
fs.file-max = 2097152
Including the shebang #!/bin/bash didn't help. This is strange since I would expect the global, user-wide file limits.
Bamboo Master Version: 6.10.6 build 61011 - 20 Apr 20