|
From: <php...@li...> - 2008-03-13 19:10:42
|
hmm.. where is the attachment...
so the patch again:
diff -Nuar php-java-bridge-5.1.2-original/bind.c
php-java-bridge-5.1.2/bind.c
--- php-java-bridge-5.1.2-original/bind.c 2008-02-10
12:22:02.000000000 +0100
+++ php-java-bridge-5.1.2/bind.c 2008-03-13 17:43:05.000000000
+0100
@@ -1225,7 +1225,7 @@
kill(EXT_GLOBAL(cfg)->cid, sig[i]);
}
- if((read(EXT_GLOBAL(cfg)->err, &err, sizeof err))!=sizeof err) err=0;
+ //if((read(EXT_GLOBAL(cfg)->err, &err, sizeof err))!=sizeof err)
err=0;
//printf("VM terminated with code: %ld\n", err);
close(EXT_GLOBAL(cfg)->err);
EXT_GLOBAL(cfg)->err=0;
On Thu, 2008-03-13 at 20:06 +0100, php...@li... wrote:
> hi,
>
> since a few days i reported a bug to apache httpd.
> https://issues.apache.org/bugzilla/show_bug.cgi?id=43966
>
> after a backtrace seems this issue to be php-java-bridge related.
>
> how to repeat:
> install apache >=2.2.6 (i tested with 2.2.8)
> install php 5.2.5 as module
> install php-java-bridge >=4.0.1
> enable php, javabridge
> enable the apache server-status module
> start apache
>
> make a webserver stress wit ab
> ab -c 100 -n 20000 http://yourserver/some.jpg
> (some.jpg is any non php file)
>
> open the server-status in your browser and reload it often.
> after 4-5 seconds you will see many connections in
> "C" Closing connetion status... (see apache bugreport)
>
> The solution:
> Please look at the attached patch.
> i dont know what this line do, but if i remove it, everything works
> fine. no more sticking "C" processes..
>
> please analyze this patch.
>
>
> thanks,
>
> Attila Soki
|