Question
Is there a way to speed up wsems for small files?
Hey All,
I am running in to a bottle neck of the amount of files we want to want to send over the wsems server.
thingworx 9.7.0
wsems 5.5.0
Wsems config:
{
"ws_servers": [{
"host": "*ip of host*",
"port": portnumber
}],
"ws_connection": {
"socket_read_timeout": 1, <!-- tried with and without this line, no noticeable impact-->
"encryption": "ssl",
"verbose": true <!-- false seems to have a small positive impact-->
},
"certificates": {
"validate": false,
"disable_hostname_validation": true,<!-- i know this is bad, but we use wildcard certificates... https://www.ptc.com/en/support/article/CS389668 -->
"allow_self_signed": true,
"cert_chain": ""
},
"appKey": "*appKey*",
"auto_bind": [{
"name": "*name*",
"gateway": false
}],
"http_server": {
"host": "localhost",
"port": *port*,
"content_read_timeout": 2000,
"ssl": true,
"authenticate": false,
"certificate": "*certificate*",
"private_key": "*private_key*",
"passphrase": "*passphrase*"
},
"file": {
"buffer_size": 8192,<!--tried to change the buffer size to 128000, does not seem to have an affect-->
"max_file_size": 8000000000,
"virtual_dirs": [{
"ToThingworx": "*filepath*/Inbox"
}, {
"staging": "*filepath*/staging"
}],
"staging_dir": "staging"
},
"logger": {
"level": "ERROR",
"max_file_storage": 2000000,
"auto_flush": true
},
"data_security": {
"key_hash": "*key_hash*"
}
}
Here is a sample of the logs:
*****************
FILE TRANSFER NOTIFICATION:
Source: source:/ToThingworx/serialnr/2026-03-03_08-51-25-440_STAT.data/2025-03-27_08-51-25-440_STAT.data
Destination: TelematicsRepository:/ToThingworx/serialnr/2026-03-03_08-51-25-440_STAT.data/2025-03-27_08-51-25-440_STAT.data
Size: 117
StartTime: 2026-03-03 15:12:36,185
EndTime: 2026-03-03 15:12:36,423
Duration: 238 msec
User: Administrator
State: VALIDATED
Message: Transfer complete
Transfer ID: fe878f06-7164-4fad-a90c-7ec570ee80cf
*****************
[FORCE] 2026-03-03 15:12:36,567 SDK: FILE TRANSFER STARTED. File: /opt/ListenerDev/Data/Inbox/serialnr/2026-03-03_08-53-19-845_JOB.data, Mode: read
[FORCE] 2026-03-03 15:12:36,839 SDK: twFileManager_FinishFileTransfer: VALIDATED. File: /ToThingworx/serialnr/2026-03-03_08-53-19-845_JOB.data
[AUDIT] 2026-03-03 13:12:36,839 :
*****************
FILE TRANSFER NOTIFICATION:
Source: source:/ToThingworx/serialnr/2026-03-03_08-53-19-845_JOB.data/2026-03-03_08-53-19-845_JOB.data
Destination: TelematicsRepository:/ToThingworx/serialnr/2026-03-03_08-53-19-845_JOB.data/2026-03-03_08-53-19-845_JOB.data
Size: 975
StartTime: 2026-03-03 15:12:36,562
EndTime: 2026-03-03 15:12:36,836
Duration: 274 msec
User: Administrator
State: VALIDATED
Message: Transfer complete
Transfer ID: 915c40bb-3448-4ea5-9f34-aeb5fecabdcb
*****************
Thingworx and wsems are hosted in the same datacenter, when i ping between the servers there is a response around 1 ms.
Is there a way to reduce the time it takes to complete a file transfers for small files?

