Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Memory usage of the server increases when running the greeter_server.py example #11887

@atesop

Description

@atesop

Hi all,
I am new to grpc. Then I just runned the demo of helloword server, the resident memory usage of server growed and growed.
I tested it on Linux, installed grpc by pip, grpcio==1.4.0, grpcio-tools==1.4.0, both python 2.7.12 and 3.6.1.

I just add one line in greeter_client.py, then the codes just like below:

def run():
  channel = grpc.insecure_channel('localhost:50051')
  stub = helloworld_pb2_grpc.GreeterStub(channel)
  for i in range(100000):
    response = stub.SayHello(helloworld_pb2.HelloRequest(name='you'))
    print("Greeter client received: " + response.message)

the ps aux result:

20170720203115

I would appreciate any further information on this, thanks.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions