Kibana JavaScript heap out of memory

Sorry for late reply can you also tell me how can I use it. Just by running command export NODE_OPTIONS=--max_old_space_size=4096 will work or do I need to add it in some file.