iotdb icon indicating copy to clipboard operation
iotdb copied to clipboard

[To rel/0.13][IOTDB-4230] add -p pid, -v version feature into start-server.sh

Open jixuan1989 opened this issue 3 years ago • 1 comments

behavior:

  1. add "-v":
➜  apache-iotdb-0.13.2-SNAPSHOT-all-bin git:(4230-2-0.13) sbin/start-server.sh -v                                                                         
0.13.2-SNAPSHOT
  1. by default, iotdb runs in background, and does not print anything to the console
➜  apache-iotdb-0.13.2-SNAPSHOT-all-bin git:(4230-2-0.13) sbin/start-server.sh   
---------------------
Starting IoTDB
---------------------
WARN:
WARN: the value of kern.ipc.somaxconn (=128) is too small, please set it to a larger value using the following command.
WARN:     sudo sysctl -w kern.ipc.somaxconn=65535
WARN: The original kern.ipc.somaxconn value will be set back when the os reboots.
WARN:
setting local JMX...
Maximum memory allocation pool = 4096MB, initial memory allocation pool = 1000MB
If you want to change this configuration, please check conf/iotdb-env.sh(Unix or OS X, if you use Windows, check conf/iotdb-env.bat).
  1. use "-f" to let iotdb runs on foreground and print log to console.
➜  apache-iotdb-0.13.2-SNAPSHOT-all-bin git:(4230-2-0.13) sbin/stop-server.sh   
check whether the rpc_port is used..., port is 6667
close IoTDB, PID: 20766
➜  apache-iotdb-0.13.2-SNAPSHOT-all-bin git:(4230-2-0.13) sbin/stop-server.sh -f
check whether the rpc_port is used..., port is 6667
No IoTDB server to stop
➜  apache-iotdb-0.13.2-SNAPSHOT-all-bin git:(4230-2-0.13) sbin/start-server.sh -f                                                                                          
---------------------
Starting IoTDB
---------------------
WARN:
WARN: the value of kern.ipc.somaxconn (=128) is too small, please set it to a larger value using the following command.
WARN:     sudo sysctl -w kern.ipc.somaxconn=65535
WARN: The original kern.ipc.somaxconn value will be set back when the os reboots.
WARN:
setting local JMX...
Maximum memory allocation pool = 4096MB, initial memory allocation pool = 1000MB
If you want to change this configuration, please check conf/iotdb-env.sh(Unix or OS X, if you use Windows, check conf/iotdb-env.bat).
2022-08-28 23:39:44,388 [main] INFO  o.a.i.d.c.IoTDBDescriptor:177 - Start to read config file file:sbin/../conf/iotdb-engine.properties 
2022-08-28 23:39:44,419 [main] INFO  o.a.i.d.c.IoTDBDescriptor:1419 - allocateMemoryForRead = 1145359564 
2022-08-28 23:39:44,420 [main] INFO  o.a.i.d.c.IoTDBDescriptor:1420 - allocateMemoryForWrite = 1527146086 
...

TODO: modify the windows script to keep the behavior equality.

jixuan1989 avatar Aug 28 '22 15:08 jixuan1989

@liuminghui233 this PR is still under maintain... I just do not finish it on master branch..

jixuan1989 avatar Oct 16 '22 05:10 jixuan1989