Rstan- Error: vector memory exhausted (limit reached?)

Do you run out of RAM as it is compiling or as it is sampling?