Skip to content

Commit

Permalink
set ulimit -SHn 1000000
Browse files Browse the repository at this point in the history
  • Loading branch information
twnesss committed Dec 9, 2023
1 parent 096be5f commit 1d22960
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion box/scripts/box.service
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ prepare_clash() {
box_run_bin() {
log Info "client-list: [ ${bin_list[*]} ]"
log Info "choose: ${bin_name}, start the service."
ulimit -SHn 65535
ulimit -SHn 1000000
# Use ulimit to limit the memory usage of a process to 200MB
# ulimit -v 200000 # Set the virtual memory limit in KB
case "${bin_name}" in
sing-box)
prepare_singbox
Expand Down

0 comments on commit 1d22960

Please sign in to comment.