Linode Forum
https://forum.linode.com/

mailman memory error when attempting to close db
https://forum.linode.com/viewtopic.php?f=11&t=3318
Page 1 of 1

Author:  schemelab [ Tue Jun 10, 2008 7:27 pm ]
Post subject:  mailman memory error when attempting to close db

Code:

root@li2-168:/var/lib/mailman/data# ../bin/discard ./heldmsg-asciidoc-discuss-11
.pck

Discarded held msg #11 for list asciidoc-discuss
Traceback (most recent call last):
  File "../bin/discard", line 120, in ?
    main()
  File "../bin/discard", line 113, in main
    mlist.Save()
  File "/usr/lib/mailman/Mailman/MailList.py", line 564, in Save
    self.SaveRequestsDb()
  File "/usr/lib/mailman/Mailman/ListAdmin.py", line 129, in SaveRequestsDb
    self.__closedb()
  File "/usr/lib/mailman/Mailman/ListAdmin.py", line 108, in __closedb
    cPickle.dump(self.__db, fp, 1)
MemoryError
root@li2-168:/var/lib/mailman/data#

[/code]

Author:  fendrish78 [ Wed Jun 11, 2008 10:36 am ]
Post subject: 

How much memory do you available when you run the command?

Also how large is /heldmsg-asciidoc-discuss-11.pck?

Sean

Author:  schemelab [ Wed Jun 11, 2008 6:48 pm ]
Post subject: 

fendrish78 wrote:
How much memory do you available when you run the command?

Code:
root@li2-168:/var/lib/mailman/data# free -m
             total       used       free     shared    buffers     cached
Mem:           347        344          3          0          1          8
-/+ buffers/cache:        334         13
Swap:          255        255          0


fendrish78 wrote:
Also how large is /heldmsg-asciidoc-discuss-11.pck?


well I managed to get rid of that one... I will see how large another one is in a sec.

Author:  fendrish78 [ Thu Jun 12, 2008 10:08 am ]
Post subject: 

It may just be because I havent had my coffee but it appears you have 3 megs of ram and 0 swap free? That would be a major issue. Please correct me if I am reading that output wrong.

Sean

Author:  schemelab [ Thu Jun 12, 2008 1:15 pm ]
Post subject: 

fendrish78 wrote:
It may just be because I havent had my coffee but it appears you have 3 megs of ram and 0 swap free? That would be a major issue. Please correct me if I am reading that output wrong.

Sean


well its happening because of mailman... increasing swap is not the solution. getting mailman to behave is :)

Author:  fendrish78 [ Thu Jun 12, 2008 4:49 pm ]
Post subject: 

It hard to tell without knowing the whole picture but if you have large files and mailman is trying to load multiple large files into limited memory(over 1.2 gigs of files at once) then mailman isnt misbehaving it just the system isn't scaled correctly to the traffic.

Are you having a large amount of new traffic to your mailing lists since it started happening?

Author:  schemelab [ Thu Jun 12, 2008 5:32 pm ]
Post subject: 

fendrish78 wrote:
It hard to tell without knowing the whole picture but if you have large files and mailman is trying to load multiple large files into limited memory(over 1.2 gigs of files at once) then mailman isnt misbehaving it just the system isn't scaled correctly to the traffic.

Are you having a large amount of new traffic to your mailing lists since it started happening?


no not a low of new traffic. I just made the mistake of ignoring all those held messages... now there are tons of them. And the request.pck file is huge.

THe good news is that the guy I was doing this list for wants to move to a Google group. So I will be doing apt-get remove mailman soon and very soon (grin) hahahahahahha!

Author:  fendrish78 [ Thu Jun 12, 2008 8:21 pm ]
Post subject: 

That will certainly fix the problem :D

Another possible solution is to create a good size swap file temporarily and mount it as swap while doing the discard. It will be slow but it should work if it is truly a memory issue.

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/