Hi,
I’m facing a very strange performance issue with large EML files and would like to know if anyone has seen something similar.
Environment
-
Seafile Pro 11.0 Docker deployment
-
Docker image:
-
Nginx reverse proxy
-
MariaDB 10.11
-
Memcached 1.6.18
-
Classic fileserver (not Go fileserver)
Controller log shows:
Config [fileserver, use_go_fileserver] not set, default is FALSE.
Current seafile.conf:
INI
[fileserver]
port = 8082
[database]
type = mysql
host = db
port = 3306
[notification]
enabled = false
Current seafevents.conf:
INI
[INDEX FILES]
external_es_server = true
enabled = true
index_office_pdf = true
Storage backend is GlusterFS.
Problem
Large EML files upload successfully but require a very long time to complete.
Small EML files upload normally.
The issue only appears with large EML files.
Test file
a.eml
Size: 21 MB
File characteristics:
multipart/mixed
multipart/alternative
Content-Transfer-Encoding: quoted-printable
Content-Transfer-Encoding: base64
Only one attachment:
Content-Disposition count = 1
No nested:
message/rfc822
parts.
Reproduced directly on the Seafile server
To eliminate Java, Windows, network and client-side issues, I executed uploads directly from the Seafile host using curl and a valid upload-link.
ZIP upload
I compressed the EML and added additional files until the ZIP size was approximately the same (around 20 MB).
Shell
time curl -k …
Result:
Plain Text
HTTP=200
TOTAL=3.33 seconds
EML upload
Shell
time curl -k …
Result:
Plain Text
HTTP=200
TOTAL=128.33 seconds
Same server. Same upload-api. Same destination folder. Same network. Same Seafile instance.
Only the file content differs.
Additional observations
Using curl verbose mode I can see:
HTTP/1.1 100 Continue
and later:
We are completely uploaded and fine
which suggests the entire file has already been transmitted.
The delay seems to happen after the upload body has been fully received and before the final response is returned.
The upload eventually succeeds and returns:
JSON
[
{
“name”: “a.eml”,
“id”: “…”,
“size”: 21292776
}
]
Troubleshooting already performed
No improvement after:
-
Disabling CrowdStrike Falcon
-
Disabling Cribl Edge
-
Setting:
Nginx Config
proxy_request_buffering off;
-
Uploading from the Seafile server itself using curl
-
Renaming the EML to
.bin
Results remain essentially the same.
Question
Has anyone observed Seafile Pro 11 spending a very long time processing large EML/MIME files after the upload has already completed?
Is there any known post-upload processing, MIME inspection, metadata extraction, indexing or other internal operation that could explain:
21 MB ZIP → 3 seconds
21 MB EML → 128 seconds
Thanks in advance for any ideas or pointers.
If there are any debug logs or internal tracing options I can enable to identify what Seafile is doing during those 128 seconds, please let me know.