How much there is free memory available on TRB140?
I have now TRB143 where I run python code (websockify to access old VNC server) and it consumes about ~15MB of ram. Otherwise than that I use only 4G connection and one Wireguard tunnel.
On TRB140, it should be around 45MB of RAM and around 85MB of Flash left for userspace after the device is booted and the default services are running. Enabling other services will reduce the amount of available RAM.