[英]Dropwizard 0.8.2 Admin Port is not working
是否有人知道DW管理員端口當前是否存在任何已知錯誤?目前無法使用管理員端口,因為它不可用。
INFO [2015-08-14 10:59:10,428] [] [] [main]: org.eclipse.jetty.server.handler.ContextHandler:?:?- Started i.d.j.MutableServletContextHandler@154bd49b{/,null,AVAILABLE}
INFO [2015-08-14 10:59:10,432] [] [] [main]: io.dropwizard.setup.AdminEnvironment:?:?- tasks =
POST /tasks/log-level (io.dropwizard.servlets.tasks.LogConfigurationTask)
POST /tasks/gc (io.dropwizard.servlets.tasks.GarbageCollectionTask)
INFO [2015-08-14 10:59:10,437] [] [] [main]: org.eclipse.jetty.server.handler.ContextHandler:?:?- Started i.d.j.MutableServletContextHandler@1a87b51{/,null,AVAILABLE}
INFO [2015-08-14 10:59:10,463] [] [] [main]: org.eclipse.jetty.server.ServerConnector:?:?- Started application@6c2d4cc6{HTTP/1.1}{0.0.0.0:80}
INFO [2015-08-14 10:59:10,472] [] [] [main]: org.eclipse.jetty.server.ServerConnector:?:?- Started admin@30865a90{HTTP/1.1}{0.0.0.0:8080}
INFO [2015-08-14 10:59:10,472] [] [] [main]: org.eclipse.jetty.server.Server:?:?- Started @3531ms
嘗試執行POST @ localhost:8080 / tasks / log-level或@ .. / tasks / gc或@localhost:8080 / healtcheck不起作用,但如果服務器未運行則完成非常快,如果服務器正在運行則需要一些時間。
有誰知道這里可能有什么問題嗎? 我嘗試了許多不同的端口,所以這不是問題。
這里的問題是,在配置中,ITO將adminMaxThreads設置為2。 將此設置為8可解決問題。
更新:使用DW 0.8.4,我發現了另一個奇怪的管理員無法正常工作的問題。 上面沒有幫助,但是注釋掉可以解決該問題:
server:
rootPath: '/rest/*'
requestLog:
timeZone: UTC
appenders:
- type: console
threshold: DEBUG
- type: file
currentLogFilename: ./logs/access.log
threshold: ALL
archive: true
archivedLogFilenamePattern: ./logs/access.%d.log.gz
archivedFileCount: 14
#adminMinThreads: 12
#adminMaxThreads: 16
#maxThreads: 1024
#minThreads: 12
#maxQueuedRequests: 1024
applicationConnectors:
- type: http
port: 52131
adminConnectors:
- type: http
port: 52132
我不知道此配置有什么問題,如果我刪除注釋掉的行,但是上面的行是可行的。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.