Bad performance after upgrade to snap

Hi,

we have upgrade our old rocketchat server from 4.1 → 4.7 → 5.7 → 6.4.
We used a fresh installed server (ubuntu 22.04), installed rocket chat
using snap on the system and restored the backup. Everything went well.
We updated step by step and checked the result → everything working!
But the system is now running very slow. Whenever you try to download some
pdf or xlsx it takes minutes.
Using the app on a handy downloading is impossible!

So why is the new version running as snap package so much slower ?
Where can we look for some improvement ?

Any help is welcome!

Bye,
Peer

Server Setup Information

  • Version of Rocket.Chat Server: 6.4.2
  • Operating System: ubuntu 22.04
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: v14.21.2
  • MongoDB Version: 5.0.15
  • Proxy: caddy
  • Firewalls involved: none

Any additional Information

VM: 8 cores, 16GB RAM, full ssd (3 devices), LVM

Load below 0.2 (backup → 1)

mongostat

insert query update delete getmore command dirty  used flushes vsize   res qrw arw net_in net_out conn set repl                time
    *0    *0      1     *0       1     2|0  0.0% 79.7%       0 15.5G 13.8G 0|0 0|0  1.43k   58.8k   31 rs0  SLV Oct 20 10:22:18.450
    *0    *0     *0     *0       1     5|0  0.0% 79.7%       0 15.5G 13.8G 0|0 0|0  2.42k   58.8k   31 rs0  SLV Oct 20 10:22:19.447
    *0    *0     *0     *0       0     2|0  0.0% 79.7%       0 15.5G 13.8G 0|0 0|0  1.31k   58.8k   31 rs0  SLV Oct 20 10:22:20.449
    *0     2      2     *0       2     3|0  0.0% 79.7%       0 15.5G 13.8G 0|0 0|0  3.25k   60.5k   31 rs0  SLV Oct 20 10:22:21.448
    *0    *0     *0     *0       1     2|0  0.0% 79.7%       0 15.5G 13.8G 0|0 0|0  1.11k   58.0k   31 rs0  SLV Oct 20 10:22:22.448
    *0    *0     *0     *0       0     2|0  0.0% 79.7%       0 15.5G 13.8G 0|0 0|0  1.64k   58.2k   31 rs0  SLV Oct 20 10:22:23.449

So we have tried to extend the memory (32G now) → no effect.
In the log the following error occurred:

Oct 20 09:58:00 chat rocketchat-server.rocketchat-server[1697]: Error: ENOENT: no such file or directory, stat '/tmp/zipFiles/8dac0077-f6cd-437a-b863-f11dabace02d.zip'
Oct 20 09:58:00 chat rocketchat-server.rocketchat-server[1697]:  => awaited here:
Oct 20 09:58:00 chat rocketchat-server.rocketchat-server[1697]:     at Function.Promise.await (/snap/rocketchat-server/1581/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)
Oct 20 09:58:00 chat rocketchat-server.rocketchat-server[1697]:     at server/lib/dataExport/uploadZipFile.ts:11:16
Oct 20 09:58:00 chat rocketchat-server.rocketchat-server[1697]:     at /snap/rocketchat-server/1581/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
Oct 20 09:58:00 chat rocketchat-server.rocketchat-server[1697]:  => awaited here:
Oct 20 09:58:00 chat rocketchat-server.rocketchat-server[1697]:     at Function.Promise.await (/snap/rocketchat-server/1581/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)
Oct 20 09:58:00 chat rocketchat-server.rocketchat-server[1697]:     at server/lib/dataExport/processDataDownloads.ts:232:25
Oct 20 09:58:00 chat rocketchat-server.rocketchat-server[1697]:     at /snap/rocketchat-server/1581/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40 {
Oct 20 09:58:00 chat rocketchat-server.rocketchat-server[1697]:   errno: -2,
Oct 20 09:58:00 chat rocketchat-server.rocketchat-server[1697]:   code: 'ENOENT',
Oct 20 09:58:00 chat rocketchat-server.rocketchat-server[1697]:   syscall: 'stat',
Oct 20 09:58:00 chat rocketchat-server.rocketchat-server[1697]:   path: '/tmp/zipFiles/8dac0077-f6cd-437a-b863-f11dabace02d.zip'
Oct 20 09:58:00 chat rocketchat-server.rocketchat-server[1697]: }

There is no folder created below /tmp.
ll -d /tmp
drwxrwxrwt 13 root root 4096 Oct 20 09:26 /tmp/
or is it a relative path within snapper

Solution