Problem description:
A basic replit with Vite and JS runs out of memory upon creation
Expected behavior:
To work without any issues
Actual behavior:
It runs out of resources
Steps to reproduce:
Create a new Replit selecting “Vite Vanilla” as the template. Upon creation CPU usage is at limit already and when clicking run RAM increase really fast (Not always hitting the limit, but very close to it) Also, doing Control + F5 to force refresh the whole page takes the CPU usage to the limit again.
After that it looks like it works more stable on future starts.
The RAM/CPU counters can be fairly inaccurate and you shouldn’t face any problems regarding the speed of your Repl. These counters also take into account code intelligence and background processes, which vary from language to language.
If you are running out of RAM/CPU power, you could choose to upgrade your current plan or boost your Repl. Of course, it’s entirely optional.
If this answers your question, you can mark this post as a Solution.