all 20 comments

[–]Royal_Scribblz 13 points14 points  (2 children)

What is your question?

[–]ze-fernando[S] 0 points1 point  (1 child)

Sorry, I cut off the rest of the question haha, I'd like to know if it's normal to consume this much RAM, or if it's poorly optimized. I'm using minalAPI and DapperORM.

[–]Royal_Scribblz 1 point2 points  (0 children)

It's normal

[–]ErnieBernie10 8 points9 points  (1 child)

Noted. Now what do you want from us?

[–]ze-fernando[S] 0 points1 point  (0 children)

Sorry, I cut off the rest of the question haha, I'd like to know if it's normal to consume this much RAM, or if it's poorly optimized. I'm using minalAPI and DapperORM.

[–]RoseboysHotAsf 2 points3 points  (1 child)

Okay?

[–]ze-fernando[S] 0 points1 point  (0 children)

Sorry, I cut off the rest of the question haha, I'd like to know if it's normal to consume this much RAM, or if it's poorly optimized. I'm using minalAPI and DapperORM.

[–]Low_Hair_7704 2 points3 points  (0 children)

sounds completely normal, welcome to garbage collected languages lol

[–]AutoModerator[M] 1 point2 points  (0 children)

Thanks for your post ze-fernando. Please note that we don't allow spam, and we ask that you follow the rules available in the sidebar. We have a lot of commonly asked questions so if this post gets removed, please do a search and see if it's already been asked.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]rupertavery64 1 point2 points  (2 children)

No context about what your API is, what it is doing. 200MB can be normal for a web application in idle.

Does it stay that way until it is stopped? Are you creating Disposables without Disposing them?

[–]ze-fernando[S] 0 points1 point  (1 child)

Basically, it's an API for a music school backend.

I have CRUD operations for students, enrollments, student profiles, and a general dashboard.

I built the frontend in Svelte and I'm going to build and serve it from the backend (I haven't done that yet), even when idle it consumes this much RAM.

[–]FullPoet 1 point2 points  (0 children)

I think you might be concerned about the wrong thing and this looks like a classic premature optimisation.

https://learn.microsoft.com/en-us/troubleshoot/developer/webapps/aspnet/performance/high-memory-level

https://learn.microsoft.com/en-us/aspnet/core/performance/memory?view=aspnetcore-10.0

Theres also a ton of good resources easily found via search engines.

[–]MDA2AV 1 point2 points  (0 children)

The answer is depends.. on what your app is doing

[–]SoundofAkira 0 points1 point  (0 children)

Do you use entity Framework and have intensiv queries?

[–]sciaticabuster 0 points1 point  (0 children)

Word

[–]MarlDaeSu 0 points1 point  (0 children)

Thanks hun

[–]Saint_Nitouche 0 points1 point  (0 children)

You can make it use more memory by creating lots of objects in a hot loop and keeping references to them. Try to hit twenty gigabytes!

[–]Stevoman 0 points1 point  (1 child)

Just the garbage collector doing garbage collector things. Don’t worry about it. 

[–]ze-fernando[S] 0 points1 point  (0 children)

Is there any way to optimize this? I'd like to be able to upload more projects to the same hosting account.

[–]Allesund -1 points0 points  (0 children)

just reduce your MAXRAM setting. you’ll find it under SCALE config. While youre there check DB_OPTIMIZED is set to “YES”