今天启动 StartSonar.bat。日志一直停留在
2017.01.23 09:37:05 INFO app[][o.s.p.m.JavaProcessLauncher] Launch process[es]: F:\Java\jdk1.8.0_121\jre\bin\java -Djava.awt.headless=true -Xmx1G -Xms256m -Xss256k -Djna.nosys=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=F:\sonarqube-6.2\temp -javaagent:F:\Java\jdk1.8.0_121\jre\lib\management-agent.jar -cp ./lib/common/*;./lib/search/* org.sonar.search.SearchServer F:\sonarqube-6.2\temp\sq-process3846108791591810165properties
查看之前的启动日志,后面执行的该是
2017.01.22 10:54:09 INFO app[][o.s.p.m.Monitor] Process[es] is up
可等待许久,仍卡在上述launch处,而日志未见报错。es.log如下
2017.01.23 09:37:06 INFO es[][o.s.p.ProcessEntryPoint] Starting es
2017.01.23 09:37:06 INFO es[][o.s.s.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2017.01.23 09:37:07 INFO es[][o.elasticsearch.node] [sonarqube] version[2.3.5], pid[7632], build[90f439f/2016-07-27T10:36:52Z]
2017.01.23 09:37:07 INFO es[][o.elasticsearch.node] [sonarqube] initializing ...
2017.01.23 09:37:07 INFO es[][o.e.plugins] [sonarqube] modules [], plugins [], sites []
2017.01.23 09:37:07 INFO es[][o.elasticsearch.env] [sonarqube] using [1] data paths, mounts [[(F:)]], net usable_space [59.3gb], net total_space [100.4gb], spins? [unknown], types [NTFS]
2017.01.23 09:37:07 INFO es[][o.elasticsearch.env] [sonarqube] heap size [1011.2mb], compressed ordinary object pointers [unknown]
2017.01.23 09:37:10 INFO es[][o.elasticsearch.node] [sonarqube] initialized
2017.01.23 09:37:10 INFO es[][o.elasticsearch.node] [sonarqube] starting ...
2017.01.23 09:37:10 INFO es[][o.e.transport] [sonarqube] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2017.01.23 09:37:10 INFO es[][o.e.discovery] [sonarqube] sonarqube/H7ZNJ23DRMKLDTZS64BqpA
2017.01.23 09:37:14 INFO es[][o.e.cluster.service] [sonarqube] new_master {sonarqube}{H7ZNJ23DRMKLDTZS64BqpA}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube, master=true}, reason: zen-disco-join(elected_as_master, [0] joins received)
2017.01.23 09:37:14 INFO es[][o.elasticsearch.node] [sonarqube] started
2017.01.23 09:37:15 INFO es[][o.e.gateway] [sonarqube] recovered [6] indices into cluster_state
不知哪位大神了解 launch 到 up 这过程与什么相关?我可从哪里下手检查出了什么问题?怎么一直不执行up啊。
另外,此时访问 http://127.0.0.1:9001/,显示
This is not a HTTP port
补充,es.log有个warn
2017.02.0311:24:27INFO es[][o.s.p.StopWatcher]Stoppingprocess
2017.02.0311:24:27INFO es[][o.elasticsearch.node][sonarqube]stopping...
2017.02.0311:24:27
WARN es[][o.s.p.ProcessEntryPoint]Failtostartes
java.lang.IllegalStateException:ClusterServicewascloseduringhealthcall
atorg.elasticsearch.action.admin.cluster.health.TransportClusterHealthAction$3.onClusterServiceClose(TransportClusterHealthAction.java:162)
atorg.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onClose(ClusterStateObserver.java:222)
atorg.elasticsearch.cluster.service.InternalClusterService.doStop(InternalClusterService.java:214)
atorg.elasticsearch.common.component.AbstractLifecycleComponent.stop(AbstractLifecycleComponent.java:88)
atorg.elasticsearch.node.Node.stop(Node.java:326)
atorg.elasticsearch.node.Node.close(Node.java:351)
atorg.sonar.search.SearchServer.stop(SearchServer.java:82)
atorg.sonar.process.StopperThread$1.run(StopperThread.java:51)
atjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
atjava.util.concurrent.FutureTask.run(FutureTask.java:266)
atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
atjava.lang.Thread.run(Thread.java:745)
2017.02.0311:24:27INFO es[][o.elasticsearch.node][sonarqube]stopped
2017.02.0311:24:27INFO es[][o.elasticsearch.node][sonarqube]closing...
2017.02.0311:24:27INFO es[][o.elasticsearch.node][sonarqube]closed
2017.02.0311:27:11INFO es[][o.s.p.ProcessEntryPoint]Startinges
2017.02.0311:27:11INFO es[][o.s.s.EsSettings]Elasticsearchlisteningon/127.0.0.1:9001
2017.02.0311:27:12INFO es[][o.elasticsearch.node][sonarqube]version[2.3.5],pid[8220],build[90f439f/2016-07-27T10:36:52Z]
2017.02.0311:27:12INFO es[][o.elasticsearch.node][sonarqube]initializing...
2017.02.0311:27:12INFO es[][o.e.plugins][sonarqube]modules[],plugins[],sites[]
2017.02.0311:27:12INFO es[][o.elasticsearch.env][sonarqube]using[1]datapaths,mounts[[(F:)]],netusable_space[59.1gb],nettotal_space[100.4gb],spins?[unknown],types[NTFS]
2017.02.0311:27:12INFO es[][o.elasticsearch.env][sonarqube]heapsize[1011.2mb],compressedordinaryobjectpointers[unknown]
2017.02.0311:27:15INFO es[][o.elasticsearch.node][sonarqube]initialized
2017.02.0311:27:15INFO es[][o.elasticsearch.node][sonarqube]starting...
2017.02.0311:27:16INFO es[][o.e.transport][sonarqube]publish_address{127.0.0.1:9001},bound_addresses{127.0.0.1:9001}
2017.02.0311:27:16INFO es[][o.e.discovery][sonarqube]sonarqube/vly43KOLSmqoZ3w-owlLWQ
2017.02.0311:27:20INFO es[][o.e.cluster.service][sonarqube]new_master{sonarqube}{vly43KOLSmqoZ3w-owlLWQ}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube,master=true},reason:zen-disco-join(elected_as_master,[0]joinsreceived)
2017.02.0311:27:20INFO es[][o.elasticsearch.node][sonarqube]started
2017.02.0311:27:20INFO es[][o.e.gateway][sonarqube]recovered[6]indicesintocluster_state
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。