Re: Memory problems running IPCop 2.1.4 on an ALIX.2D13 Board

Bob Brewer <[email protected]> Tue, 29 Apr 2014 10:41:53 +0100
Newsgroups gmane.comp.security.ipcop.devel
Organization Megadodo Publications
Message-ID <[email protected]>
Olaf Westrik wrote:

> On 2014-04-29 10:55, Bob Brewer wrote:
> 
>> Could the developers have a look at the peak loading requirements with
>> the latest version of IPCop when running on memory challenged systems
>> like the Alix as I think it would be shame to see that it was no longer
>> suitable for running IPCop.
> 
> Requirements vary (greatly!) depending on activated services.
> 
> Which scripts are terminating and what's the runtime of fcron jobs?
> More questions likely to come as information trickles in.
> 
> 


After moving makegraphs.pl to run 1 minute later I am not seeing any 
terminations. But for example my messages log for 25th April shows:

Apr 25 00:10:11 griffith2 fcron[10974]: Job 
/usr/local/bin/aggregatetraffic.pl > /dev/null terminated (exit status: 1)
Apr 25 00:10:11 griffith2 fcron[10966]: Job /usr/local/bin/makegraphs.pl 
>/dev/null terminated (exit status: 1)
Apr 25 16:30:15 griffith2 fcron[18980]: Job /usr/local/bin/monitorTraffic.pl 
> /dev/null terminated (exit status: 1)
Apr 25 17:30:15 griffith2 fcron[19445]: Job /usr/local/bin/setddns.pl --cron 
terminated (exit status: 1)
Apr 25 17:30:15 griffith2 fcron[19451]: Job /usr/local/bin/monitorTraffic.pl 
> /dev/null terminated (exit status: 1)
Apr 25 18:30:15 griffith2 fcron[19914]: Job /usr/local/bin/scheduler.pl --
cron >/dev/null terminated (exit status: 1)
Apr 25 18:30:15 griffith2 fcron[19916]: Job /usr/local/bin/setddns.pl --cron 
terminated (exit status: 1)
Apr 25 19:30:16 griffith2 fcron[20397]: Job /usr/local/bin/monitorTraffic.pl 
> /dev/null terminated (exit status: 1)
Apr 25 19:30:16 griffith2 fcron[20389]: Job /usr/local/bin/scheduler.pl --
cron >/dev/null terminated (exit status: 1)
Apr 25 19:30:16 griffith2 fcron[20391]: Job /usr/local/bin/setddns.pl --cron 
terminated (exit status: 1)
Apr 25 22:30:15 griffith2 fcron[21822]: Job /usr/local/bin/makegraphs.pl 
>/dev/null terminated (exit status: 1)
Apr 25 22:30:15 griffith2 fcron[21832]: Job /usr/local/bin/monitorTraffic.pl 
> /dev/null terminated (exit status: 1)

and excerpt from yesterday:


