owncloud / owncloud/ocis

Too much ram used

Open
#11,766 6 comments 0 reactions 0 assignees View on GitHub
Type:Bug
Dominant language
Go
Stars
2.1k
Forks
274
Avg merge
2d 1h
Merged PRs (30d)
103

Description

## Describe the bug
OCIS uses way too much ram for the actual usage (2 occasional users). It often makes my VPS unreacheable (even in SSH !).

## Steps to reproduce
1. Start OCIS
2. Wait 1-2 days
3. RAM usage through the roof

## Expected behavior
I guess no more than 2-3GB of RAM used at most for my use.

## Actual behavior

Image

## Setup
Please describe how you started the server and provide a list of relevant environment variables or configuration files.

```console
OCIS_LOG_LEVEL: info
OCIS_LOG_COLOR: "true"
GOMEMLIMIT: "999MiB"
NATS_NATS_HOST: localhost
NATS_NATS_STORE_DIR: /var/lib/ocis/nats
OCIS_SERVICE_ACCOUNT_ID: "OwO"
OCIS_SERVICE_ACCOUNT_SECRET: "UwU"
OCIS_ASYNC_UPLOADS: "false"
OCIS_EXCLUDE_RUN_SERVICES: "activitylog"
OCIS_FRONTEND_UPLOAD_MAX_CHUNK_SIZE: "10000000"
STORAGE_USERS_OCIS_MAX_CONCURRENCY: "4"
THUMBNAILS_MAX_CONCURRENT_REQUESTS: "5"
THUMBNAILS_MAX_INPUT_IMAGE_FILE_SIZE: "45MB"
ANTIVIRUS_MAX_SCAN_SIZE: "0.001MB"
STORAGE_USERS_UPLOAD_EXPIRATION: "56800"
```

## Additional context
My setup uses S3NG as its backend (I use Backblaze B2 Storage). The setup runs behing Nginx and Cloudflare Tunnels and is Dockerized. I'm on the latest version at the moment (7.3.0).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.