Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to modify Heap memory limit #1985

Open
pgh268400 opened this issue Sep 24, 2023 · 0 comments
Open

Unable to modify Heap memory limit #1985

pgh268400 opened this issue Sep 24, 2023 · 0 comments

Comments

@pgh268400
Copy link

Describe the bug
Literally I can't modify the limitations of heap memory.

    "dist:build": "cross-env NODE_ENV=production NODE_OPTIONS='--max-old-space-size=8192' electron-builder",
    "dist:build2": "cross-env NODE_ENV=production NODE_OPTIONS='--max-old-space-size=8192' vue-cli-service electron:build",

Attempted to release restrictions using the code failed. If I use more than about 2gb to 3gb of the heap area, the program will end immediately (Heap out of memory)

Expected behavior
I want to successfully lift the memory limit. It is not modified in the usual way. The Node.js runtime releases properly with the above-mentioned executable code, but the heap memory limit is not modified when using this cli service.

Environment (please complete the following information):

  • custom config for vcp-electron-builder:
  • (if possible) link to your repo:
  • terminal output from running vue info:
Environment Info:

 System:
   OS: Windows 10 10.0.19045
   CPU: (12) x64 AMD Ryzen 5 5600X 6-Core Processor
 Binaries:
   Node: 16.20.0 - C:\Program Files\nodejs\node.EXE
   Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
   npm: 8.19.4 - C:\Program Files\nodejs\npm.CMD
 Browsers:
   Chrome: Not Found
   Edge: Spartan (44.19041.1266.0), Chromium (117.0.2045.36)
 npmPackages:
   @vue/babel-helper-vue-jsx-merge-props:  1.4.0
   @vue/babel-helper-vue-transform-on:  1.0.2
   @vue/babel-plugin-jsx:  1.1.1
   @vue/babel-plugin-transform-vue-jsx:  1.4.0
   @vue/babel-preset-app:  5.0.8
   @vue/babel-preset-jsx:  1.4.0
   @vue/babel-sugar-composition-api-inject-h:  1.4.0
   @vue/babel-sugar-composition-api-render-instance:  1.4.0
   @vue/babel-sugar-functional-vue:  1.4.0
   @vue/babel-sugar-inject-h:  1.4.0
   @vue/babel-sugar-v-model:  1.4.0
   @vue/babel-sugar-v-on:  1.4.0
   @vue/cli-overlay:  5.0.8
   @vue/cli-plugin-babel: ~5.0.0 => 5.0.8
   @vue/cli-plugin-eslint: ~5.0.0 => 5.0.8
   @vue/cli-plugin-pwa: ~5.0.0 => 5.0.8
   @vue/cli-plugin-router: ~5.0.0 => 5.0.8
   @vue/cli-plugin-typescript: ~5.0.0 => 5.0.8
   @vue/cli-plugin-vuex: ~5.0.0 => 5.0.8
   @vue/cli-service: ~5.0.0 => 5.0.8
   @vue/cli-shared-utils:  5.0.8 (4.5.19)
   @vue/compiler-sfc:  2.7.14
   @vue/component-compiler-utils:  3.3.0
   @vue/eslint-config-typescript: ^9.1.0 => 9.1.0
   @vue/web-component-wrapper:  1.3.0
   ag-grid-vue: ^29.3.5 => 29.3.5
   eslint-plugin-vue: ^8.0.3 => 8.7.1
   typescript: ~4.5.5 => 4.5.5
   vue: ^2.6.14 => 2.7.14
   vue-class-component:  7.2.6
   vue-cli-plugin-electron-builder: ~2.1.1 => 2.1.1
   vue-cli-plugin-vuetify: ~2.5.8 => 2.5.8
   vue-eslint-parser:  8.3.0
   vue-property-decorator: ^8.0.0 => 8.0.0
   vue-router: ^3.5.1 => 3.6.5
   vue-style-loader:  4.1.3
   vue-template-compiler: ^2.6.14 => 2.7.14
   vue-template-es2015-compiler:  1.9.1
   vuetify: ^2.6.0 => 2.6.15
   vuetify-loader: ^1.7.0 => 1.9.2
   vuex: ^3.6.2 => 3.6.2
 npmGlobalPackages:
   @vue/cli: Not Found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant