I read on forums that tweaking the /etc/hosts file speeds up the LibreOffice startup by ~ 10 times : http://forum.ubuntu-fr.org/viewtopic.php?id=441464 The tweak is changing the below lines : --- 127.0.0.1 localhost 127.0.1.1 MY_HOST_NAME --- into : --- 127.0.0.1 MY_HOST_NAME localhost MY_HOST_NAME.(none) ---
Thanks for bugreport Ubuntu specific?
I don't think it is Ubuntu specific.
> I don't think it is Ubuntu specific. Reproducible on another distro (non-Canonical) ?
I don't know.
closing this ticket , The /etc/hosts file is for networking and not application bootup time.
Basically, the internal components are heavily using local loop network. Depending on the path the data is using, the latency may increase. Thus the boot time actually depends on network configuration.
Quoting <https://bugzilla.redhat.com/show_bug.cgi?id=996013#c5>: "Per the attached log.txt, it is a slow DNS query (against your local 192.168.8.1 server) to resolve your machine name ("thinkpad-leo"), blocking the main thread for 4 seconds: > [pid 23019] 23:18:13.598278 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 34 <0.000013> > [pid 23019] 23:18:13.598322 connect(34, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.8.1")}, 16) = 0 <0.000019> > [pid 23019] 23:18:13.598380 poll([{fd=34, events=POLLOUT}], 1, 0) = 1 ([{fd=34, revents=POLLOUT}]) <0.000010> > [pid 23019] 23:18:13.598426 sendto(34, "\17D\1\0\0\1\0\0\0\0\0\0\fthinkpad-leo\0\0\1\0\1", 30, MSG_NOSIGNAL, NULL, 0) = 30 <0.000061> > [pid 23019] 23:18:13.598569 poll([{fd=34, events=POLLIN}], 1, 5000 <unfinished ...> ... > [pid 23019] 23:18:17.641166 <... poll resumed> ) = 1 ([{fd=34, revents=POLLIN}]) <4.042540> "The reason this query is done is because svt::DocumentLockFile::CreateOwnLockFile calls osl_getLocalHostname which, when getting an unqualified name from gethostname(2) calls gethostbyname_r(3)."
Looks like this needs confirmed again (or first time?) by QA, moving to UNCONFIRMED. Thanks all
I can confirm this problem on Fedora 21. I was astonished by the slowness of libreoffice startup. These are the timings of opening and immediately closing libreoffice on my system: BEFORE editing /etc/hosts $ time libreoffice real 0m11.646s user 0m0.696s sys 0m0.158s AFTER editing /etc/hosts $ time libreoffice real 0m1.263s user 0m0.645s sys 0m0.134s Is it really needed querying DNSs for the local machine hostname (that will fail in 99% of cases)?
Both comment 7 and comment 9 look like confirmation to me. A quick check of the source files in question suggests that the code in question hasn't meaningfully changed since the report either. Setting -> NEW
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present on a currently supported version of LibreOffice (5.0.5 or 5.1.2 https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT - Update the version field - Reply via email (please reply directly on the bug tracker) - Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for your help! -- The LibreOffice QA Team This NEW Message was generated on: 2016-04-16
*** Bug 97931 has been marked as a duplicate of this bug. ***
This current bug appears in 5.0.4.2 release according to the description in the duplicate bug #97931 .
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
I couldn't reproduce this bug with the 5.2.7.2 version shipped with the Debian 9.3 (stretch) running on x86(IA32). Before I performed the test, I stopped services with the below command : systemctl stop *.timer systemctl stop swap.target The NetworkManager.service is disabled on this host (no need to stop). However, I don't known if there is a local DNS proxy somewhere which makes the lookup faster.
This bug still exists in 版本: 6.2.6.2 Build ID: 684e730861356e74889dfe6dbddd3562aae2e6ad CPU 线程: 4; 操作系统: Linux 5.2; UI 渲染: 默认; VCL: gtk3; 区域语言: zh-CN (zh_CN.UTF-8); UI 语言: zh-CN Calc: threaded Fedora 30 x64. Before loading a document, if I switch off the network, the document loading time is <3 seconds. If I turn on the network, it takes >30 seconds. This does not happen on all networks. It happens on some networks only (e.g., now in my hotel).
Should be better now, after https://git.libreoffice.org/core/+/eac00017e34e77343b9ac3638bed9c75115a23fe%5E%21 . Please test.