Skip to content
Snippets Groups Projects
Commit 8968b2e7 authored by dakkar's avatar dakkar
Browse files

Merge branch 'mention-ram-limits' into 'main'

Mention ram limits

See merge request !28
parents 738850bf 31c43dd6
No related branches found
No related tags found
1 merge request!28Mention ram limits
Pipeline #922 passed with stages
in 1 minute and 20 seconds
......@@ -4,6 +4,31 @@ weight: 1300
toc: false
---
## My instance keeps crashing, saying "JavaScript heap out of memory", but I have plenty of RAM!
There are 2 problems here:
* `nodesjs` won't use more than a pre-determined amount of RAM (we can
change this)
* something causes Sharkey (and almost certainly Misskey) to randomly
allocate huge amounts of RAM and die (we would love to fix this, but
we haven't been able to figure out the cause, any help is
appreciated)
To tell `nodejs` to allocate up to (for example) 8GiB (8192MiB), you
can set the environment variable `NODE_OPTIONS`:
```bash
export NODE_OPTIONS='--max-old-space-size=8192'
```
in a startup script, or in your container options, or whatever works
for your particular setup. The important thing is that the `nodejs`
process (usually created via the `pnpm start` command) sees the
variable. Do *not* tell `nodejs` that it can allocate more RAM than
you have free!
## How do I enable note search?
You use the "roles" system. Log in as administrator, go to the
......@@ -28,7 +53,9 @@ First of all, you need to generate a pair of so-called "VAPID" keys.
One way to do that is, from your Sharkey directory (git clone, or
inside the Docker image):
./packages/backend/node_modules/.bin/web-push generate-vapid-keys
```bash
./packages/backend/node_modules/.bin/web-push generate-vapid-keys
```
Alternatively, you can use [an online
generator](https://www.stephane-quantin.com/en/tools/generators/vapid-keys).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment