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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Different open files ulimit for same user in a script task

Deleted user Aug 27, 2020

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
AUG Leaders

Atlassian Community Events