# How to restrict memory in jupyter hub in amazon EMR

**URL:** <https://discourse.jupyter.org/t/how-to-restrict-memory-in-jupyter-hub-in-amazon-emr/7881>\
**Category:** JupyterHub\
**Tags:** help-wanted\
**Created:** [February 10, 2021, 12:33pm UTC](https://discourse.jupyter.org/t/how-to-restrict-memory-in-jupyter-hub-in-amazon-emr/7881 "2021-02-10T12:33:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gautham](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/gautham/32/4030_2.png) [@Gautham](https://discourse.jupyter.org/u/Gautham)\
**Post date:** [February 10, 2021, 12:33pm UTC](https://discourse.jupyter.org/t/how-to-restrict-memory-in-jupyter-hub-in-amazon-emr/7881/1 "2021-02-10T12:33:47Z")

</div>

Hello All,

I am new in jupyterhub.  
How to restrict memory in jupyter hub in amazon EMR for each user  
I am not able to locate config.yaml file as it is installed through docker

---

<div class="post-metadata">

**Author:** ![markperri](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/markperri/32/2187_2.png) [@markperri](https://discourse.jupyter.org/u/markperri)\
**Post date:** [February 14, 2021, 2:57am UTC](https://discourse.jupyter.org/t/how-to-restrict-memory-in-jupyter-hub-in-amazon-emr/7881/2 "2021-02-14T02:57:04Z")

</div>

I’m not sure what spawner you’re using, but try:  
`c.Spawner.mem_limit = '1.0G'`

Thanks,  
Mark
