• KERROR:shared memory error - cannot remove

    By Lars Koenig 2 decades ago

    Hi everybody.

    I am trying to test kSpam on my Domino server and am recieving the following error:



    25.06.2004 19:16:06 kSpam.bload: Bayesian addin finished loading words

    25.06.2004 19:16:06 kSpam.bload: Bayesian addin calculating probabilities

    25.06.2004 19:16:06 kSpam.bload: Bayesian addin finished calculating probabilities

    25.06.2004 19:16:07 kSpam.bload: KERROR created

    25.06.2004 19:16:07 kSpam.bload: shared memory error - cannot remove



    My current configuration is:

    Domino 6.5.1 on SuSe Linux 8.1

    kSpam version 38b2 Linux



    My notes.ini variable are:

    EXTMGR_ADDINS=libkspam.so

    KS_RELOAD=1

    KS_BAYESIAN_FILTER=1

    KS_BAYESIAN_MARK=1

    KS_BAYESIAN_RATIO=10

    KS_MARK=1

    CONVERTER_LOG_LEVEL=10

    I used KS_BAYESIAN_PREP and KS_BAYESIAN_PREP_2 for some time but now have them removed.



    In my KSpamCon.nsf database I have about 30 deny rules and one allow rule. (none of the rules contains blank spaces at the beginning nor the end)

    In my mailspam.nsf database I have 500 spam e-mails. (all are marked as "confirmed")

    In my mailgood.nsf database I have about 120 "good" e-mail. (all are marked as "confirmed")

    The copied.nsf database exists.

    (the file names of the databases are exaclty as mentioned above and are placed directly in the root of the "notes data"-directory; the ACL-for the server is set to manager)



    Besides the error "kSpam.bload: shared memory error - cannot remove" that I get on the server console the kSpam-task seems to run. I even get documents into the MailSpam-database and the MailGood-database (with the PREP variables). It seems none of these are placed because of the bayesian-word-properbiliy but only because of the rules in my "kSpam-Configuration".

    The documents placed into the "MailSpam-database" have the field KS_IID with my domains name and the field KS_REASON with values like ""Subject: cialis"". No other KS_* fields are available.



    Does anybody know what causes the error or what configuration I should change ?

    Thanks in advance for any help or ideas.



    Bye



    Lars



    PS: I have read somewhere that there is a debug-parameter. I will try this now and post the result as well.

    • Same problem here...

      By Morten Lund 2 decades ago

      Running Mandrake 9.2 and Domino 6.5.2



      /Morten

      • ... this worked for me.

        By Lars Koenig 2 decades ago

        Hi,



        I solved the problem by decreasing the number of documents in the mailspam database.

        I guess that the problem was caused by eighter some "bad" sample mail that could not be analysed or by not enough physical memory on the computer (my testing machine is quite slow).



        Moreover I found out that it is not always enough to restart the kSpam-task but it is necessary to restart the whole server.



        Now kSpam works really good. !!!! (Thanks to all who made it.)



        However i get some server-crashes about once a day. I cant yet say that this is related to kSpam as it might be several other things as well.



        Bye



        Lars

        • Some explanation

          By Hans-Georg Franke 2 decades ago

          Hi,

          these behavour should only occur if some part of domino (perhaps the whole server) had crashed before.

          Than it is possible that due to some "zombie" processes shared memory cannot be written. A clean reboot

          of the linux machine should fix the problem.



          For a look at the system wide ressources you can use the ipc-tools

          ipcs and ipcrm.

          ipcs will show Semaphores, Message Quese and Shared Memory regions, ipcrm will remove ressources.

          Perhaps stopping domino and removing all system wide recources for the domino-user (typically notes)

          will also fix your problem too.

          Greetings Hans-Georg