Current time: 07-24-2025, 11:39 AM Hello There, Guest! (LoginRegister)


Post Reply 
High mem usage by ispcp-vrl-traff
Author Message
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #14
RE: High mem usage by ispcp-vrl-traff
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
11-17-2007 04:52 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
High mem usage by ispcp-vrl-traff - achioo - 11-15-2007, 02:38 PM
RE: High mem usage by ispcp-vrl-traff - pgentoo - 11-17-2007 04:52 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)