Re: High CPU with Beagle Thunderbird



On 9/1/06, Joe Shaw <joeshaw novell com> wrote:
Hi,

On Fri, 2006-09-01 at 10:58 -0400, Luke Driscoll wrote:
> When thunderbird is being indexed my CPU remains at 100% until I kill
> the beagle processes.  I have tried running it over night to create
> the index, but the problem continues to occur.

Take a look at your ~/.beagle/Log directory and see if you have any
errors in those files.  Make sure you run beagled with --debug if you
only see "Warn" and "Error" messages in the logs.

I am seeing a lot of DEBUG messages saying that it is indexing my msf files, when I do a grep for warn/error I get things like this (names obfuscated)


current-Beagle:060905 0849508000 04225 Beagle ERROR EX: Caught exception while trying to parse Kopete contact list:
current-Beagle:060905 0849508000 04225 Beagle ERROR EX: System.Xml.XmlException: Document element did not appear. file:///home/luke/.kde/share/apps/kopete/contactlist.xml Line 1, position 1.
current-Beagle:060905 0849508000 04225 Beagle ERROR EX: in <0x00193> System.Xml.XmlTextReader:Read ()
current-Beagle:060905 0849508000 04225 Beagle ERROR EX: in <0x00067> System.Xml.XmlDocument:ReadNode (System.Xml.XmlReader reader)
current-Beagle:060905 0849508000 04225 Beagle ERROR EX: in <0x0003e> System.Xml.XmlDocument:Load (System.Xml.XmlReader xmlReader)
current-Beagle:060905 0849508000 04225 Beagle ERROR EX: in <0x00069> System.Xml.XmlDocument:Load (System.String filename)
current-Beagle:060905 0849508000 04225 Beagle ERROR EX: in [0x0003d] (at /tmp/build/beagle/cvs/beagle/Util/ImBuddy.cs:349) Beagle.Util.KopeteBuddyListReader:Read ()
current-Beagle:060905 0850548462 04225 Beagle  WARN EX: IndexingService: Unable to parse URI in /home/luke/.beagle/ToIndex/.firefox-beagle-c218f257b5c0000d80245e7999206984.html:
current-Beagle:060905 0850548462 04225 Beagle  WARN EX: System.ArgumentNullException: Argument cannot be null.
current-Beagle:060905 0850548462 04225 Beagle  WARN EX: Parameter name: uriString
current-Beagle:060905 0850548462 04225 Beagle  WARN EX: in <0x00da4> System.Uri:Parse (System.String uriString)
current-Beagle:060905 0850548462 04225 Beagle  WARN EX: in <0x00014> System.Uri:ParseUri ()
current-Beagle:060905 0850548462 04225 Beagle  WARN EX: in <0x0000a> System.Uri:Parse ()
current-Beagle:060905 0850548462 04225 Beagle  WARN EX: in <0x00051> System.Uri:.ctor (System.String uriString, Boolean dontEscape)
current-Beagle:060905 0850548462 04225 Beagle  WARN EX: in <0x0000f> System.Uri:.ctor (System.String uriString)
current-Beagle:060905 0850548462 04225 Beagle  WARN EX: in (wrapper remoting-invoke-with-check) System.Uri:.ctor (string)
current-Beagle:060905 0850548462 04225 Beagle  WARN EX: in [0x0004d] (at /tmp/build/beagle/cvs/beagle/beagled/IndexingServiceQueryable/IndexingServiceQueryable.cs:126) Beagle.Daemon.IndexingServiceQueryable.IndexingServiceQueryable:FileToIndexable (System.IO.FileInfo data_file)
current-Beagle:060905 0850548552 04225 Beagle ERROR EX: Caught exception executing Inotify callbacks
current-Beagle:060905 0850548552 04225 Beagle ERROR EX: System.NullReferenceException: Object reference not set to an instance of an object
current-Beagle:060905 0850548552 04225 Beagle ERROR EX: in [0x00014] (at /tmp/build/beagle/cvs/beagle/beagled/LuceneQueryable.cs:511) Beagle.Daemon.LuceneQueryable+AddTask:.ctor (Beagle.Daemon.LuceneQueryable queryable, Beagle.Indexable indexable)
current-Beagle:060905 0850548552 04225 Beagle ERROR EX: in [0x00002] (at /tmp/build/beagle/cvs/beagle/beagled/LuceneQueryable.cs:542) Beagle.Daemon.LuceneQueryable:NewAddTask (Beagle.Indexable indexable)
current-Beagle:060905 0850548552 04225 Beagle ERROR EX: in [0x0000a] (at /tmp/build/beagle/cvs/beagle/beagled/IndexingServiceQueryable/IndexingServiceQueryable.cs:240) Beagle.Daemon.IndexingServiceQueryable.IndexingServiceQueryable:IndexFile (System.IO.FileInfo data_file)
current-Beagle:060905 0850548552 04225 Beagle ERROR EX: in [0x000d9] (at /tmp/build/beagle/cvs/beagle/beagled/IndexingServiceQueryable/IndexingServiceQueryable.cs:231) Beagle.Daemon.IndexingServiceQueryable.IndexingServiceQueryable:OnInotifyEvent (Watch watch, System.String path, System.String subitem, System.String srcpath, EventType type)
current-Beagle:060905 0850548552 04225 Beagle ERROR EX: in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_Inotify/Watch_string_string_string_Inotify/EventType (Beagle.Util.Inotify/Watch,string,string,string,Beagle.Util.Inotify/EventType)
current-Beagle:060905 0850548552 04225 Beagle ERROR EX: in [0x0010d] (at /tmp/build/beagle/cvs/beagle/Util/Inotify.cs:652) Beagle.Util.Inotify:SendEvent (Beagle.Util.WatchInfo watched, System.String filename, System.String srcpath, EventType mask)
current-Beagle:060905 0858523651 04225 Beagle  WARN EX: Caught exception in DoTaskReal
current-Beagle:060905 0858523651 04225 Beagle  WARN EX:         Tag: /home/luke/.thunderbird/unleqrh8.default/ImapMail/my.server.com/Some Folder.msf
current-Beagle:060905 0858523651 04225 Beagle  WARN EX:     Creator: /home/luke/.thunderbird/unleqrh8.default/ImapMail/my.server.com/Some Folder.msf
current-Beagle:060905 0858523651 04225 Beagle  WARN EX: Description: /home/luke/.thunderbird/unleqrh8.default/ImapMail/my.server.com/Some Folder.msf
current-Beagle:060905 0858523651 04225 Beagle  WARN EX:    Priority: /home/luke/.thunderbird/unleqrh8.default/ImapMail/my.server.com/Some Folder.msf ()
current-Beagle:060905 0858523651 04225 Beagle  WARN EX: System.InvalidOperationException: Hashtable.Enumerator: snapshot out of sync.
current-Beagle:060905 0858523651 04225 Beagle  WARN EX: in <0x00038> System.Collections.Hashtable+Enumerator:FailFast ()
current-Beagle:060905 0858523651 04225 Beagle  WARN EX: in <0x0001e> System.Collections.Hashtable+Enumerator:MoveNext ()
current-Beagle:060905 0858523651 04225 Beagle  WARN EX: in [0x00012] (at /tmp/build/beagle/cvs/beagle/Util/Thunderbird.cs:494) Beagle.Util.Thunderbird+Database+DatabaseEnumerator:MoveNext ()
current-Beagle:060905 0858523651 04225 Beagle  WARN EX: in [0x00043] (at /tmp/build/beagle/cvs/beagle/beagled/ThunderbirdQueryable/Mail.cs:59) Beagle.Daemon.ThunderbirdQueryable.MailIndexableGenerator:HasNextIndexable ()
current-Beagle:060905 0858523651 04225 Beagle  WARN EX: in [0x00027] (at /tmp/build/beagle/cvs/beagle/beagled/LuceneQueryable.cs:579) Beagle.Daemon.LuceneQueryable+AddGeneratorTask:DoTaskReal ()
current-Beagle:060905 0858523651 04225 Beagle  WARN EX: in [0x00054] (at /tmp/build/beagle/cvs/beagle/Util/Scheduler.cs:269) Beagle.Util.Scheduler+Task:DoTask ()
current-IndexHelper:060905 0850568346 06178 IndexH  WARN: Unable to set IO priority for process to idle
current-IndexHelper:060905 0855054664 06178 IndexH  WARN: Failed to execute child process "ssindex" (No such file or directory)
current-IndexHelper:060905 0855067996 06178 IndexH  WARN: Failed to execute child process "ssindex" (No such file or directory)
current-IndexHelper:060905 0855416759 06178 IndexH  WARN: Failed to execute child process "ssindex" (No such file or directory)
current-IndexHelper:060905 0855418633 06178 IndexH  WARN: Failed to execute child process "ssindex" (No such file or directory)
current-IndexHelper:060905 0857047467 06178 IndexH  WARN: Failed to execute child process "ssindex" (No such file or directory)
current-IndexHelper:060905 0858545960 06178 IndexH  WARN: Failed to execute child process "ssindex" (No such file or directory)
 

> Another thing that i have noticed is that the thunderbird indexer does
> not honour the setting to not index when on battery.  Beagle notes
> when I change from AC to battery, but the Thunderbird indexer
> continues to use 100% (or there abouts) CPU.

The battery setting kicks in following the task the daemon is currently
running.  Usually this takes a couple of seconds, but if there's a bug
where the task is looping tightly forever, it won't ever get there.

Joe

That makes sense, if the thunderbird backend is chewing not returning for some reason then beagle can't stop it.

Thanks in advance,
Luke




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]