- I am trying to run the Anvil server locally on Windows 11.
- When I turn off Wi-Fi and start the
anvil-app-server, it takes about 5–7 seconds to boot.
- However, when Wi-Fi is turned on, it takes around 10–13 seconds to boot
The Anvil app I’m using is the Todo app provided in the Anvil tutorials. I checked the app’s code, and nothing appears to be using the network. I also removed the external font link, tried to run another app i also disabled windows defender protections. but I’m still getting the same result.
What could be the reason for this? Is there anything that is trying to connect to the network inside the Anvil server?
Welcome to the Forum!
I can’t answer this with any certainty. But I am aware of at least one confounding factor: the OS and other programs.
When I turn on WiFi, on most of my Windows 10 computers, CPU usage slams up to 100%, as the OS and other background programs scramble to use the newly-available connection. This is without my starting any programs at all.
Naturally, with all that activity going on, the startup of any program slows down dramatically, as the OS tries to interleave the startup work with the other work already in progress.
To get decent readings, I have to wait for all that background activity to die down. And it never dies down completely.
This seems to be generally less pronounced with newer computers, probably due to having more RAM, faster storage, faster WiFi, and/or more CPU cores.
1 Like
Thank you, Mr. Phil.
I used Sysinternals ProcMon and NetMon tools and found that there were DNS requests occurring during server boot. but it is not originating from anvil server.
I eventually found the root cause of slowdown — I had installed the VirtualBox/Genymotion emulator, which automatically adds a VirtualBox Ethernet adapter.
That adapter was causing the slowdown. Anvil boots faster after I disabled it.
1 Like