nuxt: cannot allocate wasm memory in CPanel
Environment
- Operating System:
Linux - Internal Host System: CPanel
- Node Version:
v16.15.0 - Nuxt Version:
3.0.0-rc.12 - Nitro Version:
0.6.0 - Package Manager:
yarn@1.22.19 - Builder:
vite - User Config:
runtimeConfig,globalName,modules,build,vite,i18n - Runtime Modules:
@nuxtjs/i18n@8.0.0-beta.1,nuxt-lodash@2.3.0,@pinia/nuxt@0.4.3 - Build Modules:
-
Reproduction
Fresh Nuxt 3 project
Describe the bug
Running the Nuxt server using PM2 always gives a 500-page error and prints this error in logs, Note that the server can run using other tools like CPanel Supervisor
Additional context
No response
Logs
51|yarn run start-prod | [nuxt] [request error] [unhandled] [500] WebAssembly.instantiate(): Out of memory: wasm memory
51|yarn run start-prod | at node:internal/deps/cjs-module-lexer/dist/lexer:1:33593
51|yarn run start-prod | at async initCJSParse (node:internal/modules/esm/translators:64:5)
51|yarn run start-prod | at async ESMLoader.commonjsStrategy (node:internal/modules/esm/translators:156:18)
51|yarn run start-prod | [nuxt] [request error] [unhandled] [500] WebAssembly.instantiate(): Out of memory: wasm memory
51|yarn run start-prod | at node:internal/deps/cjs-module-lexer/dist/lexer:1:33593
51|yarn run start-prod | at async initCJSParse (node:internal/modules/esm/translators:64:5)
51|yarn run start-prod | at async ESMLoader.commonjsStrategy (node:internal/modules/esm/translators:156:18)
51|yarn run start-prod | [nuxt] [request error] [unhandled] [500] WebAssembly.instantiate(): Out of memory: wasm memory
51|yarn run start-prod | at node:internal/deps/cjs-module-lexer/dist/lexer:1:33593
51|yarn run start-prod | at async initCJSParse (node:internal/modules/esm/translators:64:5)
51|yarn run start-prod | at async ESMLoader.commonjsStrategy (node:internal/modules/esm/translators:156:18)
51|yarn run start-prod | [nuxt] [request error] [unhandled] [500] WebAssembly.instantiate(): Out of memory: wasm memory
51|yarn run start-prod | at node:internal/deps/cjs-module-lexer/dist/lexer:1:33593
51|yarn run start-prod | at async initCJSParse (node:internal/modules/esm/translators:64:5)
51|yarn run start-prod | at async ESMLoader.commonjsStrategy (node:internal/modules/esm/translators:156:18)
51|yarn run start-prod | [nuxt] [request error] [unhandled] [500] WebAssembly.instantiate(): Out of memory: wasm memory
51|yarn run start-prod | at node:internal/deps/cjs-module-lexer/dist/lexer:1:33593
51|yarn run start-prod | at async initCJSParse (node:internal/modules/esm/translators:64:5)
51|yarn run start-prod | at async ESMLoader.commonjsStrategy (node:internal/modules/esm/translators:156:18)
51|yarn run start-prod | [nuxt] [request error] [unhandled] [500] WebAssembly.instantiate(): Out of memory: wasm memory
51|yarn run start-prod | at node:internal/deps/cjs-module-lexer/dist/lexer:1:33593
51|yarn run start-prod | at async initCJSParse (node:internal/modules/esm/translators:64:5)
51|yarn run start-prod | at async ESMLoader.commonjsStrategy (node:internal/modules/esm/translators:156:18)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (8 by maintainers)
@danielroe I hope that might help, from a fresh nuxt project hosted on a CPanel VPS
Environment
Linuxv16.15.03.0.0-rc.120.6.0yarn@1.22.19vite---Reproduction
This project running script exists in ecosystem.config.js nuxt.zip pm2 command:
pm2 start ecosystem.config.jslogs