Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 590372 - app-misc/elasticsearch - consider disabling garbage collection logfile by default
Summary: app-misc/elasticsearch - consider disabling garbage collection logfile by def...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ferenc Erki
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-03 07:02 UTC by Tomáš Mózes
Modified: 2017-01-21 05:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Mózes 2016-08-03 07:02:43 UTC
After a default installation we enable the garbage collection logfile in /var/log/elasticsearch/gc.log can grow pretty large. It contains tons of lines like:

2016-08-03T06:56:47.946+0000: 0.261: Total time for which application threads were stopped: 0.0001246 seconds, Stopping threads took: 0.0000525 seconds

From the official docs https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-service.html:

ES_GC_LOG_FILE - The absolute log file path for creating a garbage collection logfile, which is done by the JVM. Note that this logfile can grow pretty quick and thus is disabled by default.

Please consider disabling this by default.
Comment 1 Tomáš Mózes 2016-08-03 07:05:39 UTC
(In reply to Tomáš Mózes from comment #0)
> After a default installation we enable the garbage collection logfile in
> /var/log/elasticsearch/gc.log can grow pretty large.

After a default installation we enable the garbage collection logfile in /var/log/elasticsearch/gc.log which can can grow pretty large.
Comment 2 Tomáš Mózes 2017-01-07 07:16:50 UTC
It's not relevant for 5.1.1, but also incorporated into 2.4.3:
https://github.com/gentoo/gentoo/pull/3358