Hawthorn.2 native installation: heavy RAM consumption overcome?

55 views
Skip to first unread message

Andreas Gelever

unread,
Nov 26, 2018, 9:26:27 AM11/26/18
to General Open edX discussion
Hi!
I've installed the newest release of Open edX Hawthorn.2 on my developer PC running Ubuntu 16.04 LTE for testing purposes.
The problem is that the whole bunch of installed services and systems consumes all my available RAM of 8GB as well as swap of 3.7 GB.

Can I safely turn off some of them to release some memory space?

Sorry, I am not an expert in Open edX architecture (I come from Java community) with no idea why it needs ruby, rabbitMQ, memcached even Java and other tools (of course I am aware it is written in Python))). But particularly I noticed about 14 heavy python processes under www-data user in System monitor consuming 200MB each! And 8 heavy gunicorn processes under the same user consuming approx. the same amount of memory each. Screenshots are attached.

As this is not a production installation, and my objective is only to test some basic features like Studio and LTI interoperability,
I would like to disable unnecessary functions, just to release a bit of RAM on my PC for browser and my Java IDE.

If this is possible, please provide some instructions how to disable unnecessary services safely with the possibility to revert them back as needed.
Any suggestions and links to a bit deeper information than is placed in on-line documentation would be greatly appreciated!
Thank you.
Screenshot from 2018-11-22 15-13-22.png
Screenshot from 2018-11-22 15-15-48.png
Screenshot from 2018-11-22 15-24-06.png

Nguyễn Văn Tú

unread,
Nov 26, 2018, 9:51:06 AM11/26/18
to edx-...@googlegroups.com
For testing purposes, you can reduce the number of workers, which is safe and greatly reduce the amount of ram usage. The number of workers is set in /edx/app/edxapp/lms_gunicorn.py and /edx/app/edxapp/cms_gunicorn.py.

--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/37335784-95b9-4561-b32a-9efcdd42969c%40googlegroups.com.
Message has been deleted

Andrey Popov

unread,
Nov 27, 2018, 3:14:12 AM11/27/18
to General Open edX discussion
Maybe there is also a way to reduce the number of celery workers too?

Stan V

unread,
Nov 27, 2018, 6:42:10 PM11/27/18
to General Open edX discussion

Andreas Gelever

unread,
Nov 29, 2018, 6:32:02 AM11/29/18
to General Open edX discussion
Great thanks. I've made it done with 1 process per installation!
Reply all
Reply to author
Forward
0 new messages