You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I will close this ticket. Issue is not in swift itself. Issue is in docker container, which is based on linux kit. Issue is caching of FS. If I understand it created 512 bytes for every file you create. Looks like event for checking existence of file, it create same 512B buffer.
It was painful way to figure this out. Thanks to this article: https://codefresh.io/docker-tutorial/docker-memory-usage/
I hope it will help anyone who in future will have the same issue.
Attachment: Download
Environment
Running in docker using 5.3.2 bionic slim image. Here `printenv` result:
HOSTNAME=ea95b9e26193
SWIFT_WEBROOT=https://swift.org/builds/
SWIFT_VERSION=swift-5.3.2-RELEASE
SWIFT_PLATFORM=ubuntu18.04
PWD=/app
SWIFT_SIGNING_KEY=A62AE125BBBFBB96A6E042EC925CC1CCED3D1561
SWIFT_BRANCH=swift-5.3.2-release
HOME=/root
TERM=xterm
SHLVL=1
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
_=/usr/bin/printenv
result of ` cat /etc/issue`
Ubuntu 18.04.5 LTS \n \l
Additional Detail from JIRA
md5: aa2373e314ae1ce56856afcb4ac4360c
Issue Description:
If I run this code: no memory leak, app footprint and really small. 1.629MiB
But if I remove `isDirectory` parameter and run this -
Memory footpring become 93.61MiB .
This did cause a lot of issues in my app, where I did file logger for Vapor app.
I can reproduce it only on linux, on macOS no issue at all. Just in case I attached my main.swift file. Both codes are there. One is commented
The text was updated successfully, but these errors were encountered: