Aim-Educational / livestock-website

0 stars 0 forks source link

Abnormal memory usage #22

Closed BradleyChatha closed 5 years ago

BradleyChatha commented 5 years ago

I think it might just be C# being C#, as it caps around 330MB, but it kind of just sky rockets in memory usage fairly quickly for a reason I've yet to discover.

I have been relatively care free regarding memory though, so it's likely just the entire code base is inefficient.

BradleyChatha commented 5 years ago

Other than having to provide every critter image sometimes, it seems every request causes the server to often allocate ~13MB.

This might be related to the careless 'async/await' spam I need to tackle, mostly with AimDataMapper.

BradleyChatha commented 5 years ago

I've done a bit on getting memory usage down, but it seems that this memory usage is by design (for optimisation).

It's apparently supposed to stop hogging so much around the 300MB mark, so I'm just gonna stop worrying about it.

Especially since I've already fixed the critter images absorbing ungodly amounts.