Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

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:

  • An remote agent running as user "bambooagent"
  • Logged in via ssh and running
    whoami
    ulimit -nHS
    gives
    bambooagent
    999888
  • Running a script task with default settings
    whoami
    ulimit -nHS
    gives
    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

0 answers

Suggest an answer

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

Bamboo 7.2 is here!

I'm happy to announce that Bamboo 7.2 has been released and it’s overflowing with awesome new features. This will be the last major Server release before the launch of Bamboo DC. Bamboo logs We...

575 views 8 7
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