Skip to content

Frequent short-lived connections lead to OOM #1

@msakrejda

Description

@msakrejda

After a lot of activity like this:

May 23 18:32:54 ip-10-60-95-103 pg_logplexcollector: pg_logplexcollector 2013/05/23 18:32:54 client connects with identifier "c867499b-92f9-4ef3-8a08-95b089b17042"
May 23 18:32:54 ip-10-60-95-103 pg_logplexcollector: pg_logplexcollector 2013/05/23 18:32:54 Disconnect client: client disconnects
May 23 18:32:54 ip-10-60-95-103 pg_logplexcollector: pg_logplexcollector 2013/05/23 18:32:54 Disconnect client: client disconnects
May 23 18:32:54 ip-10-60-95-103 pg_logplexcollector: pg_logplexcollector 2013/05/23 18:32:54 client connects with identifier "c867499b-92f9-4ef3-8a08-95b089b17042"
May 23 18:32:54 ip-10-60-95-103 pg_logplexcollector: pg_logplexcollector 2013/05/23 18:32:54 Disconnect client: client disconnects
May 23 18:32:54 ip-10-60-95-103 pg_logplexcollector: pg_logplexcollector 2013/05/23 18:32:54 client connects with identifier "c867499b-92f9-4ef3-8a08-95b089b17042"
May 23 18:32:54 ip-10-60-95-103 pg_logplexcollector: pg_logplexcollector 2013/05/23 18:32:54 client connects with identifier "c867499b-92f9-4ef3-8a08-95b089b17042"
May 23 18:32:55 ip-10-60-95-103 pg_logplexcollector: pg_logplexcollector 2013/05/23 18:32:55 client connects with identifier "c867499b-92f9-4ef3-8a08-95b089b17042"
May 23 18:32:55 ip-10-60-95-103 pg_logplexcollector: pg_logplexcollector 2013/05/23 18:32:55 Disconnect client: client disconnects
May 23 18:32:55 ip-10-60-95-103 pg_logplexcollector: pg_logplexcollector 2013/05/23 18:32:55 Disconnect client: client disconnects
May 23 18:32:55 ip-10-60-95-103 pg_logplexcollector: pg_logplexcollector 2013/05/23 18:32:55 Disconnect client: client disconnects

I get this:

May 23 18:32:57 ip-10-60-95-103 pg_logplexcollector: throw: runtime: out of memory
May 23 18:32:57 ip-10-60-95-103 pg_logplexcollector: 
May 23 18:32:57 ip-10-60-95-103 pg_logplexcollector: goroutine 73591 [running]:
May 23 18:32:57 ip-10-60-95-103 pg_logplexcollector: reflect.unsafe_NewArray(0xf840079000, 0x521a78, 0x4, 0x2, 0x176, ...)
May 23 18:32:57 ip-10-60-95-103 pg_logplexcollector: #011/build/buildd/golang-1/src/pkg/runtime/iface.c:700 +0x67
May 23 18:32:57 ip-10-60-95-103 pg_logplexcollector: reflect.MakeSlice(0xf840079000, 0x591c08, 0x400000004, 0xf840079000, 0x591c08, ...)
May 23 18:32:57 ip-10-60-95-103 pg_logplexcollector: #011/usr/lib/go/src/pkg/reflect/value.go:1650 +0x16d
May 23 18:32:57 ip-10-60-95-103 pg_logplexcollector: encoding/asn1.parseField(0x591c08, 0xf856f8cdd0, 0x176, 0xf858bec7cc, 0x25000000027, ...)
May 23 18:32:57 ip-10-60-95-103 pg_logplexcollector: #011/usr/lib/go/src/pkg/encoding/asn1/asn1.go:640 +0x12e2
...

Perhaps the suicide exit to prevent bloat needs to happen faster? This is on a machine with just 2GB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions