#Rust Rocket app high memory usage with no requests

14 messages · Page 1 of 1 (latest)

valid wyvern
#

Hey all,

I'm new to rust, creating my first rust app. After deploying my app for the first time, it began with 2.4gb of ram used which has slowly been falling. Currently the app just has a rocket framework to recieve requests, but I haven't been sending any. Any ideas?

Project ID: 97a7ae0e-5e14-49ea-b3a7-09a036763180

Monorepo (ace is the app): https://github.com/ItsGoldeneyes/rusty-bs

Graph is over a time period of just over 1 day. Started at 2.4gb, now at 450mb

#

deploying from the included docker image

valid wyvern
#

Redeployed an hour ago and I'm seeing identical behaviour

valid wyvern
#

bump

violet rampart
#

basic question, are you using --release

#

also maybe you can try axum, it's what i use

#

9mb ram usage for a server that just serves some files

#

adding routes to that wouldn't really matter so

#

I will try on my machine your code tomorrow

#

also are you having this problem on your machine or just a railway thing?

#

or maybe when you run your app with docker?

valid wyvern
#

I figured it out, thanks

#

my issue was that I wasn't cargo building before cargo runing

#

Like I said, brand new to rust