Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to get the current http connections in SpringBoot application?

I just want to know the active http connections to my SpringBoot application. I will refer this to estimate web users time to time. Is there any way to get this?

  1. I got this answer from StackOverflow post. But this is a bit different from my environment. My application is deployed in Production Linux server, which is beyond my touch. So I cannot run any JMX tool on it.

  2. I tried SpringBoot actuator. I can only get httpsessions.active, this is not what I want. I want http request count, not http session count.

Any help for this? Thanks.

like image 741
Robin Sun Avatar asked Sep 15 '25 04:09

Robin Sun


1 Answers

Someone show a way in the server to get the current connections.

netstat -an | grep :8090 | wc -l

I think this is the direct way to do.

like image 106
Robin Sun Avatar answered Sep 16 '25 19:09

Robin Sun