"docs/source/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "900be804b0189fd7c01eb262fdf6d63b5689d9b7"
Unverified Commit 31afa426 authored by chicm-ms's avatar chicm-ms Committed by GitHub
Browse files

Increase the default heapsize of node to 4GB (#2125)

parent 444d2d7b
...@@ -99,7 +99,7 @@ def start_rest_server(port, platform, mode, config_file_name, foreground=False, ...@@ -99,7 +99,7 @@ def start_rest_server(port, platform, mode, config_file_name, foreground=False,
node_command = 'node' node_command = 'node'
if sys.platform == 'win32': if sys.platform == 'win32':
node_command = os.path.join(entry_dir[:-3], 'Scripts', 'node.exe') node_command = os.path.join(entry_dir[:-3], 'Scripts', 'node.exe')
cmds = [node_command, entry_file, '--port', str(port), '--mode', platform] cmds = [node_command, '--max-old-space-size=4096', entry_file, '--port', str(port), '--mode', platform]
if mode == 'view': if mode == 'view':
cmds += ['--start_mode', 'resume'] cmds += ['--start_mode', 'resume']
cmds += ['--readonly', 'true'] cmds += ['--readonly', 'true']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment