removed gc on info

This commit is contained in:
Josh Baker 2016-08-26 12:58:16 -07:00
parent c81883a629
commit 04e5912107
1 changed files with 0 additions and 3 deletions

View File

@ -139,9 +139,6 @@ func (c *Controller) writeInfoClients(w *bytes.Buffer) {
fmt.Fprintf(w, "connected_clients:%d\r\n", len(c.conns)) // Number of client connections (excluding connections from slaves)
}
func (c *Controller) writeInfoMemory(w *bytes.Buffer) {
c.mu.RUnlock()
runtime.GC()
c.mu.RLock()
var mem runtime.MemStats
runtime.ReadMemStats(&mem)
fmt.Fprintf(w, "used_memory:%d\r\n", mem.Alloc) // total number of bytes allocated by Redis using its allocator (either standard libc, jemalloc, or an alternative allocator such as tcmalloc