Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Different open files ulimit for same user in a script task


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:

  • An remote agent running as user "bambooagent"
  • Logged in via ssh and running
    ulimit -nHS
  • Running a script task with default settings
    ulimit -nHS
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
session optional
# end of pam-auth-update config
session required
cat /etc/sysctl.conf

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

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo Data Center 8.1 is now available

G’day Bamboo customers, Bamboo DC 8.1 is now available with it the following features and programs: SAML 2.0, OpenID Connect, and Crowd SSO In order to help admins with a simplified user manage...

172 views 0 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you