Compare commits

..
Author SHA1 Message Date
Thomas 07cb5a7561 Update run.sh 2026-05-06 23:34:39 +02:00
Thomas Camlong 77c9548111 perf: cap node heap size 2026-05-04 14:46:56 +02:00
Thomas Camlong 5ab1ddb9d9 perf: lazy load pages 2026-05-04 14:46:53 +02:00
3 changed files with 2 additions and 31 deletions

No files matched your search

-6
View File
@@ -1,9 +1,3 @@
## [1.60.1-beta.2](https://github.com/homarr-labs/homarr/compare/v1.60.1-beta.1...v1.60.1-beta.2) (2026-05-07)
### Performance Improvements
* (next branch) reduce idle memory on startup ([#5637](https://github.com/homarr-labs/homarr/issues/5637)) ([5ee84f8](https://github.com/homarr-labs/homarr/commit/5ee84f8cf464c308729281cb4db572950ba85a82))
## [1.60.1-beta.1](https://github.com/homarr-labs/homarr/compare/v1.60.0...v1.60.1-beta.1) (2026-05-01)
### Performance Improvements
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "homarr",
"version": "1.60.1-beta.2",
"version": "1.60.1-beta.1",
"private": true,
"scripts": {
"build": "cross-env CI=true turbo build",
+1 -24
View File
@@ -44,33 +44,10 @@ fi
node apps/nextjs/server.js &
NEXTJS_PID=$!
report_ram() {
INTERVAL=${RAM_REPORT_INTERVAL:-1800}
while true; do
sleep "$INTERVAL"
MEM_USED_BYTES=$(cat /sys/fs/cgroup/memory.current)
MEM_MAX_RAW=$(cat /sys/fs/cgroup/memory.max)
MEM_USED_MB=$((MEM_USED_BYTES / 1048576))
if [ "$MEM_MAX_RAW" = "max" ]; then
MEM_MAX_MB=0
else
MEM_MAX_MB=$((MEM_MAX_RAW / 1048576))
fi
wget -q --post-data="{\"api_key\":\"phc_pWxeD1hbl4ip02JYReX1Crjkt5DhB3dduigirHMCtFE\",\"event\":\"ram_usage\",\"distinct_id\":\"${HOSTNAME:-homarr}\",\"properties\":{\"ram_used_mb\":${MEM_USED_MB},\"ram_max_mb\":${MEM_MAX_MB},\"ram_used_bytes\":${MEM_USED_BYTES},\"\$process_person_profile\":false}}" \
--header="Content-Type: application/json" \
-O /dev/null https://hog.ajnart.dev/i/v0/e/ 2>/dev/null
echo "Reported RAM: ${MEM_USED_MB}MB / ${MEM_MAX_MB}MB"
done
}
report_ram &
REPORT_RAM_PID=$!
# Function to handle SIGTERM and shut down services
terminate() {
echo "Received SIGTERM. Shutting down..."
kill -TERM $REPORT_RAM_PID $NGINX_PID $NEXTJS_PID 2>/dev/null
kill -TERM $NGINX_PID $NEXTJS_PID 2>/dev/null
wait
# kill redis-server last because of logging of other services and only if $REDIS_PID is set
if [ -n "$REDIS_PID" ]; then