Open link in a new tab

Content

Expand project menu

Memory (RAM) consumption by worker

I have just begun with the Openproject and started looking into plugin development. I have noticed that the Ruby server is consuming too much RAM and after a period of time, Ubuntu in VM got frozen and I have to restart it. In the process of finding a solution, I have found the line "worker: bundle exec rake jobs:work" in Procfile.dev file. After commenting this line, now everything is working fine. 

My question is, is this line of the statement required to work with a plugin? What is the use of this line?

Message actions

Hi,

this line is responsible for starting the background worker process for handling async tasks. It is a known issue that it can happen that memory leaks occur in development mode. Because of the lib we use for that.

https://github.com/collectiveidea/delayed_job/issues/823

As long as no async background tasks need to run while developing the plugin, it can be left out and don't need to be started.

Hope this helps.

Andreas

Message actions

Hi Ganpat,

I've added this known issue to the development guides: https://github.com/opf/openproject/commit/f43451efe1

Best

Oliver

Message actions

Hi Andreas and Oliver,

Thank you for your replies. I got it.

Thanks & Regards,

Ganpat Kalal