docs/DeveloperDocs/Debugging.md
https://github.com/wekan/wekan/issues?q=is%3Aissue+maximum+call+stack+is%3Aclosed
https://stackoverflow.com/questions/75869629/ios-websocket-close-and-error-events-not-firing
This can happen, when there is too much or incompatible code at browserside, for example at iOS Safari.
To fix it:
meteor run --exclude-archs web.browser.legacy,web.cordova --port 4000 --extra-packages bundle-visualizer --production 2>&1 | tee ../log.txt
meteor add packagename, where package name does not have character :something.js:301 . From there, scroll up a little, look at what function or what package dependency it is where it happened. If possible, try to move that package serverside, like at step 1. Or alternatively, look is it possible to remove or change to some other compatible dependency.Identify the core service your app is providing and make sure it is running independently. Put everything non-critical, including reporting, on some other system.
Look at scaling tips here, quote:
smeijer commented 25 days ago Just wanted to let know that I haven't experienced this issue anymore since I've replaced a lot of
meteor publicationswithapollo/graphql requests.The reactivity is thereby lost, but in my case a 30sec poll is also fine. On the places that I do require reactivity, I only
publisha singletimestamp. This timestamp is passed through toapollo, which triggers arefetchwhen the timestamp is changed.The discussion here has also been helpfull to improve performance here and there.
Collect a heap profile and then analyze it
Older article: How to Self Detect a Memory Leak in Node
Increase ulimit system wide to 100 000 in systemd config.
Wekan Javascript code has increaded fiber poolsize.
There is on-going 100% CPU usage Meteor issue and hopefully fixes to Node.js will land in Node v8.12 sometime. Node 8.12 is now released and official version included at Wekan.
Dockerfile, versions of Meteor.js, Node etc listed at beginning.
Included Meteor package versions
Added packages at package.json
Wekan:
Wekan for Sandstorm:
curl https://install.sandstorm.io | bash, select dev installwget https://releases.wekan.team/node
chmod +x node
mv node ~/projects/meteor-spk/meteor-spk-0.4.0/meteor-spk.deps/bin/
export PATH=$PATH:$HOME/projects/meteor-spk/meteor-spk-0.4.0source ~/.bashrccd wekan && meteor-spk devsudo sandstorm. Release scripts. Official releases require publishing key that only xet7 has.Docker:
git clone https://github.com/wekan/wekancd wekandocker-compose up -d --build