-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Processes are leaking, elevated memory usage #173
Processes are leaking, elevated memory usage #173
Comments
I don’t control how sass-embedded is used in discourse. Can you reproduce this standalone? Note, there are two ways to run:
|
Also, can you please run |
Thanks for the quick reply. Not sure if this is helpful, but Discourse uses the recommended method in the https://github.com/ntkme/sassc-embedded-shim-ruby repo, i.e. https://github.com/discourse/discourse/blob/main/lib/stylesheet/compiler.rb#L51-L63 Note that in the public repo, we're using the |
It's not recommended. The recommended method is to directly use |
Ok, I'll try to repro this directly without the shim and report back. |
@pmusaraj Can you please provide a One suspicion I have is that I see discourse runs puma, so it might be that puma is spinning multiple ruby processes and each ruby process is running a dart-sass compiler. |
This should have been address in main branch:
Overall using a persisted compiler would perform better than restarting the compiler for every single compilation. Therefore I would like to revert sass-contrib/sassc-embedded-shim-ruby#68 once these changes are out. |
Just wanted to follow up and say that we just switched Discourse to using sassc-embedded and the updated version of this repo, in initial testing we no longer see leaks. Appreciate the quick and excellent work here @ntkme! Thanks! |
@pmusaraj Can you please have a try with |
@ntkme, we've rolled out |
Hi there,
We run
sass-embedded
on multiple servers and are noticing that the processes are leaking, causing containers to use a lot of RAM.On our servers, we've observed this behaviour with versions 1.66.1 and 1.69.2. I can also reproduce the issue locally with version 1.69.5:
In theory, should there be just one dart-sass process running?
The text was updated successfully, but these errors were encountered: