Add more stack size.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2024-11-02 18:34:51 +02:00
parent 282a5b30f9
commit 324be07b85
6 changed files with 7 additions and 7 deletions

View file

@ -272,4 +272,4 @@ WORKDIR /home/wekan/app
# #
# CMD ["node", "/build/main.js"] # CMD ["node", "/build/main.js"]
# CMD ["bash", "-c", "ulimit -s 65500; exec node --stack-size=65500 /build/main.js"] # CMD ["bash", "-c", "ulimit -s 65500; exec node --stack-size=65500 /build/main.js"]
CMD ["bash", "-c", "ulimit -s 65500; exec node /build/main.js"] CMD ["bash", "-c", "ulimit -s 65500; exec node --stack-size=65500 --max-old-space-size=8192 /build/main.js"]

View file

@ -88,5 +88,5 @@ RUN \
EXPOSE $PORT EXPOSE $PORT
USER wekan USER wekan
CMD ["bash", "-c", "ulimit -s 65500; exec node /home/wekan/bundle/main.js"] CMD ["bash", "-c", "ulimit -s 65500; exec node --stack-size=65500 --max-old-space-size=8192 /home/wekan/bundle/main.js"]

View file

@ -411,6 +411,6 @@
#export WAIT_SPINNER=Bounce #export WAIT_SPINNER=Bounce
#--------------------------------------------------------------------- #---------------------------------------------------------------------
node main.js & >> ~/repos/wekan.log node --stack-size=65500 --max-old-space-size=8192 main.js & >> ~/repos/wekan.log
cd ~/repos cd ~/repos
#done #done

View file

@ -36,4 +36,4 @@ cd $APPLICATION_DIRECTORY
# bash -c "ulimit -s 65500; exec node --stack-size=65500 main.js" # bash -c "ulimit -s 65500; exec node --stack-size=65500 main.js"
#--------------------------------------------------------------------- #---------------------------------------------------------------------
#bash -c "ulimit -s 65500; exec $NODE_PATH/node --stack-size=65500 $APPLICATION_START" #bash -c "ulimit -s 65500; exec $NODE_PATH/node --stack-size=65500 $APPLICATION_START"
bash -c "ulimit -s 65500; exec $NODE_PATH/node $APPLICATION_START" bash -c "ulimit -s 65500; exec $NODE_PATH/node --stack-size=65500 --max-old-space-size=8192 $APPLICATION_START"

View file

@ -20,9 +20,9 @@ echo "starting the wekan service..."
#--------------------------------------------------------------------- #---------------------------------------------------------------------
# https://github.com/wekan/wekan/issues/3585#issuecomment-1021522132 # https://github.com/wekan/wekan/issues/3585#issuecomment-1021522132
# Add more Node heap: # Add more Node heap:
export NODE_OPTIONS="--max_old_space_size=4096" #export NODE_OPTIONS="--max_old_space_size=4096"
# Add more stack: # Add more stack:
#bash -c "ulimit -s 65500; exec node --stack-size=65500 main.js" #bash -c "ulimit -s 65500; exec node --stack-size=65500 main.js"
bash -c "ulimit -s 65500; exec node main.js" bash -c "ulimit -s 65500; exec --stack-size=65500 --max-old-space-size=8192 node main.js"
#--------------------------------------------------------------------- #---------------------------------------------------------------------
#node main.js #node main.js

View file

@ -555,7 +555,7 @@
#bash -c "ulimit -s 65500; exec node --stack-size=65500 --trace-deprecation main.js" #bash -c "ulimit -s 65500; exec node --stack-size=65500 --trace-deprecation main.js"
#bash -c "ulimit -s 65500; exec node --stack-size=65500 main.js" #bash -c "ulimit -s 65500; exec node --stack-size=65500 main.js"
#-------------------- OPTIONAL SETTINGS END ---------------------- #-------------------- OPTIONAL SETTINGS END ----------------------
bash -c "ulimit -s 65500; exec node main.js" bash -c "ulimit -s 65500; exec node --stack-size=65500 --max-old-space-size=8192 main.js"
#node main.js #node main.js
#--------------------------------------------------------------------- #---------------------------------------------------------------------
# & >> ../../wekan.log # & >> ../../wekan.log