Increase the JavaStack heap memory for protractor

前端 未结 2 1334
无人及你
无人及你 2021-01-21 07:25

I am running test cases using protractor, but sometimes I\'m facing error

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memo

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-21 07:55

    If your Nodejs is v8.0.0 or later, you can set it by Environmen Variable: NODE_OPTIONS

    For linux:

    NODE_OPTIONS="--max-old-space-size=512"

    For windows:

    More detail look at here

提交回复
热议问题