summaryrefslogtreecommitdiff
path: root/evergreen/functions/ulimit_info_collect.sh
blob: 9d4c8e13c99c94776e98045c4cb14c73277e25fe (plain)
1
2
3
4
5
6
7
8
9
10
11
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
. "$DIR/../prelude.sh"

if [ "$(uname)" != "Linux" ] && [ "$(uname)" != "Darwin" ]; then
  echo "===== Skipping ulimit dump, OS is: $(uname)."
else
  echo "===== Collecting soft limits:"
  ulimit -Sa
  echo "===== Collecting hard limits:"
  ulimit -Ha
fi