Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Documentation
Manage
Activity
Members
Labels
Plan
Issues
10
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TransFem.org
Documentation
Commits
8968b2e7
Commit
8968b2e7
authored
7 months ago
by
dakkar
Browse files
Options
Downloads
Plain Diff
Merge branch 'mention-ram-limits' into 'main'
Mention ram limits See merge request
!28
parents
738850bf
31c43dd6
No related branches found
Branches containing commit
No related tags found
1 merge request
!28
Mention ram limits
Pipeline
#922
passed with stages
Stage: lint
Stage: deploy
in 1 minute and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
content/en/docs/install/faqs.md
+28
-1
28 additions, 1 deletion
content/en/docs/install/faqs.md
with
28 additions
and
1 deletion
content/en/docs/install/faqs.md
+
28
−
1
View file @
8968b2e7
...
...
@@ -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
)
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment