question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

reactor_netty_connection_provider_active_connections is always 0, despite successful http requests

See original GitHub issue

Hello Reactor Team,

I wanted to repot an issue where the metric reactor_netty_connection_provider_active_connections always stays at 0, despite successful http requests.

Setup of experiment, at the hour, there is a trigger from an external app to my Spring Webflux app (I am the server). My Spring Webflux app will then make an http request (outbound, this time, I am the client) to a third party API.

The third party API is very resilient, and never fails. For proof, we do always get their HTTP response back.

Now, looking at the four metrics described here: https://projectreactor.io/docs/netty/release/reference/index.html#_metrics_3

reactor.netty.connection.provider.total.connections
reactor.netty.connection.provider.active.connections
reactor.netty.connection.provider.idle.connections
reactor.netty.connection.provider.pending.connections

I am surprise why active stays at 0, always.

I do see total.connections being incremented at every hour. I would say this is expected, since every hour, I make a successful http request to someone else.

I do see idle.connections being incremented at every hour. I would say this is expected, since every hour, I make a successful http request to someone else, I would imagine, after the successful request, the connection becomes idle, and stay that way forever

I do see pending.connections being flat at 0. but I would say this is expected since the http request is always successful, nothing is waiting, nothing is pending.

But I am surprised active stays at 0. I would have expected, at some point, active being incremented, since there is some kind of connection between me and the third party app.

Is it possible there is an issue this particular counter on not being incremented please?

Thank you

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
patpatpat123commented, Jul 15, 2021

Hello @violetagg,

Indeed, this is working, and I am now seeing the metric being incremented. Thank you

1reaction
patpatpat123commented, Jul 5, 2021

Understood, and thank you for pointing me to this, I will try to investigate if it is not a “me issue”.

Since there is a set of test already in place, maybe it is just me.

On my side, I am just also raising the issue based on Grafana data:

Screen Shot 2021-07-05 at 4 16 20 PM

For example here, we can clearly see http connections, with address being resolved, connect and SSL handshake.

But is those graph, we can clearly see reactor.netty.connection.provider.active.connections (the graph on the left) was flat 0 all the time. I was expecting an increase matching the time stamp.

Screen Shot 2021-07-05 at 4 17 49 PM

Will dig further

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reactor Netty Reference Guide
Suited for Microservices Architecture, Reactor Netty offers backpressure-ready network engines for HTTP (including Websockets), TCP , and UDP .
Read more >
reactor/reactor-netty - Gitter
I enabled debug logging for netty. Does the message "Channel acquired, now 500 active connections and 0 inactive connections" mean the pool is...
Read more >
HTTP client metrics issue for Pooled ConnectionProvider
Wanted to use additional HTTP client metrics for Pooled ConnectionProvider metrics: reactor.netty.connection.provider.total.connections ...
Read more >
Visiting Reactor Netty - Medium
Recently, I set out to learn about how Spring WebFlux works under the hood, I stumbled upon Reactor-Netty and I learned a lot...
Read more >
How to Avoid Common Mistakes When Using Reactor Netty
"In Spring Boot 2.x, Reactor Netty is the default runtime for creating reactive applications. Since the very first release of Reactor Netty, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found