High memoryload and using Swap

Support and queries relating to all previous versions of ZoneMinder
Locked
Ben
Posts: 35
Joined: Sat Jul 10, 2004 10:09 am
Location: The Netherlands

High memoryload and using Swap

Post by Ben »

I'm using ZM with 2 camera's with the Spectra8. 24/7 in modect. ( Mandriva 2006) After a while my memory (1GB) is full. The swap is full and ofcourse my system is very slow.

What is the problem.??

Grz Ben
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i had this problem on a 1.6.11 kernel changing to 2.6.12 fixed it maybe you could try that?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Ben
Posts: 35
Joined: Sat Jul 10, 2004 10:09 am
Location: The Netherlands

Post by Ben »

I have already 2.6.12-12mdk
Here a screendump (top) after a restart.

top - 16:13:40 up 6:01, 3 users, load average: 0.01, 0.15, 0.15
Tasks: 100 total, 1 running, 98 sleeping, 1 stopped, 0 zombie
Cpu(s): 4.7% us, 1.3% sy, 0.0% ni, 94.0% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 1035596k total, 566820k used, 468776k free, 20096k buffers
Swap: 1124508k total, 0k used, 1124508k free, 318048k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
915 apache 15 0 118m 23m 20m S 0.0 2.3 0:00.87 zmc
4940 apache 15 0 118m 23m 20m S 0.0 2.3 0:00.59 zmc
2884 mysql 15 0 109m 20m 4216 S 0.0 2.0 0:10.53 mysqld-max
4923 apache 15 0 102m 7304 4752 S 0.7 0.7 2:04.40 zma
4948 apache 15 0 102m 7300 4752 S 0.3 0.7 1:58.40 zma
3496 root 15 0 100m 14m 4884 S 2.7 1.5 0:23.96 X
5659 ben 15 0 95676 31m 18m S 1.7 3.1 0:19.52 mozilla-bin
5710 ben 16 0 93368 28m 17m S 0.0 2.9 0:09.09 mozilla-firefox
3909 ben 15 0 34476 13m 10m S 0.0 1.3 0:08.77 kded
3929 ben 15 0 31972 17m 14m S 0.0 1.7 0:05.28 kdesktop
4008 ben 15 0 31040 14m 12m S 0.0 1.5 0:04.33 knotify
3932 ben 15 0 28572 16m 12m S 0.0 1.6 0:03.20 kicker
5572 ben 15 0 27592 14m 11m S 0.0 1.4 0:00.86 konsole
3997 ben 15 0 26992 14m 11m S 0.0 1.5 0:05.21 kmix
5776 root 15 0 26172 19m 9148 S 0.0 1.9 0:01.42 drakconf.real
3927 ben 16 0 25884 13m 10m S 0.0 1.3 0:00.75 kwin
3923 ben 16 0 24740 11m 9560 S 0.0 1.1 0:00.15 kaccess
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

can you do a top screen dump when its full up? as that looks great
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Ben
Posts: 35
Joined: Sat Jul 10, 2004 10:09 am
Location: The Netherlands

Post by Ben »

Ok.I will. Only I have to wait now. I've restarted the computer. Is there a command to clean the swap??
Thx
Ben
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I noticed your using X and mozila/Firefox... Thats whats going to kill ya.
Corey
Flash_
Posts: 441
Joined: Wed Jan 11, 2006 12:19 pm

Post by Flash_ »

r, Firefox still has that garbage collection issue and seems to need regular restarts to prune it's ram usage down.

I don't know of a way to clean swap - not sure that's a prudent path to take. Might be a better route to create more swap space, either partition or file - but again, need some info of what's going on when the problem occurs.

(I'm not a guru, the above could be wrong)
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Are you trying to display the montage for extended periods?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Ben
Posts: 35
Joined: Sat Jul 10, 2004 10:09 am
Location: The Netherlands

Post by Ben »

Hi,
I'm still waiting but the problems seems to be solved since I use mozilla in stead off Firefox.
For the most of the time I'm using the linux-pc as a server and I do view the montage view on a Xp computer. Not for a long time. Maximum for one hour.
I will inform you.
Thanks a lot.
Ben
Locked