[Mono-list] mod-mono-server and connections timeout

Maxim makska at yandex.ru
Wed Jun 13 22:36:12 UTC 2012


Hello!

I'm using Apache & mod_mono for hosting asp.net websites on Linux.
I've got some issues with a lot of unclosed incoming connections to websites.

For example in mono control panel 127.0.0.1/mono I usually see something like this:
-256 1339625143s 
/WebResource.axd?d=f062e94de8eb55dfd348fcbdf5a74c47&t=634442908600000000
or
11551 4453s /index.aspx?url=/components/codeLT-LT/754.html

But in Apache settings:
Timeout 180
KeepAliveTimeout 5

In global mono/etc/2.0/web.config
httpRuntime executionTimeout="120"

cat /proc/sys/net/ipv4/tcp_keepalive_time
3600

So, where is "1339625143s" and how could I set incoming connections timeout for 
dropping "long" connections?

I highly appreciate any info!

# mono -V
Mono JIT compiler version 2.6.4 (tarball Wed Jun 22 01:43:35 MSD 2011)
Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
     TLS:           __thread
     GC:            Included Boehm (with typed GC and Parallel Mark)
     SIGSEGV:       altstack
     Notifications: epoll
     Architecture:  amd64
     Disabled:      none

# uname -a
Linux myserver.com 2.6.32-131.12.1.el6.x86_64 #1 SMP Tue Aug 23 11:13:45 CDT 
2011 x86_64 x86_64 x86_64 GNU/Linux

# httpd -V
Server version: Apache/2.2.19 (Unix)
Server built:   Jun 13 2011 12:02:48
Server's Module Magic Number: 20051115:28
Server loaded:  APR 1.3.9, APR-Util 1.3.9
Compiled using: APR 1.3.9, APR-Util 1.3.9
Architecture:   64-bit
Server MPM:     Prefork
   threaded:     no
     forked:     yes (variable process count)


With best wishes,
Max Karavaev


More information about the Mono-list mailing list