# I run a stan model with Rstan and i get this Error : cannot allocate vector of size xxx Mb

**URL:** <https://discourse.mc-stan.org/t/i-run-a-stan-model-with-rstan-and-i-get-this-error-cannot-allocate-vector-of-size-xxx-mb/20667>\
**Category:** Modeling\
**Created:** [February 7, 2021, 6:36pm UTC](https://discourse.mc-stan.org/t/i-run-a-stan-model-with-rstan-and-i-get-this-error-cannot-allocate-vector-of-size-xxx-mb/20667 "2021-02-07T18:36:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ka\_3](https://avatars.discourse-cdn.com/v4/letter/k/8e8cbc/32.png) [@ka\_3](https://discourse.mc-stan.org/u/ka_3)\
**Post date:** [February 7, 2021, 6:36pm UTC](https://discourse.mc-stan.org/t/i-run-a-stan-model-with-rstan-and-i-get-this-error-cannot-allocate-vector-of-size-xxx-mb/20667/1 "2021-02-07T18:36:58Z")

</div>

Please help

---

<div class="post-metadata">

**Author:** ![bbbales2](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bbbales2/32/77_2.png) [@bbbales2](https://discourse.mc-stan.org/u/bbbales2)\
**Post date:** [February 8, 2021, 4:53pm UTC](https://discourse.mc-stan.org/t/i-run-a-stan-model-with-rstan-and-i-get-this-error-cannot-allocate-vector-of-size-xxx-mb/20667/2 "2021-02-08T16:53:42Z")

</div>

Errors like this come up from time to time, but would need more information to point you in the right direction ([Error: cannot allocate vector of size 17348.7 Gb](https://discourse.mc-stan.org/t/error-cannot-allocate-vector-of-size-17348-7-gb/14615))
