Comments (7)
I was able to lower memory consumption by setting a lower value for the GOGC
env variable. My knowledge of the Go garbage collection is not sufficient to know whether this is still an issue or intended behaviour.
from madmin-go.
@robbertvdg Alloc numbers is typically the total amount allocated, look at Heap In Use.
This looks like intended behavior, but you didn't share the PrintMemUsage()
, I cannot know.
from madmin-go.
Looking at the function, there is nothing there that can really be an issue.
from madmin-go.
The function:
func PrintMemUsage() {
var m run.MemStats
run.ReadMemStats(&m)
// For info on each, see: https://golang.org/pkg/runtime/#MemStats
fmt.Printf("Alloc = %v MiB", bToMb(m.Alloc))
fmt.Printf("\tTotalAlloc = %v MiB", bToMb(m.TotalAlloc))
fmt.Printf("\tSys = %v MiB", bToMb(m.Sys))
fmt.Printf("\tNumGC = %v\n", m.NumGC)
}
from madmin-go.
Including m.HeapInUse:
heap = 72 MiB Alloc = 69 MiB TotalAlloc = 159 MiB Sys = 140 MiB NumGC = 13
heap = 107 MiB Alloc = 103 MiB TotalAlloc = 230 MiB Sys = 207 MiB NumGC = 14
heap = 171 MiB Alloc = 167 MiB TotalAlloc = 294 MiB Sys = 273 MiB NumGC = 14
heap = 171 MiB Alloc = 167 MiB TotalAlloc = 294 MiB Sys = 273 MiB NumGC = 14
heap = 171 MiB Alloc = 167 MiB TotalAlloc = 294 MiB Sys = 273 MiB NumGC = 14
heap = 235 MiB Alloc = 231 MiB TotalAlloc = 358 MiB Sys = 339 MiB NumGC = 15
heap = 235 MiB Alloc = 231 MiB TotalAlloc = 358 MiB Sys = 339 MiB NumGC = 15
heap = 299 MiB Alloc = 295 MiB TotalAlloc = 422 MiB Sys = 405 MiB NumGC = 15
heap = 363 MiB Alloc = 359 MiB TotalAlloc = 486 MiB Sys = 471 MiB NumGC = 15
heap = 363 MiB Alloc = 359 MiB TotalAlloc = 486 MiB Sys = 471 MiB NumGC = 15
Cycle completed
heap = 363 MiB Alloc = 359 MiB TotalAlloc = 487 MiB Sys = 471 MiB NumGC = 15
heap = 427 MiB Alloc = 423 MiB TotalAlloc = 551 MiB Sys = 537 MiB NumGC = 15
heap = 427 MiB Alloc = 423 MiB TotalAlloc = 551 MiB Sys = 537 MiB NumGC = 15
heap = 427 MiB Alloc = 423 MiB TotalAlloc = 551 MiB Sys = 537 MiB NumGC = 15
heap = 427 MiB Alloc = 423 MiB TotalAlloc = 551 MiB Sys = 537 MiB NumGC = 15
heap = 428 MiB Alloc = 423 MiB TotalAlloc = 551 MiB Sys = 537 MiB NumGC = 15
heap = 428 MiB Alloc = 423 MiB TotalAlloc = 551 MiB Sys = 537 MiB NumGC = 15
heap = 428 MiB Alloc = 424 MiB TotalAlloc = 551 MiB Sys = 537 MiB NumGC = 15
heap = 428 MiB Alloc = 424 MiB TotalAlloc = 551 MiB Sys = 537 MiB NumGC = 15
heap = 428 MiB Alloc = 424 MiB TotalAlloc = 551 MiB Sys = 537 MiB NumGC = 15
from madmin-go.
Not really seeing any leak there.
Yes, the function could have pagination so a huge number of users don't take too much memory, but this is not really something that seems to worrysome.
from madmin-go.
Not really seeing any leak there.
Yes, the function could have pagination so a huge number of users don't take too much memory, but this is not really something that seems to worrysome.
Yeah this looks like normal and will be relinquished properly to Go runtime as needed.
from madmin-go.
Related Issues (19)
- Question: Generate user (session?) policy document
- AddUser() method name
- Unable to build with github.com/shirou/gopsutil/v3 v3.22.10 HOT 3
- readme code error HOT 2
- License clarification HOT 2
- Add new `replicate.source|target.path` to `mc batch generate` output
- Question: How to mc admin policy create using the sdk? HOT 1
- SetUserReq does not set user policy provided in then AddOrUpdateUserReq
- Group Management HOT 4
- Backward compatibility for ServiceStop HOT 4
- `AddGroup` and `DeleteGroup` group management functions missing HOT 2
- Get the specified metrics because all BucketMetrics are too large HOT 2
- A bug of Speedtest API HOT 1
- AddUser support set policy name HOT 1
- How to remove a policy from a user? HOT 2
- AddCannedPolicy does not accept Policy type HOT 1
- use madmin.ServerInfo to get the number of bucket reads and writes HOT 3
- How to use SetBucketQuota? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from madmin-go.