Apr 28 15:00:00 griffith2 fcron[24473]: Job /usr/local/bin/makegraphs.pl 
>/dev/null started for user root (pid 24474)
Apr 28 15:00:00 griffith2 fcron[24475]: Job /usr/local/bin/scheduler.pl --
cron >/dev/null started for user root (pid 24476)
Apr 28 15:00:00 griffith2 fcron[24477]: Job /usr/local/bin/setddns.pl --cron 
started for user root (pid 24478)
Apr 28 15:00:00 griffith2 fcron[24481]: Job 
/usr/local/bin/aggregatetraffic.pl > /dev/null started for user root (pid 
24482)
Apr 28 15:00:00 griffith2 fcron[24479]: Job /usr/local/bin/setfwrules --cron 
> /dev/null started for user root (pid 24480)
Apr 28 15:00:00 griffith2 fcron[24483]: Job /usr/local/bin/monitorTraffic.pl 
> /dev/null started for user root (pid 24485)
Apr 28 15:00:09 griffith2 t of memory [15060]
Apr 28 15:00:09 griffith2 t of memory [15060]
Apr 28 15:00:09 griffith2 t of memory [15060]
Apr 28 15:00:09 griffith2 t of memory [15060]
Apr 28 15:00:09 griffith2 t of memory [15060]
Apr 28 15:00:09 griffith2 t of memory [15060]
Apr 28 15:00:09 griffith2 t of memory [15060]
Apr 28 15:00:09 griffith2 t of memory [15060]
Apr 28 15:00:09 griffith2 t of memory [15060]
Apr 28 15:00:09 griffith2 t of memory [15060]
Apr 28 15:00:10 griffith2 t of memory [15060]
Apr 28 15:00:10 griffith2 t of memory [15060]
Apr 28 15:00:10 griffith2 t of memory [15060]
Apr 28 15:00:10 griffith2 t of memory [15060]
Apr 28 15:00:10 griffith2 squid[5254]: Squid Parent: (squid-1) process 15060 
exited due to signal 6 with status 0
Apr 28 15:00:13 griffith2 squid[5254]: Squid Parent: (squid-1) process 24492 
started
Apr 28 15:00:13 griffith2 fcron[24475]: Job /usr/local/bin/scheduler.pl --
cron >/dev/null completed
Apr 28 15:00:13 griffith2 fcron[24477]: Job /usr/local/bin/setddns.pl --cron 
completed
Apr 28 15:00:13 griffith2 squid[24492]: Starting Squid Cache version 3.3.12 
for i686-pc-linux-gnu...
Apr 28 15:00:13 griffith2 squid[24492]: Process ID 24492
Apr 28 15:00:13 griffith2 squid[24492]: Process Roles: worker
Apr 28 15:00:13 griffith2 squid[24492]: With 1024 file descriptors available
Apr 28 15:00:13 griffith2 squid[24492]: Initializing IP Cache...
Apr 28 15:00:13 griffith2 squid[24492]: DNS Socket created at 0.0.0.0, FD 8
Apr 28 15:00:13 griffith2 squid[24492]: Adding nameserver 127.0.0.1 from 
/etc/resolv.conf
Apr 28 15:00:13 griffith2 squid[24492]: Logfile: opening log 
stdio:/var/log/squid/access.log
Apr 28 15:00:13 griffith2 squid[24492]: Store logging disabled
Apr 28 15:00:13 griffith2 squid[24492]: Swap maxSize 0 + 4096 KB, estimated 
315 objects
Apr 28 15:00:13 griffith2 squid[24492]: Target number of buckets: 15
Apr 28 15:00:13 griffith2 squid[24492]: Using 8192 Store buckets
Apr 28 15:00:13 griffith2 squid[24492]: Max Mem  size: 4096 KB
Apr 28 15:00:13 griffith2 squid[24492]: Max Swap size: 0 KB
Apr 28 15:00:13 griffith2 squid[24492]: Using Least Load store dir selection
Apr 28 15:00:13 griffith2 squid[24492]: Current Directory is 
/home/httpd/cgi-bin
Apr 28 15:00:14 griffith2 fcron[24479]: Job /usr/local/bin/setfwrules --cron 
> /dev/null completed
Apr 28 15:00:14 griffith2 fcron[24483]: Job /usr/local/bin/monitorTraffic.pl 
> /dev/null completed
Apr 28 15:00:14 griffith2 squid[24492]: Loaded Icons.
Apr 28 15:00:14 griffith2 squid[24492]: HTCP Disabled.
Apr 28 15:00:14 griffith2 squid[24492]: Squid plugin modules loaded: 0
Apr 28 15:00:14 griffith2 squid[24492]: Accepting HTTP Socket connections at 
local=127.0.0.1:82 remote=[::] FD 10 flags=9
Apr 28 15:00:14 griffith2 squid[24492]: Accepting HTTP Socket connections at 
local=192.168.0.254:8080 remote=[::] FD 11 flags=9
Apr 28 15:00:14 griffith2 squid[24492]: Accepting NAT intercepted HTTP 
Socket connections at local=192.168.0.254:82 remote=[::] FD 12 flags=41
Apr 28 15:00:14 griffith2 squid[24492]: Accepting HTTP Socket connections at 
local=10.0.100.254:8080 remote=[::] FD 13 flags=9
Apr 28 15:00:14 griffith2 squid[24492]: Accepting NAT intercepted HTTP 
Socket connections at local=10.0.100.254:82 remote=[::] FD 14 flags=41
Apr 28 15:00:14 griffith2 squid[24492]: storeLateRelease: released 0 objects
Apr 28 15:00:19 griffith2 fcron[24481]: Job 
/usr/local/bin/aggregatetraffic.pl > /dev/null completed
Apr 28 15:00:24 griffith2 fcron[24473]: Job /usr/local/bin/makegraphs.pl 
>/dev/null completed



I should say that this isn't a clean install of IPCop 2.1.4 and I am running 
my Adslmonitor addon plus an blocklist which adds about 500 extra entries to 
Iptables. I have previously moved the adslmonitor script to run 2 minutes 
later in fcron and doesn't now seem to be causing any conflicts.





Bob

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs