Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プログラムのメモリ(RAM)使用量を100MBに制限する必要があります。シェルスクリプトを使用してそれらのバッチを実行していて、その方法を知りたいと思いました。クラスのソースからコンパイルし、timeコマンドを使用して実際の実行時間を保存しています。それぞれのメモリ使用量を100MBに制限する方法を知りたかっただけです。
で遊ぶことができますulimit -m。完全なリストを取得するには、入力help ulimitおよび/または入力してくださいulimit -a
ulimit -m
help ulimit
ulimit -a