[Pkg-mono-devel] mono high cpu usage :-s
nikolac
nikola.cvrtnjak at gmail.com
Sun Oct 31 16:02:28 UTC 2010
Hello peeps... Im having a problem of high cpu usage with mono + lighty...
(mono pid is always 99%)
Versions;
OS: Debian lenny, linux 2.6.26
httpd: lighttpd version 1.4.19
mono: 2.6.7 or 2.8 (it doesnt matter) problem occurs on both (downloaded
from here:
http://blog.fusonic.net/2010/10/mono-2-8-parallel-environment-debianubuntu-package/
) mono 2.6.7 also downloaded from the same site... installed with "dpkg -
file.deb"
my config files
lighttpd.conf is practically default except i added "mod_fastcgi" and
"mod_userdir"
in conf-enabled i got "10-fastcgi.conf" which looks like this:
---------------------------------------------------------
## FastCGI programs have the same functionality as CGI programs,
## but are considerably faster through lower interpreter startup
## time and socketed communication
##
## Documentation: /usr/share/doc/lighttpd-doc/fastcgi.txt.gz
## http://www.lighttpd.net/documentation/fastcgi.html
include "conf.d/mono.conf"
server.modules += ( "mod_fastcgi" )
fastcgi.server = (
"" => ((
"socket" => mono_shared_dir + "fastcgi-mono-server",
"bin-path" => mono_fastcgi_server,
"bin-environment" => (
"PATH" => "/bin:/opt/mono-2.8/bin:" + mono_dir +
"bin",
"LD_LIBRARY_PATH" => mono_dir + "lib:",
"MONO_SHARED_DIR" => mono_shared_dir,
"MONO_FCGI_LOGLEVELS" => "Standard",
"MONO_FCGI_LOGFILE" => mono_shared_dir +
"fastcgi.log",
"MONO_FCGI_ROOT" => mono_fcgi_root,
"MONO_FCGI_APPLICATIONS" => mono_fcgi_applications
),
"max-procs" => 1,
"check-local" => "disable"
))
)
NOTE - when i install mono with dpkg it installs in /opt dir... but that
shouldnt be the problem because i changed paths in this script...
Anyway i have also added the conf.d directory where is located "mono.conf"
which looks like this:
---------------------------------------------------------
# Add index.aspx and default.aspx to the list of files to check when a
# directory is requested.
index-file.names += ( "index.aspx", "Default.aspx", "index.asmx",
"Default.asmx")
### The directory that contains your Mono installation.
# The "bin" subdir will be added to the PATH and the "lib" subdir will be
# added to the LD_LIBRARY_PATH.
# For a typical system-wide installation on Linux, use:
var.mono_dir = "/opt/mono-2.8/"
# For an installation in a user account (lighttpd need read/exec access):
#var.mono_dir = "/home/username/mono-1.2.6/"
### A directory that is writable by the lighttpd process.
# This is where the log file, communication socket, and Mono's .wapi folder
# will be created.
# For a typical system-wide installation on Linux, use:
var.mono_shared_dir = "/tmp/"
# For an installation in a user account (dir must exist and be writable):
#var.mono_shared_dir = "/home/username/lighttpd_scratch/"
### The path to the server to launch to handle FASTCGI requests.
# For ASP.NET 1.1 support use:
#var.mono_fastcgi_server = mono_dir + "bin/" + "fastcgi-mono-server"
#For ASP.NET 2.0 support use:
var.mono_fastcgi_server = mono_dir + "bin/" + "fastcgi-mono-server2"
### The root of your applications
# For apps installed under the lighttpd document root, use:
var.mono_fcgi_root = server.document-root
# For apps installed in a user account, use something like:
#var.mono_fcgi_root = "/home/username/htdocs/"
### Application map
# A comma separated list of virtual directory and real directory
# for all the applications we want to manage with this server. The
# virtual and real dirs. are separated by a colon.
var.mono_fcgi_applications = "/:."
Does anyone know why would mono take 99% of proc. usage ?
NOTE! its working, its just very very slow :))
Any suggestions ?
--
View this message in context: http://mono.1490590.n4.nabble.com/mono-high-cpu-usage-s-tp3021216p3021216.html
Sent from the Debian Mono mailing list archive at Nabble.com.
More information about the Pkg-mono-devel
mailing list