Changeset 7332

Show
Ignore:
Timestamp:
07/22/11 15:59:29 (2 years ago)
Author:
jow
Message:

libs/lucid: perform full gc cycle prior to forking, massively improves memory consumption

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/libs/lucid/luasrc/lucid.lua

    r5502 r7332  
    137137        elseif stat == 0 then 
    138138            ifaddrs = nixio.getifaddrs() 
    139             collectgarbage("collect") 
    140139        end 
    141140         
     
    232231        nixio.syslog("warning", "Cannot create thread: process limit reached") 
    233232        return nil 
     233    else 
     234        collectgarbage("collect") 
    234235    end 
    235236    local pid, code, err = nixio.fork()