DioxusLabs / dioxus

Fullstack app framework for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
21.64k stars 833 forks source link

High memory (ram) usage for `dx serve` #3144

Open toger5 opened 3 weeks ago

toger5 commented 3 weeks ago

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

toger5 commented 3 weeks ago

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/

jkelleyrtp commented 3 weeks ago

What version of the CLI are you using?

Is this from main or a 0.5 release?

toger5 commented 3 weeks ago

its version: dioxus 0.5.7

sjames commented 3 weeks ago

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

matthunz commented 2 weeks ago

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