Menu

#3558 list leases is unuseable with large dhcpd.leases file

open
5
2009-12-09
2009-12-09
Digger
No

list_leases.cgi is consuming large amount of memory as the size of the dhcpd.leases file increases. at 10k lines it was using 37% of all MEM according to "ps aux" at 100k lines it was using 87% and beyond that the server just stops responding. Live file has over 400k lines. RHEL 5 and Webmin 1.49. I have tried this under miniserv.pl and apache Web servers.

Discussion

  • Digger

    Digger - 2009-12-09
    • summary: list leases is unesable with large dhcpd.leases file --> list leases is unuseable with large dhcpd.leases file
     
  • Jamie Cameron

    Jamie Cameron - 2009-12-10

    That's surprising, as I have used Webmin to manage large lease files before.

    Is there any chance I could take a look at yours to see if something about its structure is making Webmin process it slowly? If so, please email it to jcameron@webmin.com and reference this bug..

     
  • Digger

    Digger - 2009-12-11

    File sent as requested.

     
  • Jamie Cameron

    Jamie Cameron - 2009-12-11

    Thanks - I had a look at your lease file and checked into how Webmin is parsing it, and unfortunately I just don't see any easy way to make Webmin faster in this case. It uses perl regexps to tokenize the dhcpd.leases file, and they are just plain slow. Sorry..

     

Log in to post a comment.

Auth0 Logo