Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Performance Issue: Slow Page Load Times (500-700ms) on ARM64 Devices #253

Closed
1 task done
codenamek83 opened this issue Jan 4, 2025 · 1 comment · Fixed by #254
Closed
1 task done

[BUG] Performance Issue: Slow Page Load Times (500-700ms) on ARM64 Devices #253

codenamek83 opened this issue Jan 4, 2025 · 1 comment · Fixed by #254

Comments

@codenamek83
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I have consistently experienced slow page load times ranging from 500 to 700 ms on a Raspberry Pi 4 with 8 GB of RAM. This sluggishness is particularly noticeable when navigating between pages on BookStack instances deployed as Docker containers on these devices. After troubleshooting the issue with Dan Brown, the developer of BookStack, it was confirmed that the problem is caused by the absence of the PHP opcache extension. The troubleshooting process and results are documented in this GitHub issue in the BookStack repository.

Expected Behavior

The acceptable page load time should be somewhere between 100–200 ms.

Steps To Reproduce

You should be able to reproduce this issue on any Raspberry Pi device, and I assume this would also be the case for any ARM-based SBC without a native SATA connection between the hard drive and the device.

Environment

- OS:Debian GNU/Linux 11 (bullseye) aarch64
- How docker service was installed: Manual install.

CPU architecture

arm64

Docker creation

services:
  us-bookstack02-app:
    image: linuxserver/bookstack:v24.12-ls184
    container_name: us-bookstack02-app
    hostname: us-bookstack02-app
    networks:
      - us-bookstack02
    ports:
      - "8116:80"
    volumes:
      - /us-bookstack02/us-bookstack02/app:/config
    environment:
      PUID: 1000
      PGID: 1000
      APP_URL: "http://192.168.10.1:8116"
      APP_KEY: "secret"
      DB_HOST: "us-bookstack02-db"
      DB_DATABASE: bookstack02
      DB_USERNAME: dbadmin
      DB_PASSWORD: "secret"
    restart: unless-stopped
    security_opt:
      - no-new-privileges:true
    depends_on:
      - us-bookstack02-db
  
  us-bookstack02-db:
    image: linuxserver/mariadb:10.11.10
    container_name: us-bookstack02-db
    hostname: us-bookstack02-db
    networks:
      - us-bookstack02      
    expose:
      - 3306
    volumes:
      - /us-bookstack02/us-bookstack02/db:/config
    environment:  
      PUID: 1000
      PGID: 1000
      MYSQL_ROOT_PASSWORD: "secret"
      MYSQL_DATABASE: bookstack02
      MYSQL_USER: dbadmin
      MYSQL_PASSWORD: "secret"
    restart: unless-stopped
    security_opt:
      - no-new-privileges:true
     
networks:
  us-bookstack02:
    name: us-bookstack02
    driver: bridge


### Container logs

```bash
[custom-init] No custom files found, skipping...
[ls.io-init] done.
[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] 02-default-location: skipped
[migrations] done
usermod: no changes
───────────────────────────────────────
  _____ __ __ _____ _____ _____ _____ 
 |     |  |  |   __|_   _|     |     |
 |   --|  |  |__   | | | |  |  | | | |
 |_____|_____|_____| |_| |_____|_|_|_|
       _____ __ __ _ __    ____  
      | __  |  |  | |  |  |    \ 
      | __ -|  |  | |  |__|  |  |
      |_____|_____|_|_____|____/ 

  Based on images from linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────
Linuxserver.io version: 
Build-date: 
───────────────────────────────────────
    
using keys found in /config/keys
Waiting for DB to be available

   INFO  Nothing to migrate.  

[custom-init] No custom files found, skipping...
[ls.io-init] done.
Copy link

github-actions bot commented Jan 4, 2025

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@thespad thespad mentioned this issue Jan 4, 2025
1 task
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

1 participant