From: Steinar Bang <sb@dod.no>
To: help-gnu-emacs@gnu.org
Subject: Re: 100% CPU usage on emacs startup
Date: Sun, 03 Feb 2019 19:17:38 +0100 [thread overview]
Message-ID: <86ef8oohx9.fsf@dod.no> (raw)
In-Reply-To: <86y36yod15.fsf@dod.no> (Steinar Bang's message of "Sat, 02 Feb 2019 08:38:46 +0100")
>>>>> Steinar Bang <sb@dod.no>:
>>> An extra datapoint: I'm using emacs-desktop to restore the desktop where
>>> this occurs. I don't know if that's significant or not?
>> When starting up and restoring the desktop emacs uses 100% of one of the
>> cores, and after 1h of starup still hasn't completed (and this is a
>> pretty fast machine).
>> Does anyone know what causes this? Is emacs-desktop restore and JDEE
>> just a bad mix?
> I think this is the case. In one case emacs eventually came up restored
> after 1h 15 minutes of 100% CPU usage on one of the cores of a 3.5GHz
> Intel i5-6600 "Skylake" CPU.
Now I know what happens:
When the emacs desktop is restored it restores a heap of java files with
names like this (the part after _flycheck_ is different and the filename
is different, one Java file in each directory):
/tmp/JDEE_flycheck_1004026G/ErrorBean.java
When the files are restored they are taken to be regular .java files and
JDEE tries to figure out what project they are part of and outputs a
heap of error messages.
And the number of restored files baloons every time emacs.desktop is
restored, which eventually results in emacs spending more than 1h at
100% CPU to start up, so yes, emacs desktop and JDEE *is* a very bad
match...:-)
Is there a simple way to exclude these files from emacs.desktop restore,
I wonder...?
Excluding the entire /tmp/ directory would be fine by me.
Thanks!
next prev parent reply other threads:[~2019-02-03 18:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-29 17:48 Avoiding autosave of JDEE flycheck files? Steinar Bang
2019-01-31 18:14 ` 100% CPU usage on emacs startup (Was: Avoiding autosave of JDEE flycheck files?) Steinar Bang
2019-02-02 7:38 ` 100% CPU usage on emacs startup Steinar Bang
2019-02-03 18:17 ` Steinar Bang [this message]
2019-02-03 18:32 ` Eli Zaretskii
2019-02-03 21:36 ` Steinar Bang
2019-02-06 19:10 ` Steinar Bang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86ef8oohx9.fsf@dod.no \
--to=sb@dod.no \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).