Sw1fty Wrote:Hi there,
I have the same problem ... with VHCS2 and ISPCP i think it's the same script. The Traffic script eats 95% of the memory on a machine with 2GB Ram ... When the Traffic stats are calculating the system is unaccessable via SSH HTTP or anything other ... So this script needs to be speed up and improved ... I deactivatet the traffic calculation on our machines because it always results in highloads ...
Greetings
Sw1fty
Ok, well at this point I would like one of the lead developers to chime in and say whether we need to keep these traff files around, or we can just truncate them each time we generate the traffic stats. If there is no issue doing this, then i think it is an "easy" change to wipe the file after copying it to the ./backup/ (where it does the actual parsing). The only issue i see with this, is what if the database call to update the bandwidth usage fails? We need to persist that somewhere so it can be updated later, but there is no reason we should have to totally recalculate it next time we run...
Anyone have any feedback on the proposed changes?
Thanks,
Jesse