0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Misskeyでjemallocを使う(Debian系統)

Posted at

Misskeyでメモリアロケータをjemallocに変更する方法です

sudo apt install libjemalloc-dev libjemalloc2

でjemallocを入れて

sudo nano /etc/systemd/system/misskey.service

サービスのファイルを開いて

[Service]と[Install]の間に

Environment="LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2"

を入れる

[Unit]
Description=Misskey daemon

[Service]
Type=simple
User=misskey
ExecStart=/usr/bin/npm start
WorkingDirectory=/home/misskey/misskey
Environment="NODE_ENV=production"
TimeoutSec=60
StandardOutput=journal
StandardError=journal
SyslogIdentifier=misskey
Restart=always
Environment="LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2" #新しく書いたの

[Install]
WantedBy=multi-user.target

こういうふうになる

保存して

sudo systemctl daemon-reload
sudo systemctl restart misskey

こうしてデーモンの再読み込みしてから再起動をすればできます

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?