Apache Tomcat意外优雅地停止了帖子
在以JSON格式发布请求后,我有一种奇怪的Tomcat行为。
tomcat关机没有任何例外和/或错误,
的提取:
02-Jul-2022 18:50:10.470 FINE [http-nio-8082-exec-1190] org.apache.catalina.authenticator.AuthenticatorBase.invoke Security checking request POST /xxxx/xxxx/xxxxxx
02-Jul-2022 18:50:10.470 FINE [http-nio-8082-exec-1190] org.apache.catalina.realm.RealmBase.findSecurityConstraints No applicable constraints defined
02-Jul-2022 18:50:10.470 FINE [http-nio-8082-exec-1190] org.apache.catalina.authenticator.AuthenticatorBase.invoke Not subject to any constraint
02-Jul-2022 18:50:10.486 FINE [http-nio-8082-Acceptor-0] org.apache.tomcat.util.threads.LimitLatch.countUpOrAwait Counting up[http-nio-8082-Acceptor-0] latch=204
02-Jul-2022 18:50:10.580 FINE [http-nio-8082-exec-1190] org.apache.coyote.http11.Http11InputBuffer.fill Before fill(): parsingHeader: [false], parsingRequestLine: [false], parsingRequestLinePhase: [0], parsingRequestLineStart: [0], byteBuffer.position(): [319], byteBuffer.limit(): [319], end: [319]
02-Jul-2022 18:50:10.580 FINE [http-nio-8082-exec-1190] org.apache.tomcat.util.net.SocketWrapperBase.populateReadBuffer Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@6b17f64e:org.apache.tomcat.util.net.NioChannel@4d13a076:java.nio.channels.SocketChannel[connected local=/xx.xx.xx.xx:8082 remote=/192.168.99.12:53693]], Read from buffer: [0]
02-Jul-2022 18:50:10.580 FINE [http-nio-8082-exec-1190] org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@6b17f64e:org.apache.tomcat.util.net.NioChannel@4d13a076:java.nio.channels.SocketChannel[connected local=/xx.xx.xx.xx:8082 remote=/xx.xx.xx.xx:53693]], Read direct from socket: [255]
02-Jul-2022 18:50:10.580 FINE [http-nio-8082-exec-1190] org.apache.coyote.http11.Http11InputBuffer.fill Received [{"Email":"[email protected]","Fields":[{"Id":1,"Description":"nome","Value":"xxxxxx"},{"Id":2,"Description":"cognome","Value":"xxxxxxx"},{"Id":8,"Description":"paese","Value":"Italia"},{"Id":27,"Description":"compleanno","Value":"yyyy-mm-dd"}]}]
02-Jul-2022 18:50:13.940 FINE [http-nio-8082-Acceptor-0] org.apache.tomcat.util.threads.LimitLatch.countUpOrAwait Counting up[http-nio-8082-Acceptor-0] latch=205
02-Jul-2022 18:50:17.909 FINE [http-nio-8082-Acceptor-0] org.apache.tomcat.util.threads.LimitLatch.countUpOrAwait Counting up[http-nio-8082-Acceptor-0] latch=206
02-Jul-2022 18:50:18.252 FINE [http-nio-8082-Acceptor-0] org.apache.tomcat.util.threads.LimitLatch.countUpOrAwait Counting up[http-nio-8082-Acceptor-0] latch=207
02-Jul-2022 18:50:18.956 FINE [http-nio-8082-Acceptor-0] org.apache.tomcat.util.threads.LimitLatch.countUpOrAwait Counting up[http-nio-8082-Acceptor-0] latch=208
02-Jul-2022 18:58:57.810 FINE [Thread-17] org.apache.catalina.util.LifecycleBase.setStateInternal Setting state for [StandardServer[-1]] to [STOPPING_PREP]
02-Jul-2022 18:58:57.815 FINE [Thread-17] org.apache.catalina.util.LifecycleBase.setStateInternal Setting state for [StandardServer[-1]] to [STOPPING]
02-Jul-2022 18:58:57.816 FINE [Thread-17] org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.destroyMBeans Destroying MBeans for Global JNDI Resources
02-Jul-2022 18:58:57.822 FINE [Thread-17] org.apache.catalina.util.LifecycleBase.setStateInternal Setting state for [StandardService[Catalina]] to [STOPPING_PREP]
02-Jul-2022 18:58:57.822 INFO [Thread-17] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8082"]
[2022-07-02 18:58:44] [debug] ( prunsrv.c:1032) [ 8012] reportServiceStatusE: dwCurrentState = 4, dwWin32ExitCode = 0, dwWaitHint = 0, dwServiceSpecificExitCode = 0.
[2022-07-02 18:58:53] [debug] ( prunsrv.c:1032) [ 8012] reportServiceStatusE: dwCurrentState = 4, dwWin32ExitCode = 0, dwWaitHint = 0, dwServiceSpecificExitCode = 0.
[2022-07-02 18:58:54] [debug] ( prunsrv.c:1032) [ 8012] reportServiceStatusE: dwCurrentState = 4, dwWin32ExitCode = 0, dwWaitHint = 0, dwServiceSpecificExitCode = 0.
[2022-07-02 18:58:54] [debug] ( prunsrv.c:1032) [ 8012] reportServiceStatusE: dwCurrentState = 4, dwWin32ExitCode = 0, dwWaitHint = 0, dwServiceSpecificExitCode = 0.
->>>>>> [2022-07-02 18:58:57] [debug] ( prunsrv.c:1032) [ 8012] reportServiceStatusE: dwCurrentState = 3, dwWin32ExitCode = 0, dwWaitHint = 3000, dwServiceSpecificExitCode = 0.
[2022-07-02 18:58:57] [info] ( prunsrv.c:1132) [ 4112] Stopping service...
[2022-07-02 18:58:57] [debug] ( javajni.c:414 ) [ 4112] Loaded JVM DLL 'C:\Program Files\JAVA\bin\server\jvm.dll', home ''.
[2022-07-02 18:58:57] [debug] ( javajni.c:419 ) [ 4112] JNI_GetCreatedJavaVMs...
[2022-07-02 18:58:57] [debug] ( javajni.c:1003) [10616] argv[0] = stop
这是日志文件JSON有效载荷
[
{"Email":"[email protected]","Fields":
[
{"Id":1,"Description":"nome","Value":"xxxxxx"},
{"Id":2,"Description":"cognome","Value":"xxxxxxx"},
{"Id":8,"Description":"paese","Value":"Italia"},
{"Id":27,"Description":"compleanno","Value":"yyyy-mm-dd"}
]
}
]
I have a strange tomcat behaviour after posting a request in Json format.
Tomcat shutdown without any exception and/or error
This is the extract of the log file
02-Jul-2022 18:50:10.470 FINE [http-nio-8082-exec-1190] org.apache.catalina.authenticator.AuthenticatorBase.invoke Security checking request POST /xxxx/xxxx/xxxxxx
02-Jul-2022 18:50:10.470 FINE [http-nio-8082-exec-1190] org.apache.catalina.realm.RealmBase.findSecurityConstraints No applicable constraints defined
02-Jul-2022 18:50:10.470 FINE [http-nio-8082-exec-1190] org.apache.catalina.authenticator.AuthenticatorBase.invoke Not subject to any constraint
02-Jul-2022 18:50:10.486 FINE [http-nio-8082-Acceptor-0] org.apache.tomcat.util.threads.LimitLatch.countUpOrAwait Counting up[http-nio-8082-Acceptor-0] latch=204
02-Jul-2022 18:50:10.580 FINE [http-nio-8082-exec-1190] org.apache.coyote.http11.Http11InputBuffer.fill Before fill(): parsingHeader: [false], parsingRequestLine: [false], parsingRequestLinePhase: [0], parsingRequestLineStart: [0], byteBuffer.position(): [319], byteBuffer.limit(): [319], end: [319]
02-Jul-2022 18:50:10.580 FINE [http-nio-8082-exec-1190] org.apache.tomcat.util.net.SocketWrapperBase.populateReadBuffer Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@6b17f64e:org.apache.tomcat.util.net.NioChannel@4d13a076:java.nio.channels.SocketChannel[connected local=/xx.xx.xx.xx:8082 remote=/192.168.99.12:53693]], Read from buffer: [0]
02-Jul-2022 18:50:10.580 FINE [http-nio-8082-exec-1190] org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@6b17f64e:org.apache.tomcat.util.net.NioChannel@4d13a076:java.nio.channels.SocketChannel[connected local=/xx.xx.xx.xx:8082 remote=/xx.xx.xx.xx:53693]], Read direct from socket: [255]
02-Jul-2022 18:50:10.580 FINE [http-nio-8082-exec-1190] org.apache.coyote.http11.Http11InputBuffer.fill Received [{"Email":"[email protected]","Fields":[{"Id":1,"Description":"nome","Value":"xxxxxx"},{"Id":2,"Description":"cognome","Value":"xxxxxxx"},{"Id":8,"Description":"paese","Value":"Italia"},{"Id":27,"Description":"compleanno","Value":"yyyy-mm-dd"}]}]
02-Jul-2022 18:50:13.940 FINE [http-nio-8082-Acceptor-0] org.apache.tomcat.util.threads.LimitLatch.countUpOrAwait Counting up[http-nio-8082-Acceptor-0] latch=205
02-Jul-2022 18:50:17.909 FINE [http-nio-8082-Acceptor-0] org.apache.tomcat.util.threads.LimitLatch.countUpOrAwait Counting up[http-nio-8082-Acceptor-0] latch=206
02-Jul-2022 18:50:18.252 FINE [http-nio-8082-Acceptor-0] org.apache.tomcat.util.threads.LimitLatch.countUpOrAwait Counting up[http-nio-8082-Acceptor-0] latch=207
02-Jul-2022 18:50:18.956 FINE [http-nio-8082-Acceptor-0] org.apache.tomcat.util.threads.LimitLatch.countUpOrAwait Counting up[http-nio-8082-Acceptor-0] latch=208
02-Jul-2022 18:58:57.810 FINE [Thread-17] org.apache.catalina.util.LifecycleBase.setStateInternal Setting state for [StandardServer[-1]] to [STOPPING_PREP]
02-Jul-2022 18:58:57.815 FINE [Thread-17] org.apache.catalina.util.LifecycleBase.setStateInternal Setting state for [StandardServer[-1]] to [STOPPING]
02-Jul-2022 18:58:57.816 FINE [Thread-17] org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.destroyMBeans Destroying MBeans for Global JNDI Resources
02-Jul-2022 18:58:57.822 FINE [Thread-17] org.apache.catalina.util.LifecycleBase.setStateInternal Setting state for [StandardService[Catalina]] to [STOPPING_PREP]
02-Jul-2022 18:58:57.822 INFO [Thread-17] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8082"]
[2022-07-02 18:58:44] [debug] ( prunsrv.c:1032) [ 8012] reportServiceStatusE: dwCurrentState = 4, dwWin32ExitCode = 0, dwWaitHint = 0, dwServiceSpecificExitCode = 0.
[2022-07-02 18:58:53] [debug] ( prunsrv.c:1032) [ 8012] reportServiceStatusE: dwCurrentState = 4, dwWin32ExitCode = 0, dwWaitHint = 0, dwServiceSpecificExitCode = 0.
[2022-07-02 18:58:54] [debug] ( prunsrv.c:1032) [ 8012] reportServiceStatusE: dwCurrentState = 4, dwWin32ExitCode = 0, dwWaitHint = 0, dwServiceSpecificExitCode = 0.
[2022-07-02 18:58:54] [debug] ( prunsrv.c:1032) [ 8012] reportServiceStatusE: dwCurrentState = 4, dwWin32ExitCode = 0, dwWaitHint = 0, dwServiceSpecificExitCode = 0.
->>>>>> [2022-07-02 18:58:57] [debug] ( prunsrv.c:1032) [ 8012] reportServiceStatusE: dwCurrentState = 3, dwWin32ExitCode = 0, dwWaitHint = 3000, dwServiceSpecificExitCode = 0.
[2022-07-02 18:58:57] [info] ( prunsrv.c:1132) [ 4112] Stopping service...
[2022-07-02 18:58:57] [debug] ( javajni.c:414 ) [ 4112] Loaded JVM DLL 'C:\Program Files\JAVA\bin\server\jvm.dll', home ''.
[2022-07-02 18:58:57] [debug] ( javajni.c:419 ) [ 4112] JNI_GetCreatedJavaVMs...
[2022-07-02 18:58:57] [debug] ( javajni.c:1003) [10616] argv[0] = stop
JSON payload:
[
{"Email":"[email protected]","Fields":
[
{"Id":1,"Description":"nome","Value":"xxxxxx"},
{"Id":2,"Description":"cognome","Value":"xxxxxxx"},
{"Id":8,"Description":"paese","Value":"Italia"},
{"Id":27,"Description":"compleanno","Value":"yyyy-mm-dd"}
]
}
]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论