0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-24 08:30:56 +01:00
mongodb/evergreen/functions/ulimit_info_collect.sh

12 lines
324 B
Bash
Executable File

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