Unrated-Limited-Unlimited / ua-backend

4 stars 0 forks source link

[Server] Slow and or broken connection #17

Open Neelzee opened 6 months ago

Neelzee commented 6 months ago

Connection to the Server

Sometimes when connection to the server, either with SSH or RDC, the connection is cancelled. This is the case even when the server is up and running.

Possible causes

Veggissss commented 6 months ago

Fr*nce is mentioned, will be ignored

Neelzee commented 5 months ago

Update

Buff/Cache: Amount of RAM used for buffering and caching of data from disk or other I/O operations (in this case, 13342.5 MiB). This includes data that has been read from or written to disk and is being temporarily stored in RAM for faster access.

ChatGPT v3.5 - 2024

Image

For some reason *13G of RAM is in Buff/Cache. Unsure why but is probably the cause of all our problems.

Neelzee commented 5 months ago

Fixed

echo 3 > /proc/sys/vm/drop_caches

Flushes the cache.

Image

Neelzee commented 5 months ago

Update

The previous fix was a fix of the symptom, not the cause.

An hour later after the fix:

Image

Will look into a cause for this.

Neelzee commented 5 months ago

Update

After doing some more reading, it appears that, while Linux count this memory as used, it is still available to be freed when needed. (see this or this). This could mean that the previous fix did not do anything, but it feels like it was faster afterward.

buff/cache could be slow to use, ie. if some portion of memory is set aside for IO operations, it could take some cycles before another process can use it, and since we had such a large portion set aside, it could cause the slowness.