You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Benedict Jin (JIRA)" <ji...@apache.org> on 2017/07/04 11:56:00 UTC
[jira] [Created] (ZOOKEEPER-2837) Add a special
START_SERVER_JVMFLAGS option only for `start` command to distinguish
JVMFLAGS and SERVER_JVMFLAGS
Benedict Jin created ZOOKEEPER-2837:
---------------------------------------
Summary: Add a special START_SERVER_JVMFLAGS option only for `start` command to distinguish JVMFLAGS and SERVER_JVMFLAGS
Key: ZOOKEEPER-2837
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2837
Project: ZooKeeper
Issue Type: Bug
Components: server
Affects Versions: 3.5.3
Reporter: Benedict Jin
Assignee: Benedict Jin
Add a special START_SERVER_JVMFLAGS option only for `start` command to distinguish JVMFLAGS and SERVER_JVMFLAGS. If we use the normal way to add JVM options with `JVMFLAGS` in `conf/java.env`, then it will effect almost all shell scripts under `bin` directory. Even if using `SERVER_JVMFLAGS` will effect some commands like `zkServer.sh status`, include four-letters commands.
For example, if the JVMFLAGS is
```bash
export JVMFLAGS="-Xms3G -Xmx3G -Xmn1G -XX:+AlwaysPreTouch -XX:CMSInitiatingOccupancyFraction=70 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+PrintGCDetails -XX:-PrintGCTimeStamps -Xloggc:/home/zookeeper/logs/zookeeper_`date '+%Y%m%d%H%M%S'`.gc -XX:-UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=64M"
```
then we will get too many GC log files due to using the `mntr` four-letters commands in some monitor situation.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)