Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
07cb5a7561 | ||
|
|
77c9548111 | ||
|
|
5ab1ddb9d9 |
No files matched your search
@@ -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)
|
## [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
|
### Performance Improvements
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "homarr",
|
"name": "homarr",
|
||||||
"version": "1.60.1-beta.2",
|
"version": "1.60.1-beta.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "cross-env CI=true turbo build",
|
"build": "cross-env CI=true turbo build",
|
||||||
|
|||||||
+1
-24
@@ -44,33 +44,10 @@ fi
|
|||||||
node apps/nextjs/server.js &
|
node apps/nextjs/server.js &
|
||||||
NEXTJS_PID=$!
|
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
|
# Function to handle SIGTERM and shut down services
|
||||||
terminate() {
|
terminate() {
|
||||||
echo "Received SIGTERM. Shutting down..."
|
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
|
wait
|
||||||
# kill redis-server last because of logging of other services and only if $REDIS_PID is set
|
# kill redis-server last because of logging of other services and only if $REDIS_PID is set
|
||||||
if [ -n "$REDIS_PID" ]; then
|
if [ -n "$REDIS_PID" ]; then
|
||||||
|
|||||||
Reference in new issue
Block a user