[Mono-dev] FW: gmcs : compiling website periodically 3-4 minutes

Hugo Ribeiro hribeiro at janeladigital.com
Mon Mar 28 06:15:25 EDT 2011


Sorry Robert for not specifying all the steps i did. I didn’t know if was a
compile or a runtime and did both at the time.

Resuming what I did this time:
- >MONO_MANAGED_WATCHER=disabled
- >export MONO_MANAGED_WATCHER
- "launch fastcgi-mono-server2"
- >/usr/bin/mono /usr/lib/mono/2.0/fastcgi-mono-server2.exe /socket=tcp:9000
/address=127.0.0.1 /root=/mnt/services/websites/www.mysite.com
/applications=/:/mnt/services/websites/www.mysite.com /loglevels=Error
/logfile=/var/log/fastcgi-mono-server/www.mysite.com.log /printlog=False

- >inotifywatch -v -e access -e modify -t 900 -r
/home/jdservice/websites/www.mysite.com /tmp/root-temp-aspnet-0/4614088e/
Establishing watches...
Setting up watch(es) on /home/jdservice/websites/www.mysite.com
OK, /home/jdservice/websites/www.mysite.com is now being watched.
Setting up watch(es) on /tmp/root-temp-aspnet-0/4614088e/
OK, /tmp/root-temp-aspnet-0/4614088e/ is now being watched.
Total of 251 watches.
Finished establishing watches, now collecting statistics.
Will listen for events for 900 seconds.
total  access  modify  filename
23924  1821    22103   /tmp/root-temp-aspnet-0/4614088e/
756    756     0       /home/jdservice/websites/www.mysite.com/
271    271     0       /home/jdservice/websites/www.
mysite.com/WebControls/Bind/
264    264     0       /home/jdservice/websites/www. mysite.com/bin/
219    219     0       /home/jdservice/websites/www.
mysite.com/WebControls/Ad-hoc/
82     82      0       /home/jdservice/websites/www. mysite.com/WebControls/
20     20      0       /home/jdservice/websites/www.
mysite.com/Res/Includes/

Launch the stress tool 300 requests per second.
http://img546.imageshack.us/f/73902381.jpg/

Have set ulimit -n to 8192 also if any could be messing with it.

Any more ideias to continue to persue this?

Ribeiro

-----Original Message-----
From: mono-devel-list-bounces at lists.ximian.com
[mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Oskar
Berggren
Sent: sexta-feira, 25 de Março de 2011 19:04
To: mono-devel-list at lists.ximian.com
Subject: Re: [Mono-dev] FW: gmcs : compiling website periodically 3-4
minutes

Try inotifywatch.

2011/3/25 Robert Jordan <robertj at gmx.net>:
> On 25.03.2011 19:25, Hugo Ribeiro wrote:
>> No luck so far in discovering the problem.
>>
>> http://img855.imageshack.us/i/36409593.jpg/ (300 clicks per second,
>> exporadic timeout errors)
>>
>> I have set the environment key to disable, recompiled mono and xsp and
still
>> he is recompiling every 3-4m through gmcs.
>
> But this is a run-time setting. It has no effect at compile time.
> A quick test: modify the fastcgi-mono-server2 script to look
> like this:
>
> ...
> MONO_MANAGED_WATCHER=disabled
> export MONO_MANAGED_WATCHER
> exec /usr/bin/mono ...
>
> Robert
>
>>
>> Any other insights?
>>
>> Ribeiro
>>
>> -----Original Message-----
>> From: mono-devel-list-bounces at lists.ximian.com
>> [mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Robert
Jordan
>> Sent: quarta-feira, 23 de Março de 2011 17:43
>> To: mono-devel-list at lists.ximian.com
>> Subject: Re: [Mono-dev] gmcs : compiling website periodically 3-4 minutes
>>
>> On 23.03.2011 18:19, Hugo Ribeiro wrote:
>>> all was good, the problem arises passing 3-4minutes he does this again
>>> without any changes. This is being done periodically in intervals of 3-4
>>> minutes. Any reason for him keep getting compiled on the temporary?
>>
>> Try to disable Mono's file system watcher by setting the environment
>> variable MONO_MANAGED_WATCHER=disabled in the context of the
>> fastcgi-mono-server2 process.
>>
>> If the periodic compilation was stopped by this setting, then your
>> system is probably touching some vital files periodically.
>>
>> Robert
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list



More information about the Mono-devel-list mailing list