Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fput_object on large file creates 3 unterminated processes #602

Closed
U039b opened this issue Dec 19, 2017 · 2 comments
Closed

fput_object on large file creates 3 unterminated processes #602

U039b opened this issue Dec 19, 2017 · 2 comments

Comments

@U039b
Copy link

U039b commented Dec 19, 2017

Summary

Uploading large file creates 3 unterminated Unix processes (in green on the following screenshot):
screenshot from 2017-12-19 16-23-34

Those processes are destroyed when their parent dies. I use Minio in Celery task and the Celery worker is always running. Having those unterminated processes causes a huge memory leak (approximately the size of the uploaded file).

System:

  • LSB Release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=17.04
DISTRIB_CODENAME=zesty
DISTRIB_DESCRIPTION="Ubuntu 17.04"
  • Kernel
Linux [edited] 4.10.0-42-generic #46-Ubuntu SMP Mon Dec 4 14:38:01 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
  • Python
Python 3.5.3
minio == 3.0.0.

To reproduce

Put a large file named payload1.apk in the same directory as the following script.

from minio import Minio
from minio.error import ResponseError
import time

client = Minio('localhost:9000',
               access_key='mykey',
               secret_key='mykey',
               secure = False,
               )
try:
    client.make_bucket('my-bucketname')
except Exception as err:
    print(err)
# Put an object 'my-objectname' with contents from 'my-filepath'
try:
    client.fput_object('my-bucketname', 'payload1.apk', 'payload1.apk')
except ResponseError as err:
    print(err)

time.sleep(200)

Execute this script and check created processes. You will see 3 extra processes.

@poornas poornas self-assigned this Dec 19, 2017
@nitisht nitisht added this to the Current milestone Dec 19, 2017
@harshavardhana
Copy link
Member

This bug can be closed as duplicate of #595

@nitisht
Copy link
Contributor

nitisht commented Dec 19, 2017

@U039b closing this as duplicate, please follow #595 for progress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants