[Mono-list] [Fwd: mod_mono 1.2.4 for suse 10.0 taking up CPU after use]

Robert Jordan robertj at gmx.net
Fri Aug 24 11:11:23 EDT 2007


Hi,

Try this test:

using System;
using System.Reflection;
using System.IO;

class Test {
         public static void Main ()
         {
                 FileSystemWatcher fsw = new FileSystemWatcher ();
                 FieldInfo fi = typeof (FileSystemWatcher).GetField 
("watcher", BindingFlags.Static | BindingFlags.NonPublic);
                 Console.WriteLine (fi.GetValue (fsw).GetType ());
         }
}

It should output System.IO.FAMWatcher. If it doesn't, mono
cannot load libfam.so.0 or the library is too old.

Robert


Michał Ziemski wrote:
> Hi,
> 
> Thank you for your support and patience.
> I have installed fam (together with devel packages), it's up and running.
> I can even test it with "fileschanged" command.
> 
> Mono however doesn't notice.
> How can I convince mono to use fam?
> 
> Best regards,
> Michał Ziemski
> Robert Jordan pisze:
>> Hi,
>>
>> Install Inotify (preferably) or FAM. I don't know which of both
>> SUSE 10.0 has support for.
>>
>> Robert
>>
>> Michał Ziemski wrote:
>>   
>>> Hi!
>>>
>>> Stracing one thread I get a lot of stat64 and lstat64 calls to
>>> all the files in my app dir.
>>>
>>> This is probably what you have ben refering to in your previous post.
>>> Now for the million dollar question, how do you disable or slow this one 
>>> down?
>>>
>>> Best regards,
>>> Michał Ziemski
>>>
>>> Michał Ziemski pisze:
>>>     
>>>> Hi!
>>>>       
>>>>> On your system, mono seems to use the default file system watcher
>>>>> (based on polling). As more files it has to process,
>>>>> as slower it gets.
>>>>>
>>>>> Check whether your server is running inotify or fam.
>>>>>
>>>>> Robert
>>>>>   
>>>>>         
>>>> Sorry if it is a newbish question, but how do I check that (I'm on a 
>>>> VPS, I didn't compile the krenel myself).
>>>>
>>>> Apart from that, the CPU hog actually never stops, so I suppose it's a 
>>>> deadlock of some kind rather than sluggishnes.
>>>>
>>>> Best regards,
>>>> Michał Ziemski
>>>>
>>>> _______________________________________________
>>>> Mono-list maillist  -  Mono-list at lists.ximian.com
>>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>>>       
>>> _______________________________________________
>>> Mono-list maillist  -  Mono-list at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>>
>>>     
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>   
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 



More information about the Mono-list mailing list