[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Unthreaded Perl and Apache mod_perl



Debian user:

I am running Debian GNU/Linux i386 31r0a "Stable" (Sarge) and am using it for
Linux/ Apache/ MySQL/ Perl development.  The following Apt packages are
installed:

	kernel-image-2.4.27-2-686
	apache-perl (Apache 1.3.33/mod_perl 1.29)
	mysql-server (MySQL 4.0)
	perl (5.8.4-8)
 
I have read that for Perl/CGI and mod_perl scripts, it is best to run
Perl/mod_perl non-threaded, for both performance and compatibility reasons (not
all packages are thread-safe?).


For testing, I sometimes run Perl/CGI scripts from the command line.  It looks
like my system Perl does have threading enabled:

$ /usr/bin/perl -V
...
    usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define

Is there a way to disable threading or to start Perl single-threaded?  perldoc
perlrun doesn't reveal any clues.


I do not know how to determine if the Perl inside apache-perl is compiled with
or without multi-threading.  Is there a way to determine this?  Is there any way
to control it?


TIA,

David



Reply to: