# Access to live limit\_conn values?

**URL:** <https://www.ruby-forum.com/t/access-to-live-limit-conn-values/236603>\
**Category:** NGINX\
**Created:** [September 19, 2013, 2:59am UTC](https://www.ruby-forum.com/t/access-to-live-limit-conn-values/236603 "2013-09-19T02:59:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [September 19, 2013, 2:59am UTC](https://www.ruby-forum.com/t/access-to-live-limit-conn-values/236603/1 "2013-09-19T02:59:00Z")

</div>

I’m looking for a way get the value of the current number of connections  
in  
a given limit\_conn zone.There is no variable access that I can find.

I’m considering hacking this into the stub\_status module, so that all of  
the  
active connection zones are displayed with the current number of active  
connections.

Is this value accessible via the lua or perl interface?

Having a way to just add this value to the log line might be sufficient.

Bryn

Posted at Nginx Forum:

> **[Access to live limit\_conn values?](https://forum.nginx.org/read.php?2,242973,242973#msg-242973)**
>
> I'm looking for a way get the value of the current number of connections in a given limit\_conn zone.There is no variable access that I can find. I'm considering hacking this into the stub\_status module, so that all of the active connection zones are...

---

<div class="post-metadata">

**Author:** ![bryndole](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f08c70/32.png) [@bryndole](https://www.ruby-forum.com/u/bryndole)\
**Post date:** [September 27, 2013, 1:59am UTC](https://www.ruby-forum.com/t/access-to-live-limit-conn-values/236603/2 "2013-09-27T01:59:50Z")

</div>

Our own investigation indicates that, no, there is not way to directly  
access the values in the limit\_conn zones from “user space.”

We created a new status page that reports all the existing zones and the  
current connection counts for each, as well as what the current limits  
are.  
It does this by walking the config data structure and building a list of  
the  
zones and then creating a simple report page.

-Bryn

Posted at Nginx Forum:

> **[Re: Access to live limit\_conn values?](https://forum.nginx.org/read.php?2,242973,243178#msg-243178)**
>
> I'm looking for a way get the value of the current number of connections in a given limit\_conn zone.There is no variable access that I can find. I'm considering hacking this into the stub\_status module, so that all of the active connection zones are...
