我在 VPS 中有一个 Keycloak,它作为其余架构的 SSO 运行。但每隔几天,在没有任何明显原因的情况下,Keycloak 就会突然用完所有可用内存并进入阻塞状态。
这是上次发生此事件之前的 server.log:
2016-06-21 21:24:29,963 DEBUG [org.keycloak.services] (default task-8) action: auth-username-password-form
2016-06-21 21:24:29,968 WARN [org.keycloak.events] (default task-8) type=LOGIN_ERROR, realmId=186810ab-588b-48fd-a56c-f9c58bc370fa, clientId=registro, userId=null, ipAddress=101.62.141.157, error=user_not_found, auth_method=openid-connect, auth_type=code, redirect_uri=http://server.com/index.xhtml;jsessionid=yMRV-EkysuGJiXX0oVAU88uLcnZ2cGoV2xJR4-HY.ip-192-168-1-4, code_id=1e46ee1f-b620-45b6-8820-821a3248fa35, [email protected]
2016-06-21 21:24:29,971 DEBUG [org.keycloak.services] (default task-8) authenticator FAILURE_CHALLENGE: auth-username-password-form
2016-06-21 21:24:35,035 DEBUG [org.keycloak.services] (default task-7) authenticationAction
2016-06-21 21:24:35,035 DEBUG [org.keycloak.services] (default task-7) processAction: 5488581f-f2de-88ef-9dd4-4d8332176d48
2016-06-21 21:24:35,035 DEBUG [org.keycloak.services] (default task-7) check: auth-cookie requirement: ALTERNATIVE
2016-06-21 21:24:35,035 DEBUG [org.keycloak.services] (default task-7) execution is processed
2016-06-21 21:24:35,036 DEBUG [org.keycloak.services] (default task-7) check: auth-spnego requirement: DISABLED
2016-06-21 21:24:35,036 DEBUG [org.keycloak.services] (default task-7) execution is processed
2016-06-21 21:24:35,036 DEBUG [org.keycloak.services] (default task-7) check: null requirement: ALTERNATIVE
2016-06-21 21:24:35,036 DEBUG [org.keycloak.services] (default task-7) processAction: 5488581f-f2de-88ef-9dd4-4d8332976d48
2016-06-21 21:24:35,036 DEBUG [org.keycloak.services] (default task-7) check: auth-username-password-form requirement: REQUIRED
2016-06-21 21:24:35,036 DEBUG [org.keycloak.services] (default task-7) action: auth-username-password-form
2016-06-21 21:24:35,043 WARN [org.keycloak.events] (default task-7) type=LOGIN_ERROR, realmId=186810ab-500b-48fd-a56c-f9c58bc370fa, clientId=registro, userId=null, ipAddress=101.62.141.157, error=user_not_found, auth_method=openid-connect, auth_type=code, redirect_uri=http://backoffice.trackingsport.com/index.xhtml;jsessionid=yMRV-EkysuGJiXX0oVAUrluLcnZ2cGoV2xJR4-HY.ip-192-168-1-4, code_id=1e46ee1f-b620-45b6-8820-821a3248fa35, [email protected]
2016-06-21 21:24:35,044 DEBUG [org.keycloak.services] (default task-7) authenticator FAILURE_CHALLENGE: auth-username-password-form
2016-06-21 21:25:20,444 DEBUG [org.keycloak.services] (default task-13) AUTHENTICATE
2016-06-21 21:25:20,444 DEBUG [org.keycloak.services] (default task-13) AUTHENTICATE ONLY
2016-06-21 21:25:20,444 DEBUG [org.keycloak.services] (default task-13) processFlow
2016-06-21 21:25:20,444 DEBUG [org.keycloak.services] (default task-13) check execution: auth-cookie requirement: ALTERNATIVE
2016-06-21 21:25:20,444 DEBUG [org.keycloak.services] (default task-13) authenticator: auth-cookie
2016-06-21 21:25:20,444 DEBUG [org.keycloak.services] (default task-13) invoke authenticator.authenticate
2016-06-21 21:25:20,444 DEBUG [org.keycloak.services] (default task-13) Could not find cookie: KEYCLOAK_IDENTITY
2016-06-21 21:25:20,444 DEBUG [org.keycloak.services] (default task-13) authenticator ATTEMPTED: auth-cookie
2016-06-21 21:25:20,444 DEBUG [org.keycloak.services] (default task-13) check execution: auth-spnego requirement: DISABLED
2016-06-21 21:25:20,444 DEBUG [org.keycloak.services] (default task-13) execution is processed
2016-06-21 21:25:20,444 DEBUG [org.keycloak.services] (default task-13) check execution: null requirement: ALTERNATIVE
2016-06-21 21:25:20,444 DEBUG [org.keycloak.services] (default task-13) execution is flow
2016-06-21 21:25:20,444 DEBUG [org.keycloak.services] (default task-13) processFlow
2016-06-21 21:25:20,444 DEBUG [org.keycloak.services] (default task-13) check execution: auth-username-password-form requirement: REQUIRED
2016-06-21 21:25:20,444 DEBUG [org.keycloak.services] (default task-13) authenticator: auth-username-password-form
2016-06-21 21:25:20,444 DEBUG [org.keycloak.services] (default task-13) invoke authenticator.authenticate
2016-06-21 21:25:20,445 DEBUG [org.keycloak.services] (default task-13) authenticator CHALLENGE: auth-username-password-form
2016-06-21 21:25:27,492 DEBUG [org.keycloak.services] (default task-2) AUTHENTICATE
2016-06-21 21:25:27,492 DEBUG [org.keycloak.services] (default task-2) AUTHENTICATE ONLY
2016-06-21 21:25:27,492 DEBUG [org.keycloak.services] (default task-2) processFlow
2016-06-21 21:25:27,492 DEBUG [org.keycloak.services] (default task-2) check execution: auth-cookie requirement: ALTERNATIVE
2016-06-21 21:25:27,492 DEBUG [org.keycloak.services] (default task-2) authenticator: auth-cookie
2016-06-21 21:25:27,492 DEBUG [org.keycloak.services] (default task-2) invoke authenticator.authenticate
2016-06-21 21:25:27,492 DEBUG [org.keycloak.services] (default task-2) Could not find cookie: KEYCLOAK_IDENTITY
2016-06-21 21:25:27,492 DEBUG [org.keycloak.services] (default task-2) authenticator ATTEMPTED: auth-cookie
2016-06-21 21:25:27,492 DEBUG [org.keycloak.services] (default task-2) check execution: auth-spnego requirement: DISABLED
2016-06-21 21:25:27,492 DEBUG [org.keycloak.services] (default task-2) execution is processed
2016-06-21 21:25:27,492 DEBUG [org.keycloak.services] (default task-2) check execution: null requirement: ALTERNATIVE
2016-06-21 21:25:27,492 DEBUG [org.keycloak.services] (default task-2) execution is flow
2016-06-21 21:25:27,492 DEBUG [org.keycloak.services] (default task-2) processFlow
2016-06-21 21:25:27,492 DEBUG [org.keycloak.services] (default task-2) check execution: auth-username-password-form requirement: REQUIRED
2016-06-21 21:25:27,492 DEBUG [org.keycloak.services] (default task-2) authenticator: auth-username-password-form
我完全搞不懂了。日志级别处于调试模式,但我仍然看不到任何可以让我了解发生了什么事情的信息。
我的问题是,我该如何调试?您是否遇到过类似的情况?