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

Very slow response times #452

Open
JoeyGH opened this issue Feb 17, 2023 · 6 comments
Open

Very slow response times #452

JoeyGH opened this issue Feb 17, 2023 · 6 comments

Comments

@JoeyGH
Copy link

JoeyGH commented Feb 17, 2023

Document Server version: communityserver 12.1.0.1760
Type of installation: Docker
OS: Linux Debian 11
Hardware: 4 core (8 threads) CPU, 16 GB of RAM

I have a Docker version of Community Server installed on linux - Debian 11.
When Debian had access to the internet, everything was working smoothly.
Now I disabled the internet access and for some reason, everything is working
extremely slowly. It doesn’t matter if I access the server/app via browser or OnlyOffice Editors, every request takes almost 10 seconds to complete.

For example, if I just go to the initial page via browser and click on “Documents”, it takes around 10 seconds to show me my documents page. If I open a document, it takes around 10 seconds to load the document. If I switch pages, for example from “Documents” to “Projects” or “CRM” or “People”, it takes around 10 seconds to switch to that page. Literally every request (or every click) I make on the website takes that long.

I checked resource consumption and CPU usage only stays at around 20%, there’s more than enough memory left and more than enough disk space left.

I assume that the server is trying to access the web for some reason and waits for some kind of timeout, since it doesn’t have internet access.

What should I do? How do I speed this up? I can’t give it internet access for security reasons.
Server is only accessible via local network.

@Carazyda
Copy link
Member

Hello @JoeyGH Docker specifies Google DNS servers by default. If your ONLYOFFICE Workspace server is not going to have access to the Internet, we recommend that you change the default Docker DNS address to the address of your local DNS server. To do that go to the /etc/default/docker file and change the IP address in the following line to the IP address of a DNS server in your local network:
docker_OPTS="--dns 8.8.8.8"

More information in our guide.

@JoeyGH
Copy link
Author

JoeyGH commented Feb 17, 2023

Hello @Carazyda, thank you for your reply.
I already tried that and set the DNS to my local DNS server, but still, working very slowly as before.
Is there a specific file inside community server's docker container that I can edit to prevent it from trying to access the internet?

@Carazyda
Copy link
Member

Did you restart docker service? Also please try to reinstall Onlyoffice containers.

@JoeyGH
Copy link
Author

JoeyGH commented Feb 17, 2023

I restarted the docker service and I also restarted the whole computer. Won't I lose all the data if I reinstall OnlyOffice containers? I installed everything using a bash script, provided on OnlyOffice website. The script installed communityserver, controlpanel, documentserver, elastisearch and mysql containers.

@Carazyda
Copy link
Member

If you installed using our script (workspace-install.sh) - all data is stored in the /app/ folder. Only if you haven't made changes to the configs inside the container. You can remove all containers and run the script again for a fresh install.

@zhuxingqiang
Copy link

Hi, I am deploying on a private network without a DNS server. My current solution is to set the DNS timeout to 1 second. Currently, it still takes about 2 seconds to switch menus. What should I do? Can you give me some advice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants