James Bunton wrote: > On 01/06/2006, at 9:21 PM, Lucas Nussbaum wrote: > >> Hi, >> >>> From time to time, pymsnt starts using a lot of CPU for about 30s, while >> it doesn't use that much the rest of the time. No message is logged >> during this time period. >> >> Those high load periods can be seen on >> http://apijab.apinc.org/munin/apinc.org/apijab.apinc.org-cpu.html >> pymsnt is nearly the only thing running on this system, and I've >> verified that pymsnt was the cause for the high CPU usage. >> >> Sometimes, it's longer or shorter that 35s : >> 13:08:38 -> 13:09:17 >> >> >> What does QNG mean ? >> What could be the source for this ? >> I'm using pymsnt r168. >> >> I'm available for testing/debugging if needed. > > > :| > > That's not good. Has it just started doing it recently? > QNG is just a ping. It shouldn't have anything to do with it. > > Garbage collection maybe? > > Anybody got any ideas?
I would guess garbage collection. How is the memory usage of python when this happens? How much memory is in the system? how much is used by python, how much for buffers, how much swap is used? If python has to garbage collect on things that where swapped out this can cause a high load. Cya, Hylke -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 252 bytes Desc: OpenPGP digital signature Url : http://modevia.com/pipermail/py-transports/attachments/20060608/377cdfcc/signature.pgp From [EMAIL PROTECTED] Thu Jun 8 14:21:17 2006 From: [EMAIL PROTECTED] (=?iso-8859-1?Q?S=E9rgio_Freire?=) Date: Thu Jun 8 14:21:27 2006 Subject: [py-transports] spam problem in ICQ and MSN - can pyxxx block this? Message-ID: <[EMAIL PROTECTED]> Hi all. I don't know if you have been experiencing this but I have and some colleagues of mine also. I'm connected through a jabber server, of course, to the ICQ and MSN networks. On ICQ I keep receiving "user xxx added to your contact list" (or similar), "xxx is now online"... and then the guy/script sends me a message: "hi! I have some photos of mine. Please see them at http://blabla"... On MSN, I have some new friends and sometimes "spam contacts" which get added to my contact list without asking me anything.. So, a) why on ICQ spam contacts get added to my contact list without asking me; how can there be so many spam clients on ICQ? Is this also happening to you? b) why on MSN contacts get in my contact list? (here I'm not sure if I had them in the past... maybe.. not 100% sure) c) is this a Pandion bug or so that accepts every thing? Note: I'm using Pandion 2.5 with "accept users that are in my contact list, ask other" option enabled and "display messages from people not in my contact list" disabled Regards, Sergio Freire From [EMAIL PROTECTED] Thu Jun 8 14:26:48 2006 From: [EMAIL PROTECTED] (James Bunton) Date: Thu Jun 8 14:26:58 2006 Subject: [py-transports] Another bug in pyMSN-t In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> On 08/06/2006, at 10:43 PM, Alexey Nezhdanov wrote: > Here I describe actually two bugs. One bug is obvious - pyMSN-t > replies with > type='subscribed' too fast and second may be not so easy to catch - > account > going offline for some reason. > > Here is example of this: two contacts, one registered in pyMSN-t > and other one > logged in in GAIM trying to chat with each other. > pyMSN-t accont is operating by script, GAIM operated by human. > All packets going there and here very fast, I didn't measured, that > may be > pretty about 0.1-0.2 second. > > 1) script sends subscription request to gaim and waits for > subscription > approval by gaim > <presence from='[EMAIL PROTECTED]' to='snakeru11% > [EMAIL PROTECTED]' > type='subscribe' id='117'/> > > 2) (First bug) pyMSN-t immidiatedly sends back subscription approval > <presence to='[EMAIL PROTECTED]' from='snakeru11% > [EMAIL PROTECTED]' > type='subscribed'/> > > 3) pyMSN-t notifies that other party is offline > <presence to='[EMAIL PROTECTED]' > from='[EMAIL PROTECTED]/msn' type='unavailable' /> > > 4) script ignores "user is offline" presence and sends a message > <message from='[EMAIL PROTECTED]/reply' > to='[EMAIL PROTECTED]' id='119'><body>test</ > body></message> > > 5) scrpt deletes newly-added contact from roster > <presence from='[EMAIL PROTECTED]' to='snakeru11% > [EMAIL PROTECTED]' > type='unsubscribe'/> > > 6) (second bug) account suddenly going offline > <presence to='[EMAIL PROTECTED]' from='msn.localhost' > type='unavailable'/> > > Obviously second bug is triggered by way too fast stanzas coming in: > subscribe+message+unsubscribe. Though transport still better should > stand it > IMHO. > > -- > Respectfully > Alexey Nezhdanov The first 'bug', is designed. Unfortunately, there's no way around it. The MSN protocol provides no way to know when somebody authorises, or deauthorises you. So PyMSNt just assumes it happens immediately. Its the best guess we can do :) The second is indeed a bug. Deleting a contact should not cause the transport to log you off. What version of the transport are you using? I have fixed a few contact list bugs, so it may be fixed in the latest SVN version. You can switch to that by doing svn switch svn://delx.cjb.net/pymsnt/trunk/ from within your PyMSNt directory, and then restarting the transport. --- James
