[GH-ISSUE #213] fake-gcs-server eats all memory #38

Closed
opened 2026-03-03 12:07:40 +03:00 by kerem · 5 comments
Owner

Originally created by @pitrou on GitHub (Apr 9, 2020).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/213

I've downloaded the v1.18.1 binaries version for Linux and launched the server like this:

$ fake-gcs-server -filesystem-root /home/antoine/t -scheme http

Without even issuing a single request, fake-gcs-server started allocating a ton of memory and eating CPU, making my computer crawl:

  PID UTIL.     PR  NI    VIRT    RES    SHR S  %CPU %MEM    TEMPS+ COM.
31933 antoine   20   0 52,306g 0,044t      0 S  24,4 95,5   1:48.97 fake-gcs-server

I had to kill the process.

Originally created by @pitrou on GitHub (Apr 9, 2020). Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/213 I've downloaded the v1.18.1 binaries version for Linux and launched the server like this: ``` $ fake-gcs-server -filesystem-root /home/antoine/t -scheme http ``` Without even issuing a single request, fake-gcs-server started allocating a ton of memory and eating CPU, making my computer crawl: ``` PID UTIL. PR NI VIRT RES SHR S %CPU %MEM TEMPS+ COM. 31933 antoine 20 0 52,306g 0,044t 0 S 24,4 95,5 1:48.97 fake-gcs-server ``` I had to kill the process.
kerem closed this issue 2026-03-03 12:07:40 +03:00
Author
Owner

@pitrou commented on GitHub (Apr 9, 2020):

Uh, looks like it's because it loads data from /data by default... and /data is a 300GB file tree on my computer :-/

<!-- gh-comment-id:611640211 --> @pitrou commented on GitHub (Apr 9, 2020): Uh, looks like it's because it loads data from `/data` by default... and `/data` is a 300GB file tree on my computer :-/
Author
Owner

@pitrou commented on GitHub (Apr 9, 2020):

Closing as presumably not a bug...

<!-- gh-comment-id:611640315 --> @pitrou commented on GitHub (Apr 9, 2020): Closing as presumably not a bug...
Author
Owner

@fsouza commented on GitHub (Apr 9, 2020):

Hi @pitrou, thanks for opening this. Perhaps we can disable pre-loading from any dir unless explicitly requested?

Will reopen to track.

<!-- gh-comment-id:611647690 --> @fsouza commented on GitHub (Apr 9, 2020): Hi @pitrou, thanks for opening this. Perhaps we can disable pre-loading from any dir unless explicitly requested? Will reopen to track.
Author
Owner

@pitrou commented on GitHub (Apr 10, 2020):

Thanks for the quick response :-)

<!-- gh-comment-id:611913992 --> @pitrou commented on GitHub (Apr 10, 2020): Thanks for the quick response :-)
Author
Owner

@nhoughto commented on GitHub (Apr 20, 2020):

FYI This broke my build =) We were assuming not specified meant /data and were volume mounting into that path. I've fixed it now by specifying it 👍

<!-- gh-comment-id:616274841 --> @nhoughto commented on GitHub (Apr 20, 2020): FYI This broke my build =) We were assuming not specified meant /data and were volume mounting into that path. I've fixed it now by specifying it :+1:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-gcs-server#38
No description provided.