Skip to content

Commit 4cc1ab7

Browse files
authored
Memos: Increase RAM Usage and max space (#3072)
1 parent 66c4d0e commit 4cc1ab7

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

ct/memos.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/m
88
APP="Memos"
99
var_tags="notes"
1010
var_cpu="2"
11-
var_ram="2048"
11+
var_ram="3072"
1212
var_disk="7"
1313
var_os="debian"
1414
var_version="12"
@@ -36,6 +36,7 @@ function update_script() {
3636
exit
3737
fi
3838
systemctl stop memos
39+
export NODE_OPTIONS="--max-old-space-size=2048"
3940
cd /opt/memos/web
4041
$STD pnpm i --frozen-lockfile
4142
$STD pnpm build

install/memos-install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ msg_ok "Installed Golang"
5252

5353
msg_info "Installing Memos (Patience)"
5454
mkdir -p /opt/memos_data
55-
$STD sudo git clone https://github.com/usememos/memos.git /opt/memos
55+
export NODE_OPTIONS="--max-old-space-size=2048"
56+
$STD git clone https://github.com/usememos/memos.git /opt/memos
5657
cd /opt/memos/web
5758
$STD pnpm i --frozen-lockfile
5859
$STD pnpm build

json/memos.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"script": "ct/memos.sh",
2020
"resources": {
2121
"cpu": 2,
22-
"ram": 2048,
22+
"ram": 3072,
2323
"hdd": 7,
2424
"os": "debian",
2525
"version": "12"
@@ -31,4 +31,4 @@
3131
"password": null
3232
},
3333
"notes": []
34-
}
34+
}

0 commit comments

Comments
 (0)