nixos/apache-kafka: Drop default jvmOptions
This commit is contained in:
parent
640961beb8
commit
08ef827056
|
@ -90,19 +90,7 @@ in {
|
||||||
|
|
||||||
jvmOptions = mkOption {
|
jvmOptions = mkOption {
|
||||||
description = "Extra command line options for the JVM running Kafka.";
|
description = "Extra command line options for the JVM running Kafka.";
|
||||||
default = [
|
default = [];
|
||||||
"-server"
|
|
||||||
"-Xmx1G"
|
|
||||||
"-Xms1G"
|
|
||||||
"-XX:+UseCompressedOops"
|
|
||||||
"-XX:+UseParNewGC"
|
|
||||||
"-XX:+UseConcMarkSweepGC"
|
|
||||||
"-XX:+CMSClassUnloadingEnabled"
|
|
||||||
"-XX:+CMSScavengeBeforeRemark"
|
|
||||||
"-XX:+DisableExplicitGC"
|
|
||||||
"-Djava.awt.headless=true"
|
|
||||||
"-Djava.net.preferIPv4Stack=true"
|
|
||||||
];
|
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
example = [
|
example = [
|
||||||
"-Djava.net.preferIPv4Stack=true"
|
"-Djava.net.preferIPv4Stack=true"
|
||||||
|
|
|
@ -30,11 +30,6 @@ let
|
||||||
'';
|
'';
|
||||||
package = kafkaPackage;
|
package = kafkaPackage;
|
||||||
zookeeper = "zookeeper1:2181";
|
zookeeper = "zookeeper1:2181";
|
||||||
# These are the default options, but UseCompressedOops doesn't work with 32bit JVM
|
|
||||||
jvmOptions = [
|
|
||||||
"-server" "-Xmx1G" "-Xms1G" "-XX:+UseParNewGC" "-XX:+UseConcMarkSweepGC" "-XX:+CMSClassUnloadingEnabled"
|
|
||||||
"-XX:+CMSScavengeBeforeRemark" "-XX:+DisableExplicitGC" "-Djava.awt.headless=true" "-Djava.net.preferIPv4Stack=true"
|
|
||||||
] ++ optionals (! pkgs.stdenv.isi686 ) [ "-XX:+UseCompressedOops" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 9092 ];
|
networking.firewall.allowedTCPPorts = [ 9092 ];
|
||||||
|
|
Loading…
Reference in a new issue