Skip to content

Redis memory leak. #2119

Closed
Closed
@robertnishihara

Description

@robertnishihara

To reproduce the problem, do the following

import ray
import numpy as np

ray.init()

@ray.remote
def f(x):
    return 1

x = np.zeros(1000)

for _ in range(100000): f.remote(x)

Now the non-primary Redis shard should be using a decent amount of memory. Check how much it is using with ps aux | grep "redis-server ".

Attach a Redis client to it with

redis-cli -p <PORT>

You can get the port from the output of ray.init() or from ps aux | grep "redis-server ".

In the Redis client, do FLUSHALL to flush all of the keys.

Check how much memory the Redis server is using. It's still using the same amount.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that is supposed to be working; but isn't

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions