# Web page load very slow and wait for fixed duration

**URL:** <https://help.nextcloud.com/t/web-page-load-very-slow-and-wait-for-fixed-duration/58064>\
**Category:** ℹ️ Support\
**Created:** [August 12, 2019, 9:14am UTC](https://help.nextcloud.com/t/web-page-load-very-slow-and-wait-for-fixed-duration/58064 "2019-08-12T09:14:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ricky\_Wu](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ricky_wu/32/17005_2.png) [@Ricky\_Wu](https://help.nextcloud.com/u/Ricky_Wu)\
**Post date:** [August 12, 2019, 9:14am UTC](https://help.nextcloud.com/t/web-page-load-very-slow-and-wait-for-fixed-duration/58064/1 "2019-08-12T09:14:56Z")

</div>

version 16.0.3

my nginx.conf use this

> <https://github.com/nextcloud/docker/blob/master/.examples/docker-compose/insecure/mariadb/fpm/web/nginx.conf>

and docker-compose.yml:

```auto
version: '3'

services:
  redis:
    image: redis:alpine
    restart: always

  app:
    image: nextcloud:fpm-alpine
    restart: always
    volumes:
      - ./nextcloud:/var/www/html
    environment:
      - MYSQL_HOST=xxx
      - REDIS_HOST=xxx
    env_file:
      - db.env
    depends_on:
      - redis

  web:
    image: nginx:alpine
    restart: always
    ports:
      - 8080:80
    volumes:
      - ./nextcloud:/var/www/html:ro
      - ./nginx.conf:/etc/nginx/nginx.conf:ro
    depends_on:
      - app

  cron:
    image: nextcloud:fpm-alpine
    restart: always
    volumes:
      - ./nextcloud:/var/www/html
    entrypoint: /cron.sh
    depends_on:
      - redis

```

every page load wait for more than 10 seconds

 ![image](https://help.nextcloud.com/uploads/default/original/3X/a/a/aac06a5c0ad139a40d05249e6321362ec506b796.png)

My server(4C16G) only runs for this app and CPU usage is very low  
%Cpu(s): 1.4 us, 4.3 sy, 0.0 ni, 94.2 id, 0.0 wa

---

<div class="post-metadata">

**Author:** ![KarlF12](https://help.nextcloud.com/user_avatar/help.nextcloud.com/karlf12/32/46873_2.png) [@KarlF12](https://help.nextcloud.com/u/KarlF12)\
**Post date:** [August 12, 2019, 11:38am UTC](https://help.nextcloud.com/t/web-page-load-very-slow-and-wait-for-fixed-duration/58064/2 "2019-08-12T11:38:19Z")

</div>

Is it still slow if you expose a port on the app container and access it directly?

---

<div class="post-metadata">

**Author:** ![Ricky\_Wu](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ricky_wu/32/17005_2.png) [@Ricky\_Wu](https://help.nextcloud.com/u/Ricky_Wu)\
**Post date:** [August 12, 2019, 12:56pm UTC](https://help.nextcloud.com/t/web-page-load-very-slow-and-wait-for-fixed-duration/58064/3 "2019-08-12T12:56:49Z")

</div>

I changed to nextcloud:apache and the same problem

by the way, I use reverse proxy

```auto
    location /nextcloud/ {
        proxy_pass_header Authorization;
        proxy_pass http://ip:8080/;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            #proxy_http_version 1.1;
            #proxy_set_header Connection "";
            #proxy_buffering off;
        client_max_body_size 0;
        #proxy_redirect off;
            #proxy_ssl_session_reuse off;
            #proxy_connect_timeout 600;
            #proxy_send_timeout 600;
            #proxy_read_timeout 600;
            #send_timeout 600;
    }

```

---

<div class="post-metadata">

**Author:** ![KarlF12](https://help.nextcloud.com/user_avatar/help.nextcloud.com/karlf12/32/46873_2.png) [@KarlF12](https://help.nextcloud.com/u/KarlF12)\
**Post date:** [August 12, 2019, 1:54pm UTC](https://help.nextcloud.com/t/web-page-load-very-slow-and-wait-for-fixed-duration/58064/4 "2019-08-12T13:54:37Z")

</div>

Yes, I’m asking if it’s still slow _without_ the reverse proxy?

---

<div class="post-metadata">

**Author:** ![Ricky\_Wu](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ricky_wu/32/17005_2.png) [@Ricky\_Wu](https://help.nextcloud.com/u/Ricky_Wu)\
**Post date:** [August 14, 2019, 11:05am UTC](https://help.nextcloud.com/t/web-page-load-very-slow-and-wait-for-fixed-duration/58064/5 "2019-08-14T11:05:19Z")

</div>

Yes, the same problem when access directly when use apache image

---

<div class="post-metadata">

**Author:** ![Ricky\_Wu](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ricky_wu/32/17005_2.png) [@Ricky\_Wu](https://help.nextcloud.com/u/Ricky_Wu)\
**Post date:** [August 27, 2019, 8:43am UTC](https://help.nextcloud.com/t/web-page-load-very-slow-and-wait-for-fixed-duration/58064/6 "2019-08-27T08:43:44Z")

</div>

Anyone can tell me how to find out the reason?

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 10:15am UTC](https://help.nextcloud.com/t/web-page-load-very-slow-and-wait-for-fixed-duration/58064/7 "2024-12-04T10:15:23Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 3:27pm UTC](https://help.nextcloud.com/t/web-page-load-very-slow-and-wait-for-fixed-duration/58064/8 "2024-12-11T15:27:09Z")

</div>


