2017-06-13 83 views
1

Tomcat開始監聽端口並且應用程序也被部署,但是當我訪問URL時,我得到連接拒絕錯誤。 BigIP無法識別服務器上由tomcat 8打開的端口是否存在任何問題?BigIP - Tomcat 8連接拒絕從Tomcat 6升級6

雖然當我恢復到tomcat 6(啓動和停止它),然後再次嘗試與tomcat 8它有時開始接收連接是奇怪的,我無法找到原因。 可能是什麼問題?

 
Jun 13, 2017 5:56:32 AM org.apache.tomcat.util.digester.SetPropertiesRule begin 
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Valve} Setting property 'resolveHosts' to 'false' did not find a matching property. 

Jun 13, 2017 5:56:32 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent 
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: :/myPath/lib 

Jun 13, 2017 5:56:32 AM org.apache.coyote.AbstractProtocol init 
INFO: Initializing ProtocolHandler ["http-bio-9030"] 

Jun 13, 2017 5:56:32 AM org.apache.catalina.startup.Catalina load 
INFO: Initialization processed in 854 ms 

Jun 13, 2017 5:56:32 AM org.apache.catalina.users.MemoryUserDatabase open 
SEVERE: The specified user database [conf/tomcat-users.xml] could not be found 

Jun 13, 2017 5:56:32 AM org.apache.catalina.core.StandardService startInternal 
INFO: Starting service Catalina 

Jun 13, 2017 5:56:32 AM org.apache.catalina.core.StandardEngine startInternal 
INFO: Starting Servlet Engine: Apache Tomcat/8.0.30 

Jun 13, 2017 5:56:33 AM org.apache.jasper.servlet.TldScanner scanJars 
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skippin 
g unneeded JARs during scanning can improve startup time and JSP compilation time. 

Jun 13, 2017 5:56:33 AM org.apache.catalina.startup.HostConfig deployWAR 
INFO: Deploying web application archive /mypath/MyWar.war 

Jun 13, 2017 5:56:43 AM org.apache.jasper.servlet.TldScanner scanJars 
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skippin 
g unneeded JARs during scanning can improve startup time and JSP compilation time. 

Jun 13, 2017 5:56:43 AM org.apache.catalina.core.ApplicationContext log 
INFO: No Spring WebApplicationInitializer types detected on classpath 

Jun 13, 2017 5:56:43 AM org.apache.catalina.core.ApplicationContext log 
INFO: Initializing Spring root WebApplicationContext 

Jun 13, 2017 5:57:06 AM org.apache.catalina.core.ApplicationContext log 
INFO: Initializing Spring FrameworkServlet 'myServlet' 

Jun 13, 2017 5:57:06 AM org.apache.catalina.startup.HostConfig deployWAR 
INFO: Deployment of web application archive /mypath/MyWar.war has finished in 33,424 ms 

Jun 13, 2017 5:57:06 AM org.apache.coyote.AbstractProtocol start 
INFO: Starting ProtocolHandler ["http-bio-9030"]' 

Jun 13, 2017 5:57:06 AM org.apache.catalina.startup.Catalina start 
INFO: Server startup in 33845 ms 
+0

添加控制檯/日誌文件輸出的相關部分。你認爲「寧靜的終點變得無法到達」是什麼意思?可能是因爲你的WebApplication不能啓動?沒有日誌文件/控制檯輸出很難說。 – andih

+0

感謝您的回覆和ih。請忽略寧靜的端點。我編輯了這個問題。請讓我知道您的意見 –

+0

在這種情況下,您可以使用端口9030訪問應用程序?日誌文件/控制檯輸出在不能時如何顯示? – andih

回答

1

每個傳入請求要求針對該請求的持續時間的線程。如果收到的併發請求數多於當前可用請求處理線程可處理的請求數,則會創建額外的線程,直至配置的最大值(maxThreads屬性的值)。如果還有更多的併發請求被接收到,它們被堆疊在由連接器創建的服務器套接字中,直到配置的最大值(acceptCount屬性的值)。任何進一步的同時請求都會收到「連接被拒絕」錯誤,直到資源可用於處理它們。

多參考在https://tomcat.apache.org/tomcat-8.0-doc/config/http.html

+0

感謝Omkar,但在我的應用程序MaxThreads設置爲http.port.maxThreads = 100,我甚至無法訪問應用程序。因此,甚至不會創建一個線程 –