Commit Graph

32 Commits

Author SHA1 Message Date
Tomas Dvorak
ba77102211 Add command for creating p12 truststore for datanode/opensearch (#19804)
* Add command for creating p12 truststore for datanode/opensearch

* Added certutil bin

* Fixed string.format locale
2024-07-11 11:15:58 +02:00
Bernd Ahlers
fa52331106 Add support for a bundled JVM in bin/graylogctl (#13980)
* Add support for a bundled JVM in bin/graylogctl

* Add changelog entry
2022-11-16 15:59:40 +01:00
Marco Pfatschbacher
d75be7f717 Enforce usage of G1GC (#13929)
There are some cases where Java falls back to using the
Serial GC instead of G1GC:
Less then 2GB of RAM or only one CPU.
This can be the case in some docker environments.
We always want to use G1GC, because it ensures that GC pauses are always short.

Also drop NewRatio=1 which was a tuning parameter used for the
previously used GC.
The default from Java is better here.
ResizeTLAB is also on by default now, so no need to specify that option.
2022-11-16 10:43:41 +01:00
Marco Pfatschbacher
eb0296dff8 Fixes for log4j CVE-2021-44228 (#11786)
Apache Log4j2 JNDI features do not protect against attacker controlled
LDAP and other JNDI related endpoints.

- Configure log4j2.formatMsgNoLookups=true by default
- Update log4j to 2.15.0

Details: https://logging.apache.org/log4j/2.x/security.html
2021-12-10 13:11:03 +01:00
Donald Morton
267d00dc28 Simplify CMS GC check. 2021-03-18 09:14:17 -05:00
Donald Morton
eb5a544421 Use CMS GC if it is available in the JDK. 2021-03-17 09:52:02 -05:00
Donald Morton
c760ed85b6 Remove JAVA_OPTS deprecated in JDK15. 2021-03-17 09:26:10 -05:00
Marco Pfatschbacher
52bd8f63a3 Replace Sigar system stats backend with OSHI (#9840)
This commit adds a new Operating System and Hardware Information library (OSHI) that does not require the cumbersome packaging that Sigar currently needs. This library has a very active community and a pretty good platform options. A new config option ("disable_native_system_stats_collector") is added, that defaults to false.

Based on #6056 by @desiderantes. Thank you!

Co-authored-by: Mario Daniel Ruiz Saavedra <desiderantes93@gmail.com>
2021-01-18 12:18:33 +01:00
Marco Pfatschbacher
4d0cf3dda7 Enable jdk.tls.acknowledgeCloseNotify by default (#9446)
Fixes #9445
2020-11-11 15:33:53 +01:00
Marco Pfatschbacher
1e0ed41d87 Remove -XX:+UseParNewGC option from jdk (#6180)
* Check if -XX:+UseParNewGC option is available

This option was deprecated in java 8 and removed from in java 9.

https://openjdk.java.net/jeps/214

Closes #5444

* Dont rely on bash support for +=
2019-08-02 14:13:32 +02:00
Jed Frey
998cb6ff6c Fixed shebang path. (#5869)
Currently doesn't work on FreeBSD as is. Not all distros use /bin/bash either.

/usr/bin/env bash should always point to the correct shell.
2019-04-15 09:45:34 +02:00
Bernd Ahlers
e84a9c7e7c Remove PermSize and MaxPermSize JVM parameters from graylogctl
The settings do not exist anymore in Java 8.
2016-02-01 17:49:49 +01:00
Jochen Schalanda
6a6377b2ae Remove ESTimestampFixup command
The ESTimestampFixup was only used to fix a mapping problem when upgrading
from Graylog 0.20.x or 0.90.x to Graylog 1.x.

Refs #728, refs #737.
2015-12-07 15:46:12 +01:00
Dennis Oelkers
9ff27f896b Remove radioctl. 2015-10-14 20:46:21 +02:00
Bernd Ahlers
47684d4532 Change config file locations. 2015-02-05 17:03:22 +01:00
Bernd Ahlers
eab2474d2b Fix quoting of JAVA_OPTS in bin/radioctl.
Fixes passing of JVM args to the radio process.

Fixes #918.
2015-01-26 13:08:53 +01:00
Bernd Ahlers
2f88ce79ab Add -XX:NewRatio=1 to default JVM settings in scripts. 2015-01-19 16:26:22 +01:00
Bernd Ahlers
c77548639b Move sigar settings into DEFAULT_JAVA_OPTS. 2015-01-19 13:35:19 +01:00
Bernd Ahlers
a190e9e63b Add -XX:-OmitStackTraceInFastThrow JVM option as default. 2015-01-19 12:54:58 +01:00
Bernd Ahlers
105acc69a3 Add default Java options to scripts.
* Default heap of 1GB.
* Default to parallel garbage collection.
* Default to bigger perm gen size.
2015-01-19 12:41:12 +01:00
Jochen Schalanda
a082f5619e Suppress warning message when PID file doesn't exist
Fixes #889
2015-01-17 11:56:20 +01:00
Jochen Schalanda
b18a717b8b Fix declaration order of functions in control scripts
Refs #886.
2015-01-16 12:22:30 +01:00
Jochen Schalanda
39f7bc4577 Consolidated server and radio control scripts
Closes #886
2015-01-16 12:19:06 +01:00
Bernd Ahlers
2075a1d876 Some renaming. 2015-01-13 17:22:55 +01:00
Bernd Ahlers
b51032b45a Fix sigar library path for graylog2ctl and radioctl. 2015-01-12 18:04:41 +01:00
Bernd Ahlers
33067b27ab Explicitly redirect stderr to the log file to avoid nohup warning.
Fixes #796.
2015-01-11 17:19:20 +01:00
Bernd Ahlers
f0f3637cf8 Add missing JAVA_CMD variable to radioctl.
Fixes #853.
2015-01-11 16:51:07 +01:00
Bernd Ahlers
ecd9ad2ccf Use graylog2.jar instead of graylog2-server.jar for timestamp fix script. 2015-01-08 17:18:29 +01:00
Jochen Schalanda
3822445c0d Add support for SIGAR to graylog2ctl and radioctl 2015-01-02 13:09:36 +01:00
Dennis Oelkers
d8f5543302 Changing radioctl to reflect new single binary 2014-12-04 13:27:46 +01:00
Dennis Oelkers
1940c71c69 Making changes to graylog2ctl for single binary 2014-12-02 17:57:16 +01:00
Bernd Ahlers
1dd7237616 Remove obsolete build scripts. Use maven assembly. 2014-11-04 19:29:16 +01:00