[Mono-list] mod_mono doesn't monitor file changes on Novell shares
Greetings, mod-mono-server.exe is quite the awesome replacement for IIS. Well done. I do have an issue now with its caching. The ASPX files for the web sites reside on a remote server accessible via a Novell share, which we access from Linux via ncpmount. The pages come up just fine, except when changes are made to the file. On a local Linux partition, mod-mono-server flushes the cache for a file when it has changed recently. On a Novell share, Mono fails to monitor file changes and as a result continues caching the page anyway, so changes to the file only show up after restarting mod-mono-server. IIS fails to host ASP.NET web sites at all off of Novell shares because IIS failed to start monitoring file changes on... at any aspx file access. Maybe Novell shares do not allow monitoring of file changes. But can't we do a date/time stamp comparison on the files with each page access to detect changes? I think I'll write a formal bugzilla report on this, unless there already is one. But what can be done about this? - Andrew smime.p7s Description: S/MIME cryptographic signature
Re: [Mono-list] mod_mono doesn't monitor file changes on Novell shares
My guess is that the file watchers don't work on network shares ? Erik On Jul 9, 2004, at 8:39 AM, Andrew Arnott wrote: Greetings, mod-mono-server.exe is quite the awesome replacement for IIS. Well done. I do have an issue now with its caching. The ASPX files for the web sites reside on a remote server accessible via a Novell share, which we access from Linux via ncpmount. The pages come up just fine, except when changes are made to the file. On a local Linux partition, mod-mono-server flushes the cache for a file when it has changed recently. On a Novell share, Mono fails to monitor file changes and as a result continues caching the page anyway, so changes to the file only show up after restarting mod-mono-server. IIS fails to host ASP.NET web sites at all off of Novell shares because IIS failed to start monitoring file changes on... at any aspx file access. Maybe Novell shares do not allow monitoring of file changes. But can't we do a date/time stamp comparison on the files with each page access to detect changes? I think I'll write a formal bugzilla report on this, unless there already is one. But what can be done about this? - Andrew ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] mod_mono doesn't monitor file changes on Novell shares
If I recall correctly, the file monitoring (FileSystemWatcher at any rate) has two implementations: one uses FAM and the kernel and the other is implemented in code and thus a bit more CPU intensive. If it is possible to make fam keep an eye on the novell shares (this I know not...), then that might solve your problem, alternately, by disabling fam and forcing mono to revert to the CLI implementation, you might also have more success. Does anyone know how to switch modes from FAM to CLI-watching mode? smime.p7s Description: S/MIME cryptographic signature
RE: [Mono-list] mod_mono doesn't monitor file changes on Novell shares
If I recall correctly, the file monitoring (FileSystemWatcher at any rate) has two implementations: one uses FAM and the kernel and the other is implemented in code and thus a bit more CPU intensive. If it is possible to make fam keep an eye on the novell shares (this I know not...), then that might solve your problem, alternately, by disabling fam and forcing mono to revert to the CLI implementation, you might also have more success. Does anyone know how to switch modes from FAM to CLI-watching mode? I answer my own question: set the MONO_MANAGED_WATCHER environment variable to any value, and restart Mono. I am in the process of trying this now. If it doesn't work, I will report on that. Source: http://www.go-mono.com/docs/index.aspx?link=xhtml%3Ahtml%2Fen%2Fman%2Fmono.1 .html smime.p7s Description: S/MIME cryptographic signature
Re: [Mono-list] mod_mono doesn't monitor file changes on Novell shares
Hi Erik, Andrew, et al., On Fri, 9 Jul 2004, Erik Dasque wrote: My guess is that the file watchers don't work on network shares ? in win32 its actually implemented using SMB, so it will work at least on windows with network shares. i use it that way at least... [ref: http://weblogs.asp.net/ashben/archive/2003/10/14/31773.aspx] i seem to remember reading that fam would do this as well, but i have much experience with it. more info is here (FAM FAQ): http://oss.sgi.com/projects/fam/faq.html#network_mode hope that helps. regards, --chris ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] mod_mono doesn't monitor file changes on Novell shares
El vie, 09-07-2004 a las 14:39, Andrew Arnott escribió: Greetings, mod-mono-server.exe is quite the awesome replacement for IIS. Well done. I do have an issue now with its caching. The ASPX files for the web sites reside on a remote server accessible via a Novell share, which we access from Linux via ncpmount. The pages come up just fine, except when changes are made to the file. On a local Linux partition, mod-mono-server flushes the cache for a file when it has changed recently. On a Novell share, Mono fails to monitor file changes and as a result continues caching the page anyway, so changes to the file only show up after restarting mod-mono-server. IIS fails to host ASP.NET web sites at all off of Novell shares because IIS failed to start monitoring file changes on... at any aspx file access. Maybe Novell shares do not allow monitoring of file changes. But can't we do a date/time stamp comparison on the files with each page access to detect changes? I think I'll write a formal bugzilla report on this, unless there already is one. But what can be done about this? We have an unmanaged watcher based on FAM and a managed one that just polls for filesystem changes. If FAM fails, the managed watcher should work. As I wrote in the bug report, try setting the environment variable MONO_MANAGED_WATCHER=1 when running mod-mono-server. -Gonzalo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] mod_mono doesn't monitor file changes on Novell shares
El vie, 09-07-2004 a las 18:06, Andrew Arnott escribió: If I recall correctly, the file monitoring (FileSystemWatcher at any rate) has two implementations: one uses FAM and the kernel and the other is implemented in code and thus a bit more CPU intensive. If it is possible to make fam keep an eye on the novell shares (this I know not...), then that might solve your problem, alternately, by disabling fam and forcing mono to revert to the CLI implementation, you might also have more success. Does anyone know how to switch modes from FAM to CLI-watching mode? I already replied to your previous post before reading this. 'man mono' would have helped. The environment variable to set is MONO_MANAGED_WATCHER. -Gonzalo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] mod_mono doesn't monitor file changes on Novell shares
Does anyone know how to switch modes from FAM to CLI-watching mode? I already replied to your previous post before reading this. 'man mono' would have helped. The environment variable to set is MONO_MANAGED_WATCHER. Thank you. I have tried that and it worked. I have recorded that in bugzilla. So it may be NotABug. It still would be nice for Mono to detect FAM's failure to work for a particular file system and compensate at that time with its CLI version. Is that possible? ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] mod_mono doesn't monitor file changes on Novell shares
El sáb, 10-07-2004 a las 06:02, Andrew Arnott escribió: Does anyone know how to switch modes from FAM to CLI-watching mode? I already replied to your previous post before reading this. 'man mono' would have helped. The environment variable to set is MONO_MANAGED_WATCHER. Thank you. I have tried that and it worked. I have recorded that in bugzilla. So it may be NotABug. It still would be nice for Mono to detect FAM's failure to work for a particular file system and compensate at that time with its CLI version. Is that possible? Don't know if that's possible. If anyone knows how I would implement it. -Gonzalo ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list