How to run a dart program with large memory?

I am trying to read a very large file (more than 1G) in a dart program, but this excludes an exception from memory.

How to configure the command line to make it work with more memory? As well as:

 -Xmx1G

in java.

+4
source share
1 answer

At the VM has a flag to increase the heap size: --old_gen_heap_size. For example, --old_gen_heap_size=1204set it to 1 GB.

This flag is one of the flags of developers and is not considered stable. This may change or disappear.

+7
source

Source: https://habr.com/ru/post/1524991/


All Articles