Skip to content

Commit

Permalink
Merge pull request #6 from codacy/stefanvacareanu7-patch-1
Browse files Browse the repository at this point in the history
Update entrypoint.sh
  • Loading branch information
stefanvacareanu7 authored Jan 31, 2025
2 parents 33a37ab + b7536e4 commit 57aba12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
max_ram=$(cat /sys/fs/cgroup/memory/memory.limit_in_bytes)
max_ram=$((max_ram / 1024 / 1024))
old_space_size=$((max_ram - 356))

max_ram=$((2048 / 1024 / 1024))
old_space_size=$((2048))

exec node --max-old-space-size="$old_space_size" --max-semi-space-size=32 --optimize_for_size --gc_interval=100 --v8-pool-size=0 --use-largepages=silent /dist/src/index.js
exec node --max-old-space-size="$old_space_size" --max-semi-space-size=32 --optimize_for_size --gc_interval=100 --v8-pool-size=0 --use-largepages=silent /dist/src/index.js

0 comments on commit 57aba12

Please sign in to comment.