AOLServer and libphp4

From: Date: Tue, 06 Jun 2000 20:54:17 +0000
Subject: AOLServer and libphp4
Groups: php.general 
Request: Send a blank email to php-general+get-1148@lists.php.net to get a copy of this message
Hi, I posted this earlier, but didn't get a response. I'm very interested in using AOLServer because Apache is too resource intensive. However, as explained below, the libphp4 module I compiled for AOLServer crashes the server seemingly whenever it encounters a moderate amount of requests (a couple refreshes per second with IE will crash it). Can anyone look at this and tell me what the problem is? If the problem is AOLServer or PHP on AOLServer, can anyone recommend another webserver /w stable PHP support? Thanks... --> First, I'd like to thank the people who have helped answer my questions about AOLServer to this point. I have successfully compiled AOLServer and the PHP4 module (version 4.0 Release) along with the sybase-ct interface. Everything runs and AOLServer is serving pages correctly. However, I am having a problem where the nsd binary segmentation faults, seemingly under any kind of serious load (well, not really...it's easy enough to crash it with one browser by frequently reloading a page). Here's the output from nsd: [28/May/2000:16:41:02][28425.5][-nssock-] Notice: starting [28/May/2000:16:41:02][28425.5][-nssock-] Notice: nssock: listening on http://argon:8000 (10.0.0.2:8000) [28/May/2000:16:41:02][28425.5][-nssock-] Notice: accepting connections [28/May/2000:16:41:04][28425.6][-conn0-] Notice: starting: waiting for connections [28/May/2000:16:41:04][28425.7][-conn1-] Notice: starting: waiting for connections [28/May/2000:16:41:04][28425.8][-conn2-] Notice: starting: waiting for connections [28/May/2000:16:41:04][28425.9][-conn3-] Notice: starting: waiting for connections [28/May/2000:16:41:06][28425.10][-conn4-] Notice: starting: waiting for connections aolserver.c(392) : Freeing 0x00265BF0 (5 bytes), script=/usr/opt/aolserver/servers/server1/pages/scripts/index.php aolserver.c(365) : Freeing 0x00224B00 (4 bytes), script=/usr/opt/aolserver/servers/server1/pages/scripts/index.php php_sybase_ct.c(315) : Freeing 0x00266598 (8 bytes), script=/usr/opt/aolserver/servers/server1/pages/scripts/index.php aolserver.c(383) : Freeing 0x002229A8 (25 bytes), script=/usr/opt/aolserver/servers/server1/pages/scripts/index.php [Sun May 28 16:41:27 2000] Script: '/usr/opt/aolserver/servers/server1/pages/scripts/index.php' --------------------------------------- php_sybase_ct.c(334) : Block 0x002645A8 status: Beginning: Cached (allocated on php_sybase_ct.c:315, 8 bytes) End: OK --------------------------------------- [Sun May 28 16:41:27 2000] Script: '/usr/opt/aolserver/servers/server1/pages/scripts/index.php' --------------------------------------- zend_execute_API.c(237) : Block 0x00222980 status: zend_variables.c(62) : Actual location (location was relayed) Beginning: Overrun (magic=0x00000000, expected=0x7312F8DC) End: Unknown --------------------------------------- [Sun May 28 16:41:27 2000] Script: '/usr/opt/aolserver/servers/server1/pages/scripts/index.php' --------------------------------------- zend_execute_API.c(237) : Block 0x00265BC8 status: zend_variables.c(62) : Actual location (location was relayed) Beginning: Overrun (magic=0x00283B18, expected=0x7312F8DC) End: Unknown --------------------------------------- [Sun May 28 16:41:27 2000] Script: '/usr/opt/aolserver/servers/server1/pages/scripts/index.php' --------------------------------------- zend_opcode.c(167) : Block 0x00224AD8 status: zend_variables.c(62) : Actual location (location was relayed) Beginning: Cached (allocated on ./zend-scanner.l:1528, 2 bytes) End: OK --------------------------------------- aolserver.c(392) : Freeing 0x0019BC88 (5 bytes), script=/usr/opt/aolserver/servers/server1/pages/scripts/index.php aolserver.c(365) : Freeing 0x00241A70 (4 bytes), script=/usr/opt/aolserver/servers/server1/pages/scripts/index.php php_sybase_ct.c(315) : Freeing 0x0024A198 (8 bytes), script=/usr/opt/aolserver/servers/server1/pages/scripts/index.php aolserver.c(383) : Freeing 0x001BE1E8 (25 bytes), script=/usr/opt/aolserver/servers/server1/pages/scripts/index.php [Sun May 28 16:41:34 2000] Script: '/usr/opt/aolserver/servers/server1/pages/scripts/index.php' --------------------------------------- php_sybase_ct.c(334) : Block 0x002413B8 status: Beginning: Cached (allocated on php_sybase_ct.c:315, 8 bytes) End: OK --------------------------------------- [Sun May 28 16:41:34 2000] Script: '/usr/opt/aolserver/servers/server1/pages/scripts/index.php' --------------------------------------- zend_execute_API.c(237) : Block 0x00241A48 status: zend_variables.c(62) : Actual location (location was relayed) Beginning: Overrun (magic=0x2D2D3E0A, expected=0x7312F8DC) End: Unknown --------------------------------------- [Sun May 28 16:41:34 2000] Script: '/usr/opt/aolserver/servers/server1/pages/scripts/index.php' --------------------------------------- zend_execute_API.c(237) : Block 0x001BE1C0 status: zend_variables.c(62) : Actual location (location was relayed) Beginning: Overrun (magic=0x00000000, expected=0x7312F8DC) End: Unknown --------------------------------------- Segmentation fault I have been able to consistently reproduce this error using any PHP pages. I tried stressing the server with static HTML, but it wouldn't crash (I used a 500K text file and managed to saturate 100Mbit ethernet). I also tried a regular PHP page without any database links (basically just a 1 to 100 while loop). This PHP page did crash the server with a bus error and similar messages to what is shown above. So, I'm wondering if I'm missing some tunable parameters or something to keep this from happening? This is on my test machine, which is a 200 MHz Ultra /w 256 MB of RAM, my production machine has 512 MB. The binaries where compiled with gcc 2.95.2. Below, I've included the startup output from nsd. Thanks in advance for any assistance, -Brian ==================================================== > bin/nsd -ft nsd.tcl [28/May/2000:16:41:01][28425.1][-t1-] Notice: nsd.tcl: starting to read config file... [28/May/2000:16:41:01][28425.1][-t1-] Warning: nsd.tcl: nsssl not loaded because key/cert files do not exist. [28/May/2000:16:41:01][28425.1][-t1-] Warning: nsd.tcl: nscp not loaded because user/password is not set. [28/May/2000:16:41:01][28425.1][-t1-] Notice: nsd.tcl: finished reading config file. [28/May/2000:16:41:01][28425.1][-main-] Notice: AOLserver/3.0 starting. [28/May/2000:16:41:01][28425.1][-main-] Notice: security info: uid=1001, euid=1001, gid=10, egid=10 [28/May/2000:16:41:01][28425.1][-main-] Notice: max files: FD_SETSIZE = 1024, rl_cur = 1024, rl_max = 1024 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/parameters]logexpanded = off [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/parameters]dev = off [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/parameters]debug = off [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/parameters]maxbackup = 10 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/parameters]stacksize = 65536 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/threads]stacksize = 65536 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/threads]mutexmeter = on [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/parameters]shutdowntimeout = 20 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/parameters]iobufsize = 16000 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/parameters]schedmaxelapsed = 2 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/parameters]listenbacklog = 32 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/parameters]dnscache = on [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/parameters]dnscachetimeout = 60 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/parameters]dstringcachemaxentries = 10 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/parameters]dstringcachemaxsize = 3072 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/parameters]checkexitcode = on [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/parameters]keepalivetimeout = 30 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/parameters]maxkeepalive = 100 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]realm = server1 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]enableaolpress = off [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]sendfdthreshold = 2048 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]maxconnections = 100 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]maxdropped = 0 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]directoryfile = index.php,index.html [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]pageroot = /usr/opt/aolserver/servers/server1/pages [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]directorylisting = none [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]directoryproc = "" [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]directoryadp = "" [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]globalstats = on [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]maxurlstats = 1000 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]urlstats = on [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]connsperthread = 0 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]minthreads = 0 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]maxthreads = 20 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]threadtimeout = 120 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]maxheaders = 16384 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]maxline = 8192 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]maxpost = 65536 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]flushcontent = off [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]checkmodifiedsince = on [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1]headercase = preserve [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/fastpath]mmap = off [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/fastpath]cache = on [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/fastpath]cachemaxsize = 5120000 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/fastpath]cachemaxentry = 8192 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/fastpath]directoryfile = index.php,index.html [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/fastpath]pageroot = /usr/opt/aolserver/servers/server1/pages [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/tcl]autoclose = on [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/tcl]debug = off [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/tcl]library = /usr/opt/aolserver/servers/server1/modules/tcl/ [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/tcl]sharedlibrary = /usr/opt/aolserver/modules/tcl [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/tcl]statlevel = 0 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/tcl]statmaxbuf = 100 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/tcl]nsvbuckets = 8 [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/adp]errorpage = "" [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/adp]startpage = "" [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/adp]enableexpire = off [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/adp]enabledebug = off [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/adp]debuginit = ns_adp_debuginit [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/adp]defaultparser = adp [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/adp]taglocks = off [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/adp]cache = on [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/adp]threadcache = off [28/May/2000:16:41:01][28425.1][-main-] Notice: conf: [ns/server/server1/adp]cachesize = 5120000 [28/May/2000:16:41:01][28425.1][-main-] Notice: nsd.adp: mapped /*.adp [28/May/2000:16:41:01][28425.1][-main-] Notice: loading: /usr/opt/aolserver/bin/nssock.so [28/May/2000:16:41:01][28425.1][-main-] Notice: loading: /usr/opt/aolserver/bin/nslog.so [28/May/2000:16:41:01][28425.1][-main-] Notice: nslog: opened: /usr/opt/aolserver/servers/server1/modules/nslog/access.log [28/May/2000:16:41:01][28425.1][-main-] Notice: loading: /usr/opt/aolserver/bin/nscgi.so [28/May/2000:16:41:01][28425.1][-main-] Notice: loading: /usr/opt/aolserver/bin/libphp4.so [28/May/2000:16:41:02][28425.1][-main-] Notice: Registering PHP for "*.php" [28/May/2000:16:41:02][28425.1][-main-] Notice: nsd.tcl: sourcing: /usr/opt/aolserver/modules/tcl/init.tcl [28/May/2000:16:41:02][28425.1][-main-] Notice: nsd.tcl: sourcing: /usr/opt/aolserver/modules/tcl/debug.tcl [28/May/2000:16:41:02][28425.1][-main-] Notice: nsd.tcl: sourcing: /usr/opt/aolserver/modules/tcl/fastpath.tcl [28/May/2000:16:41:02][28425.1][-main-] Notice: nsd.tcl: sourcing: /usr/opt/aolserver/modules/tcl/file.tcl [28/May/2000:16:41:02][28425.1][-main-] Notice: conf: [ns/server/server1]enabletclpages = 0 [28/May/2000:16:41:02][28425.1][-main-] Notice: nsd.tcl: sourcing: /usr/opt/aolserver/modules/tcl/form.tcl [28/May/2000:16:41:02][28425.1][-main-] Notice: nsd.tcl: sourcing: /usr/opt/aolserver/modules/tcl/http.tcl [28/May/2000:16:41:02][28425.1][-main-] Notice: nsd.tcl: sourcing: /usr/opt/aolserver/modules/tcl/modlog.tcl [28/May/2000:16:41:02][28425.1][-main-] Notice: nsd.tcl: sourcing: /usr/opt/aolserver/modules/tcl/namespace.tcl [28/May/2000:16:41:02][28425.1][-main-] Notice: nsd.tcl: sourcing: /usr/opt/aolserver/modules/tcl/nsdb.tcl [28/May/2000:16:41:02][28425.1][-main-] Notice: nsd.tcl: sourcing: /usr/opt/aolserver/modules/tcl/prodebug.tcl [28/May/2000:16:41:02][28425.1][-main-] Notice: nsd.tcl: sourcing: /usr/opt/aolserver/modules/tcl/sendmail.tcl [28/May/2000:16:41:02][28425.1][-main-] Notice: nsd.tcl: sourcing: /usr/opt/aolserver/modules/tcl/util.tcl [28/May/2000:16:41:02][28425.1][-main-] Notice: AOLserver/3.0 running. [28/May/2000:16:41:02][28425.1][-main-] Notice: security info: uid=1001, euid=1001, gid=10, egid=10 [28/May/2000:16:41:02][28425.4][-sched-] Notice: starting This is the AOLSERVER list, an open forum from http://aolserver.com/ To sign-off, send "SIGNOFF AOLSERVER" to listserv@listserv.aol.com Subscribe to AOLSERVER-ANNOUNCE for announcements and news.

« previous php.general (#1148) next »