Solr基础操作14

2022-06-29 22:40:01 浏览数 (2)

关闭Solr

正常运行的状态下,会有两个 java 分别监听在 89837574

代码语言:javascript复制
[root@h102 solr-5.3.0]#  ps faux | grep solr 
root     63799  0.0  0.0 103252   828 pts/1    S    13:45   0:00  |       _ grep solr
root      3579  0.8 13.0 2002356 513088 pts/0  Sl   Sep09  11:10 java -server -Xss256k -Xms512m -Xmx512m -XX:NewRatio=3 -XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=8 -XX: UseConcMarkSweepGC -XX: UseParNewGC -XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 -XX: CMSScavengeBeforeRemark -XX:PretenureSizeThreshold=64m -XX: UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=50 -XX:CMSMaxAbortablePrecleanTime=6000 -XX: CMSParallelRemarkEnabled -XX: ParallelRefProcEnabled -XX:CMSFullGCsBeforeCompaction=1 -XX:CMSTriggerPermRatio=80 -verbose:gc -XX: PrintHeapAtGC -XX: PrintGCDetails -XX: PrintGCDateStamps -XX: PrintGCTimeStamps -XX: PrintTenuringDistribution -XX: PrintGCApplicationStoppedTime -Xloggc:/data/solr/solr-5.3.0/example/cloud/node1/solr/../logs/solr_gc.log -DzkClientTimeout=15000 -DzkRun -Djetty.port=8983 -DSTOP.PORT=7983 -DSTOP.KEY=solrrocks -Duser.timezone=UTC -Djetty.home=/data/solr/solr-5.3.0/server -Dsolr.solr.home=/data/solr/solr-5.3.0/example/cloud/node1/solr -Dsolr.install.dir=/data/solr/solr-5.3.0 -Dlog4j.configuration=file:/data/solr/solr-5.3.0/example/resources/log4j.properties -jar start.jar -XX:OnOutOfMemoryError=/data/solr/solr-5.3.0/bin/oom_solr.sh 8983 /data/solr/solr-5.3.0/example/cloud/node1/solr/../logs --module=http
root      3799  0.4  9.4 2006728 369716 pts/0  Sl   Sep09   5:54 java -server -Xss256k -Xms512m -Xmx512m -XX:NewRatio=3 -XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=8 -XX: UseConcMarkSweepGC -XX: UseParNewGC -XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 -XX: CMSScavengeBeforeRemark -XX:PretenureSizeThreshold=64m -XX: UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=50 -XX:CMSMaxAbortablePrecleanTime=6000 -XX: CMSParallelRemarkEnabled -XX: ParallelRefProcEnabled -XX:CMSFullGCsBeforeCompaction=1 -XX:CMSTriggerPermRatio=80 -verbose:gc -XX: PrintHeapAtGC -XX: PrintGCDetails -XX: PrintGCDateStamps -XX: PrintGCTimeStamps -XX: PrintTenuringDistribution -XX: PrintGCApplicationStoppedTime -Xloggc:/data/solr/solr-5.3.0/example/cloud/node2/solr/../logs/solr_gc.log -DzkClientTimeout=15000 -DzkHost=localhost:9983 -Djetty.port=7574 -DSTOP.PORT=6574 -DSTOP.KEY=solrrocks -Duser.timezone=UTC -Djetty.home=/data/solr/solr-5.3.0/server -Dsolr.solr.home=/data/solr/solr-5.3.0/example/cloud/node2/solr -Dsolr.install.dir=/data/solr/solr-5.3.0 -Dlog4j.configuration=file:/data/solr/solr-5.3.0/example/resources/log4j.properties -jar start.jar -XX:OnOutOfMemoryError=/data/solr/solr-5.3.0/bin/oom_solr.sh 7574 /data/solr/solr-5.3.0/example/cloud/node2/solr/../logs --module=http
[root@h102 solr-5.3.0]# netstat  -ant | grep -E '(8983|7574)'
tcp        0      0 :::7574                     :::*                        LISTEN      
tcp        0      0 :::8983                     :::*                        LISTEN      
tcp        0      0 ::ffff:192.168.100.10:42750 ::ffff:192.168.100.102:8983 ESTABLISHED 
tcp        0      0 ::ffff:192.168.100.10:33948 ::ffff:192.168.100.102:7574 TIME_WAIT   
tcp        0      0 ::ffff:192.168.100.102:8983 ::ffff:192.168.100.10:42749 ESTABLISHED 
tcp        0      0 ::ffff:192.168.100.102:8983 ::ffff:192.168.100.10:42745 ESTABLISHED 
tcp        0      0 ::ffff:192.168.100.102:7574 ::ffff:192.168.100.10:33936 ESTABLISHED 
tcp        0      0 ::ffff:192.168.100.10:42745 ::ffff:192.168.100.102:8983 ESTABLISHED 
tcp        0      0 ::ffff:192.168.100.10:33949 ::ffff:192.168.100.102:7574 TIME_WAIT   
tcp        0      0 ::ffff:192.168.100.10:42749 ::ffff:192.168.100.102:8983 ESTABLISHED 
tcp        0      0 ::ffff:192.168.100.10:33947 ::ffff:192.168.100.102:7574 ESTABLISHED 
tcp        0      0 ::ffff:192.168.100.102:7574 ::ffff:192.168.100.10:33947 ESTABLISHED 
tcp        0      0 ::ffff:127.0.0.1:42313      ::ffff:127.0.0.1:8983       TIME_WAIT   
tcp        0      0 ::ffff:192.168.100.102:7574 ::ffff:192.168.100.10:33938 ESTABLISHED 
tcp        0      0 ::ffff:192.168.100.10:33942 ::ffff:192.168.100.102:7574 TIME_WAIT   
tcp        0      0 ::ffff:127.0.0.1:42307      ::ffff:127.0.0.1:8983       TIME_WAIT   
tcp        0      0 ::ffff:127.0.0.1:42316      ::ffff:127.0.0.1:8983       TIME_WAIT   
tcp        0      0 ::ffff:192.168.100.10:42744 ::ffff:192.168.100.102:8983 ESTABLISHED 
tcp        0      0 ::ffff:192.168.100.10:33938 ::ffff:192.168.100.102:7574 ESTABLISHED 
tcp        0      0 ::ffff:127.0.0.1:42317      ::ffff:127.0.0.1:8983       TIME_WAIT   
tcp        0      0 ::ffff:192.168.100.102:8983 ::ffff:192.168.100.10:42744 ESTABLISHED 
tcp        0      0 ::ffff:192.168.100.102:8983 ::ffff:192.168.100.10:42750 ESTABLISHED 
tcp        0      0 ::ffff:127.0.0.1:42327      ::ffff:127.0.0.1:8983       TIME_WAIT   
tcp        0      0 ::ffff:192.168.100.10:33945 ::ffff:192.168.100.102:7574 TIME_WAIT   
tcp        0      0 ::ffff:127.0.0.1:42314      ::ffff:127.0.0.1:8983       TIME_WAIT   
tcp        0      0 ::ffff:192.168.100.10:33936 ::ffff:192.168.100.102:7574 ESTABLISHED 
tcp        0      0 ::ffff:192.168.100.10:33946 ::ffff:192.168.100.102:7574 TIME_WAIT   
tcp        0      0 ::ffff:192.168.100.10:33943 ::ffff:192.168.100.102:7574 TIME_WAIT   
tcp        0      0 ::ffff:127.0.0.1:59150      ::ffff:127.0.0.1:7574       TIME_WAIT   
[root@h102 solr-5.3.0]# 

使用如下命令停止服务

代码语言:javascript复制
[root@h102 solr-5.3.0]# bin/solr stop -all
Sending stop command to Solr running on port 8983 ... waiting 5 seconds to allow Jetty process 3579 to stop gracefully.
Sending stop command to Solr running on port 7574 ... waiting 5 seconds to allow Jetty process 3799 to stop gracefully.
Solr process 3799 is still running; forcefully killing it now.
Killed process 3799
[root@h102 solr-5.3.0]# 

0 人点赞