Increase the JavaStack heap memory for protractor

前端 未结 2 1333
无人及你
无人及你 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

    0 讨论(0)
  • 2021-01-21 08:11
    set NODE_OPTIONS="--max-old-space-size=4096"
    

    (or)

    export NODE_OPTIONS="--max-old-space-size=4096"
    
    0 讨论(0)
提交回复
热议问题