Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

validador crash ContextHandler Stopped 2.25 #43

Closed
cwiech opened this issue Dec 18, 2018 · 3 comments
Closed

validador crash ContextHandler Stopped 2.25 #43

cwiech opened this issue Dec 18, 2018 · 3 comments

Comments

@cwiech
Copy link

cwiech commented Dec 18, 2018

I am having issues where the software is crashing ( 2.25). I have seen issues in our lab where the nessus security scanner will kill software (a java spring application that I wrote... the nessus scanner will kill it once in a while... I haven't figure out what its doing just yet)... so I setup this server special and used iptables to ensure only the rpki clients could reach the server and isolate out the security scans.

NOTE on some of the clients... gobgp's implementation doesn't appear to send keepalives (nor does the validator)... so all those 172.17 hosts in the log will bounce from time to time. It looks to me like the validator software is doing something funny with ack seq numbers...I can submit that too... the validator seems to roll back in time on the seq numbers, and then it Fin's the sesion.

But ignore that for now, they come back again I am just using gobgp for testing... this is the real issue where the app dies... not sure what happened here...

2018-12-17 22:41:42,741 INFO [shutdownHook2] ContextHandler Stopped o.e.j.s.ServletContextHandler@6941827a{/,jar:file:/data/rpki/rpki-validator-app-2.25/lib/rpki-validator-app-2.25.jar!/public,UNAVAILABLE}

It's a good sized box, 128G or RAM, 16 cores/32 thread. It had 11 RPKI clients when this happend (they had run fine most of the day).

vhs13:/data/rpki/rpki-validator-app-2.25/log$ uname -a
Linux vhs13 4.15.0-42-generic #45-Ubuntu SMP Thu Nov 15 19:32:57 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

vhs13:/data/rpki/rpki-validator-app-2.25/log$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

** validator.log when it died.

2018-12-17 22:41:42,729 INFO [New I/O server boss #1 ([id: 0x3b7d3a38, /0:0:0:0:0:0:0:0:8282])] RTRServerHandler Client connected : /172.17.0.8:52388
2018-12-17 22:41:42,730 INFO [shutdownHook1] RTRServerHandler Client disconnected : /172.17.0.3:55436
2018-12-17 22:41:42,730 INFO [New I/O server boss #1 ([id: 0x3b7d3a38, /0:0:0:0:0:0:0:0:8282])] RTRServerHandler Client connected : /172.17.0.5:51918
2018-12-17 22:41:42,731 INFO [shutdownHook1] RTRServerHandler Client disconnected : /172.17.0.2:50534
2018-12-17 22:41:42,732 INFO [New I/O server boss #1 ([id: 0x3b7d3a38, /0:0:0:0:0:0:0:0:8282])] RTRServerHandler Client connected : /10.40.137.173:52248
2018-12-17 22:41:42,733 INFO [shutdownHook1] RTRServerHandler Client disconnected : /172.17.0.4:39726
2018-12-17 22:41:42,733 INFO [New I/O server boss #1 ([id: 0x3b7d3a38, /0:0:0:0:0:0:0:0:8282])] RTRServerHandler Client connected : /172.17.0.7:47182
2018-12-17 22:41:42,734 INFO [New I/O server boss #1 ([id: 0x3b7d3a38, /0:0:0:0:0:0:0:0:8282])] RTRServerHandler Client connected : /172.17.0.9:52302
2018-12-17 22:41:42,734 INFO [New I/O server boss #1 ([id: 0x3b7d3a38, /0:0:0:0:0:0:0:0:8282])] RTRServerHandler Client connected : /172.17.0.3:55486
2018-12-17 22:41:42,736 INFO [shutdownHook2] ServerConnector Stopped ServerConnector@6aecbb8d{HTTP/1.1}{0.0.0.0:8080}
2018-12-17 22:41:42,741 INFO [shutdownHook2] ContextHandler Stopped o.e.j.s.ServletContextHandler@6941827a{/,jar:file:/data/rpki/rpki-validator-app-2.25/lib/rpki-validator-app-2.25.jar!/public,UNAVAILABLE}
2018-12-17 22:41:42,742 INFO [shutdownHook2] Main Terminating...
2018-12-17 22:41:56,486 WARN [New I/O server worker #1-4] RTRServerHandler java.nio.channels.ClosedChannelException
2018-12-17 22:41:56,487 INFO [New I/O server worker #1-4] RTRServerHandler Client disconnected : /172.17.0.7:47182
2018-12-17 22:41:56,488 WARN [New I/O server worker #1-4] RTRServerHandler java.nio.channels.ClosedChannelException
2018-12-17 22:41:56,948 WARN [New I/O server worker #1-6] RTRServerHandler java.nio.channels.ClosedChannelException
2018-12-17 22:41:56,948 WARN [New I/O server worker #1-3] RTRServerHandler java.nio.channels.ClosedChannelException
2018-12-17 22:41:56,949 WARN [New I/O server worker #1-62] RTRServerHandler java.nio.channels.ClosedChannelException
2018-12-17 22:41:56,950 INFO [New I/O server worker #1-3] RTRServerHandler Client disconnected : /10.40.137.173:52248
2018-12-17 22:41:56,950 INFO [New I/O server worker #1-6] RTRServerHandler Client disconnected : /172.17.0.3:55486
2018-12-17 22:41:56,951 INFO [New I/O server worker #1-62] RTRServerHandler Client disconnected : /172.17.0.10:54810
2018-12-17 22:41:56,951 WARN [New I/O server worker #1-6] RTRServerHandler java.nio.channels.ClosedChannelException
2018-12-17 22:41:56,951 WARN [New I/O server worker #1-3] RTRServerHandler java.nio.channels.ClosedChannelException
2018-12-17 22:41:56,951 WARN [New I/O server worker #1-62] RTRServerHandler java.nio.channels.ClosedChannelException
2018-12-17 22:41:57,362 WARN [New I/O server worker #1-2] RTRServerHandler java.nio.channels.ClosedChannelException
2018-12-17 22:41:57,363 INFO [New I/O server worker #1-2] RTRServerHandler Client disconnected : /172.17.0.5:51918
2018-12-17 22:41:57,363 WARN [New I/O server worker #1-2] RTRServerHandler java.nio.channels.ClosedChannelException
2018-12-17 22:41:57,367 WARN [New I/O server worker #1-5] RTRServerHandler java.nio.channels.ClosedChannelException
2018-12-17 22:41:57,369 INFO [New I/O server worker #1-5] RTRServerHandler Client disconnected : /172.17.0.9:52302
2018-12-17 22:41:57,369 WARN [New I/O server worker #1-5] RTRServerHandler java.nio.channels.ClosedChannelException
2018-12-17 22:41:57,370 WARN [New I/O server worker #1-64] RTRServerHandler java.nio.channels.ClosedChannelException
2018-12-17 22:41:57,370 INFO [New I/O server worker #1-64] RTRServerHandler Client disconnected : /10.40.137.173:44580
2018-12-17 22:41:57,371 WARN [New I/O server worker #1-64] RTRServerHandler java.nio.channels.ClosedChannelException
2018-12-17 22:41:57,373 WARN [New I/O server worker #1-63] RTRServerHandler java.nio.channels.ClosedChannelException
2018-12-17 22:41:57,373 INFO [New I/O server worker #1-63] RTRServerHandler Client disconnected : /172.17.0.6:49382
2018-12-17 22:41:57,373 WARN [New I/O server worker #1-63] RTRServerHandler java.nio.channels.ClosedChannelException
2018-12-17 22:41:57,384 WARN [New I/O server worker #1-1] RTRServerHandler java.nio.channels.ClosedChannelException
2018-12-17 22:41:57,384 INFO [New I/O server worker #1-1] RTRServerHandler Client disconnected : /172.17.0.8:52388
2018-12-17 22:41:57,384 WARN [New I/O server worker #1-1] RTRServerHandler java.nio.channels.ClosedChannelException
2018-12-17 22:41:57,386 INFO [shutdownHook1] RTRServer RTR server stopped

@omuravskiy
Copy link
Collaborator

Hi cwiech,

The second line in the log you supplied is coming from the "shutdownHook1" thread, which is usually called by the SIGTERM handler. Are you sure nothing is killing the process?

If it is dying on its own, the clue should be on the log before any of "shutdownHook" logs.

Cheers,
Oleg

@cwiech
Copy link
Author

cwiech commented Dec 19, 2018 via email

@omuravskiy
Copy link
Collaborator

Yes, 1.5G is a minimum maxMemory, if you have all RIR's trust anchors installed, that might be not enough. 2G should be OK, and 3-4G – even better.

@cwiech cwiech closed this as completed Feb 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants