dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

High memory (ram) usage for `dx serve`

Open toger5 opened this issue 1 year ago • 5 comments

dx serve requires a very large amount of memory (~10-20GB) Is this expected? Is there a simple way to reduce it?

toger5 avatar Oct 30 '24 11:10 toger5

I would also be curious why dx serve builds very quickly but then takes a long time until the webserver is up and running. What is happening between šŸ‘‘ Build done. -> > Local address: http://localhost:8080/

toger5 avatar Oct 31 '24 10:10 toger5

What version of the CLI are you using?

Is this from main or a 0.5 release?

jkelleyrtp avatar Oct 31 '24 18:10 jkelleyrtp

its version: dioxus 0.5.7

toger5 avatar Nov 01 '24 09:11 toger5

I would also be curious why dx serve builds very quickly but then takes a long time until the webserver is up and running. What is happening between šŸ‘‘ Build done. -> > Local address: http://localhost:8080/

I see this issue too. High ram usage pretty much makes my system unusable and locks up sometimes. Version 0.5.7

sjames avatar Nov 01 '24 15:11 sjames

Yikes 😱

Has anyone noticed this yet in v0.6? Since everyone here has mentioned v0.5 I’m hoping the latest alphas might have a fix

matthunz avatar Nov 11 '24 04:11 matthunz

Seems fixed in 0.6 - we don't hold onto logs indefinitely anymore and write all out to stdout or files.

jkelleyrtp avatar Jan 07 '25 19:01 jkelleyrtp