Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

What could be the cause of - Unhandled exception in router

24 views
Skip to first unread message

Sachin Mittal

unread,
Mar 10, 2025, 11:03:46 PMMar 10
to vert.x
Hi,
We are running a vert.x web application and under extreme high load of 10 million concurrent connections we get the following logs:

2025-03-11 02:26:14,892 [ERROR] [vert.x-eventloop-thread-1] [io.vertx.ext.web.RoutingContext] - Unhandled exception in router

The web application is run on a cluster of EC2 nodes, behind a load balancer.
What we see is certain nodes, become unhealthy however CPU and Memory utilization stay's within limit of around 30% only.

Also in the logs we don't see any stacktrace so really unsure of what is cause this.

We have added a failure handler like this:

router.route().failureHandler(getFailureHandler());

In this we print status code and error message, and what we see is:

Error 200: Connection was closed

So looks like status is still 200, but  error message is Connection was closed

Any idea on how we can debug this problem or atleast have some stracktrace printed in the logs ?

Thanks
Sachin


Thomas SEGISMONT

unread,
Mar 20, 2025, 12:26:25 PMMar 20
to ve...@googlegroups.com
It looks like the load balancer closes some connection abruptly (with RST). In this case, you get a connection closed exception that is generic, with no cause in the the stacktrace

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/vertx/40c36b44-a853-4bbf-81cb-4040b2856aadn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages