You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
|
1
|
2
|
3
(2) |
4
(17) |
5
(5) |
6
(7) |
7
(11) |
8
(11) |
9
(3) |
10
(3) |
11
(9) |
12
(6) |
13
(11) |
14
(3) |
15
(2) |
16
(1) |
17
(4) |
18
|
19
|
20
(2) |
21
(2) |
22
(3) |
23
|
24
|
25
|
26
|
27
(1) |
28
(1) |
29
|
30
|
31
|
|
|
|
|
|
From: <php...@li...> - 2008-03-28 11:39:19
|
Hi Andres, isn't it possible to use one php.ini file for the cli SAPI and another one for apache? I think this is the default on Debian/Ubuntu. Even standard PHP binaries search for a SAPI specific ini file, and revert to the standard php.ini, if the specific file is not found (see truss php or strace php). Regards, Jost Boekemeier Lesen Sie Ihre E-Mails jetzt einfach von unterwegs. www.yahoo.de/go |
From: <php...@li...> - 2008-03-27 14:50:02
|
Hi: I'm running PHP/Java Bridge with PHP 5.2.1 on a SunOS 5.10 - sun4u sparc JavaBridge log: Mar 27 09:33:43 JavaBridge INFO : JavaBridge version : 4.0.1 Mar 27 09:33:43 JavaBridge INFO : JavaBridge logFile : Mar 27 09:33:43 JavaBridge INFO : JavaBridge default logLevel : 4 Mar 27 09:33:43 JavaBridge INFO : JavaBridge socket : INET_LOCAL:9269 Mar 27 09:33:43 JavaBridge INFO : JavaBridge java.ext.dirs : /usr/jdk/instances/jdk1.5.0/jre/lib/ext Mar 27 09:33:43 JavaBridge INFO : JavaBridge php.java.bridge.base: /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/ Mar 27 09:33:43 JavaBridge INFO : JavaBridge thread pool size: 20 I need the bridge only when PHP is running with Apache. I have some classes that are used by a Web Service which interacts with a Java API. However, I have some PHP scripts which I run with cronjobs that do not operate using Apache and do not need the bridge. I call them via CLI using "php myfile.php". I would like to prevent the bridge from running on those cases because I do not want to create another Java process each time I run those scripts (each Java process uses at least 150Mb of RAM memory!!). Is this possible? Can I configure PHP (or Apache) in a way that the extension is only loaded by Apache, but not by default when I run php via CLI? Thanks in advance, Regards, Andrés Gattinoni |
From: <php...@li...> - 2008-03-22 12:07:17
|
Hi Ely, > I downloaded de lastest version of sourceforge php-java-bridge_5.2.0_j2ee.zip but I missed the > extension module for php5 windows (a dll file). The one inside cgi directory of javabridge.war > is about php4. The dll (or java.so) is obsolete. We'll keep it, but you have to compile the C code yourself. I have updated the FAQ: ------------- Do I have to require Java.inc in each of my scripts? Isn't that very slow? In order to communicate with Java, a PHP "Java" class definition is needed. Here's a simple PHP "Java" class definition which fits into one line: <?php // The following is the "Java" class definition, stripped down to fit into one line // To use this sample start Java with: java -jar JavaBridge.jar INET:9267 // Or enable java.so or php_java.dll, which automatically start the above // process Then type: php sample.php // class P {const Pc="<C v=\"%s\" p=\"I\">", PC="</C>"; const Pi="<I v=\"%d\" m=\"%s\" p=\"I\">", PI="</I>"; const Ps="<S v=\"%s\"/>", Pl="<L v=\"%d\" p=\"%s\"/>", Po="<O v=\"%d\"/>"; private $c; function str($s){fwrite($this->c, sprintf(self::Ps, $s));} function obj($s){fwrite($this->c, sprintf(self::Po, $s->java));} function __construct(){$this->c=fsockopen("127.0.0.1",9267);} function cBeg($s){fwrite($this->c, sprintf(self::Pc, $s));} function cEnd(){fwrite($this->c, self::PC);} function iBeg($o, $m){fwrite($this->c, sprintf(self::Pi, $o, $m));} function iEnd(){fwrite($this->c, self::PI);} function val($s){if(is_object($s))$this->obj($s);else $this->str((string)$s);} function res(){$r=sscanf(fread($this->c, 8192),"%s v=\"%[^\"]\"");return $r[1];}} class Java {var $java, $p; function __construct() {if(!func_num_args()) return; $this->p=new P(); $ar=func_get_args(); $this->p->cBeg(array_shift($ar)); foreach($ar as $arg) $this->p->val($arg); $this->p->cEnd(); $ar = sscanf($this->p->res(), "%d"); $this->java=$ar[0];} function __call($meth, $args) {$this->p->iBeg($this->java, $meth); foreach($args as $arg) $this->p->val($arg); $this->p->iEnd(); $proxy = new Java(); $ar = sscanf($this->p->res(), "%d"); $proxy->java=$ar[0]; $proxy->p=$this->p; return $proxy;} function toString() {$this->p->iBeg("", "castToString"); $this->p->val($this); $this->p->iEnd(); return base64_decode($this->p->res());}} // Test $i1 = new Java("java.math.BigInteger", "1"); $i2 = new Java("java.math.BigInteger", "2"); $i3 = $i1->add($i2); echo $i3->toString() . "\n"; ?> The above simple "Java" class assumes that some Java VM has been started on host "127.0.0.1", port "9267". And it cannot handle values larger than 8192 bytes. Therefore the PHP/Java Bridge library Java.inc should be used. Scripts should contain the statement require_once("...java/Java.inc"); at the beginning of each script. PHP compiles and caches PHP scripts, the Java.inc library is loaded only once. -------------- Regards, Jost Boekemeier Lesen Sie Ihre E-Mails jetzt einfach von unterwegs. www.yahoo.de/go |
From: <php...@li...> - 2008-03-22 11:57:26
|
Hi Antonio, > I think the problem is $result. Shouldn't line > 1943: $result->__cancelProxyCreationTag = ++$client->cancelProxyCreationTag; > rather be: > 1943: $this->__cancelProxyCreationTag = ++$client->cancelProxyCreationTag; yes, I've committed the change to the CVS (for release 5.2.1). Thank you very much for reporting this! Regards, Jost Boekemeier Lesen Sie Ihre E-Mails auf dem Handy. www.yahoo.de/go |
From: <php...@li...> - 2008-03-22 11:38:37
|
Hi, > protected final Log logger = LogFactory.getLog(getClass()); > .... > logger.info("ClientManager::construct"); your logger definition may be incomplete. Please see our FAQ and the log4j classes from the JavaBridge for details. However, logging is outside of the scope of the PHP/Java Bridge. :) Regards, Jost Boekemeier Lesen Sie Ihre E-Mails jetzt einfach von unterwegs. www.yahoo.de/go |
From: <php...@li...> - 2008-03-21 16:07:51
|
Hello, I'm testing pjb, using Tomcat as backend and PHP 5.2.5 FastCGI. My doubt is about log files. I can't find them anywhere. I have put log4j and common-logging in the library path, by I can't see neither pjb log files nor my own classes log files. My classes (reused from another project) handler logs as: import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; .... protected final Log logger = LogFactory.getLog(getClass()); .... logger.info("ClientManager::construct"); ... In web.xml: <init-param> <param-name>servlet_log_level</param-name> <param-value>3</param-value> </init-param> Running my project from inside Eclipse, I saw my log messages in console window, but now, nothing appears... I thank for some help. Ely Matos |
From: <php...@li...> - 2008-03-21 14:02:18
|
Hello! you can find a dll file here in the pecl-5.2.5 win32 zip file, I think. Peter --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. |
From: <php...@li...> - 2008-03-20 21:34:13
|
Hello, I've tested previous version of pjb. After a time working in another project, I came back to tests of pjb. I downloaded de lastest version of sourceforge php-java-bridge_5.2.0_j2ee.zip but I missed the extension module for php5 windows (a dll file). The one inside cgi directory of javabridge.war is about php4. Do this dll exists yet, or the only implementation is a pure java code in java directory? Thanks for help, and I'm sorry by such a newbie question... Ely Matos |
From: <php...@li...> - 2008-03-20 17:59:02
|
Hi: I have my PHP box setup with STRICT error reporting, and it came up with some errors and warnings. To fix it, I had to change these 4 lines: Line 380: $this->protocol->keepAlive(); to if (isset($this->protocol)) $this->protocol->keepAlive(); (The warning is only noticeable when the fsockopen from line 916 was not successful) Line 916: $socket = @fsockopen("{$this->ssl}{$this->host}", $this->port, $errno, $errstr, 15); to: $socket = fsockopen("{$this->ssl}{$this->host}", $this->port, $errno, $errstr, 30); (Without the @, fsockopen displays a warning. And I lowered the timeout to 15 seconds as 30 is way too much to wait for a socket connection in my opinion). Line 1824: public $__cancelProxyCreationTag; to public $__cancelProxyCreationTag = 0; (Required initialization) Line 1943: $result->__cancelProxyCreationTag = ++$client->cancelProxyCreationTag; to: $this->__cancelProxyCreationTag = ++$client->cancelProxyCreationTag; (Not sure if this is right but $result->__cancelProxyCreationTag seems out of place there so I guessed it should have been $this->__cancelProxyCreationTag). Have a nice Easter holiday. Antonio |
From: <php...@li...> - 2008-03-17 12:27:00
|
Hi Zoran, > Do you mean that each Java class that is instantiated in PHP should implements Serializable *if* your web application has the "distributable" attribute (see your WEB-INF/web.xml), the session store accepts only those objects which implement the java.io.Serializable interface. Please either remove the "distributable" attribute or modify those classes which instances are intended to carry values between your J2EE servers. Regards, Jost Boekemeier Lesen Sie Ihre E-Mails jetzt einfach von unterwegs. www.yahoo.de/go |
From: <php...@li...> - 2008-03-17 10:27:45
|
Hi Jost, I am not sure if my previous e-mail arrived. Its about the error on line 1943, which does not seem to be missing initialization but rather a wrong object name: ---------- Forwarded message ---------- From: Antonio Ruiz Zwollo <zw...@gm...> Date: Thu, Mar 13, 2008 at 2:40 PM Subject: Re: [Php-java-bridge-users] Strict Standards: warning on line 1943 To: php...@li... Hi Jost, I set public $__cancelProxyCreationTag = 0; on line 1824; but it did not fix the error. I still see: -------------- Strict Standards: Creating default object from empty value in lib\Java.inc on line 1943 -------------- I think the problem is $result. Shouldn't line 1943: $result->__cancelProxyCreationTag = ++$client->cancelProxyCreationTag; be: 1943: $this->__cancelProxyCreationTag = ++$client->cancelProxyCreationTag; ? Regards, Antonio On Wed, Mar 12, 2008 at 11:37 AM, <php...@li...> wrote: > Hi, > > thank you very much for your suggestions. In the next release we'll initialize > > $__cancelProxyCreationTag > > to 0. > > Regards, > Jost Boekemeier > > > > > Lesen Sie Ihre E-Mails jetzt einfach von unterwegs. > www.yahoo.de/go > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2008-03-17 10:03:16
|
Hi Jost, >the PHP/Java Bridge web application is marked distributable. Therefore all value objects >must >implement the java.io.Serializable interface. Do you mean that each Java class that is instantiated in PHP should implements Serializable class MyClass implements java.io.Serializable{...} or it is necessary only for those classes that are used across two scripts (i.e. that are used in session)? Regards Zoran php...@li... wrote: Hi Zoran, > [[o:HttpSessionFacade]]->put((o:Object)[o:String], (o:Object)[o:EventFactory]). Cause: > java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute the PHP/Java Bridge web application is marked distributable. Therefore all value objects must implement the java.io.Serializable interface. Please consult your Java documentation for details. Regards, Jost Boekemeier Lesen Sie Ihre E-Mails auf dem Handy. www.yahoo.de/go ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. |
From: <php...@li...> - 2008-03-17 09:27:26
|
Hi Zoran, > [[o:HttpSessionFacade]]->put((o:Object)[o:String], (o:Object)[o:EventFactory]). Cause: > java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute the PHP/Java Bridge web application is marked distributable. Therefore all value objects must implement the java.io.Serializable interface. Please consult your Java documentation for details. Regards, Jost Boekemeier Lesen Sie Ihre E-Mails auf dem Handy. www.yahoo.de/go |
From: <php...@li...> - 2008-03-16 21:23:57
|
Hi, I have the problem to create put an instance of java object in session variable. The code is as follow, and the exception message is bellow it. I hope that you can indicate what causes the problem here. Thanks Zoran try{ $session->put("eventF", new Java("depths.moodle.EventFactory", $sesame)); if(is_null(java_values($session->get("eventF")))){ throw new Exception("Could not create EventFactory!"); } }catch(Exception $e){ print_message("session EventF exception: ".$e->getTrace()); print_message("session EventF exception: ".$e->__toString()); } session EventF exception: Array session EventF exception: [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:HttpSessionFacade]]->put((o:Object)[o:String], (o:Object)[o:EventFactory]). Cause: java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute VM: 1.6.0_04@http://java.sun.com/" at: #-13 org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1293) #-12 org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1254) #-11 org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:130) #0 http://localhost:8080/JavaBridge/java/Java.inc(259): java_ThrowExceptionProxyFactory->getProxy(12, 'depths.moodle.E...', true) #1 http://localhost:8080/JavaBridge/java/Java.inc(411): java_Arg->getResult(true) #2 http://localhost:8080/JavaBridge/java/Java.inc(417): java_Client->getWrappedResult(true) #3 http://localhost:8080/JavaBridge/java/Java.inc(621): java_Client->getResult() #4 http://localhost:8080/JavaBridge/java/Java.inc(1744): java_Client->invokeMethod(4, 'put', Array) #5 http://localhost:8080/JavaBridge/java/Java.inc(1857): java_JavaProxy->__call('put', Array) #6 http://localhost:8080/JavaBridge/java/Java.inc(2032): java_AbstractJava->__call('put', Array) #7 [internal function]: Java->__call('put', Array) #8 C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\moodleDEPTHS\depths\mapper\depths_insert.php(119): java_InternalJava->put('eventF', Object(Java)) #9 C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\moodleDEPTHS\depths\mapper\depths_insert.php(41): create_event_session_variable() #10 C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\moodleDEPTHS\lib\dmllib.php(1513): depths_insert_record('user', Object(stdClass), '73', 'INSERT INTO mdl...') #11 C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\moodleDEPTHS\user\editadvanced.php(85): insert_record('user', Object(stdClass)) #12 {main}] --------------------------------- Never miss a thing. Make Yahoo your homepage. |
From: <php...@li...> - 2008-03-15 12:54:10
|
Hi, I was able to reproduce this problem with Apache .2.8 (.2.6 doesn't have this problem). Since Apache 2.2.8 the PHP MINIT() is called exactly once and the MSHUTDOWN() function is called more than once, violating the PHP module contract. In other words: PHP does not work anymore with Apache 2.2.8. Please use some other HTTP server or some other SAPI, for example FastCGI. I have the gut feeling that this is a long-time PHP bug; they've probably implemented the wrong callback. PHP's MSHUTDOWN() shouldn't be called for each child, it should be called when the whole HTTP server terminates. A quick workaround is to store the PID in the MINIT() function (see java.c) and ignore any MSHUTDOWN() where getpid() != pid. Something like this: In java.c: int pid; MINIT() { pid = getpid(); ... } MSHUTDOWN() { if (getpid() != pid) return SUCCESS; // work around for a Apache 2.2.8 or PHP bug. ... } Note that all PHP modules have the same problem, so I suggest to file a bug report to either the PHP or the Apache team. Regards, Jost Boekemeier E-Mails jetzt auf Ihrem Handy. www.yahoo.de/go |
From: <php...@li...> - 2008-03-15 11:21:40
|
On Fri, 2008-03-14 at 18:11 +0100, php...@li... wrote: > Hi, > > the patch is invalid, and I doubt that this is a PHP or PHP/Java Bridge issue. > > Apache, when configured to use the prefork MPM, starts one Java process from the PHP MINIT() hook > and terminates it in the PHP MSHUTDOWN() hook. > > The MINIT() hook must be called *before* any worker child is spawned. And the MSHUTDOWN() hook > must be called *after* all childs have been terminated. > > Any stress test, which might kill childs at various levels, must not touch the Java child spawned > from the MINIT() hook. > > This means that either: > > a) you have found a bug in Apache > > b) this is a misconfiguration: for example java.so loaded from the PHP dl() function > > c) this is a misconfiguration: for example mod_php.so running in a non PREFORK MPM. > > > Regards, > Jost Boekemeier hi, ok, you are right whith the patch. this is probalbe bougous.. but look this code (bind.c) static void wait_for_daemon(void) { ....removed... for(i=0; i<2; i++) { struct timeval timeval = {2l, 0}; if(select(1+EXT_GLOBAL(cfg)->err, &rfds, 0, 0, &timeval) > 0) break; kill(EXT_GLOBAL(cfg)->cid, sig[i]); } 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; #else s_kill(0); /* always -9 on windows */ #endif } what if select returns an error? you exit from loop and go ahead to read, and this blocks if there are nothing to read. or? anyway, i will make some test with debugging enabled... some info: java.so is loaded from php.ini with extension=java.so i have only prefork mpm compiled, the apache configuration is a default config with the following changes: LoadModule php5_module modules/libphp5.so AddType application/x-httpd-php .php Include conf/extra/httpd-info.conf is switched on with ExtendedStatus On Attaching to program: `/usr/local/bin/httpd', process 58895. Reading symbols for shared libraries +++++++++.................... done 0x00007fff82976384 in read () (gdb) whe #0 0x00007fff82976384 in read () #1 0x00000001006e90d6 in java_shutdown_library () #2 0x00000001006de925 in zm_shutdown_java () #3 0x000000010128abfb in module_destructor () #4 0x0000000101292621 in zend_hash_apply_deleter () #5 0x0000000101292778 in zend_hash_graceful_reverse_destroy () #6 0x0000000101287397 in zend_shutdown () #7 0x0000000101241fdf in php_module_shutdown () #8 0x0000000101242089 in php_module_shutdown_wrapper () #9 0x000000010131e7f1 in php_apache_child_shutdown () #10 0x000000010022d299 in apr_pool_destroy () #11 0x0000000100057eb6 in clean_child_exit () #12 0x00000001000584d2 in child_main () #13 0x000000010005869a in make_child () #14 0x000000010005874b in startup_children () #15 0x0000000100059900 in ap_mpm_run () #16 0x0000000100007b68 in main () Server version: Apache/2.2.8 (Unix) Server built: Mar 11 2008 16:13:40 Server's Module Magic Number: 20051115:11 Server loaded: APR 1.2.7, APR-Util 1.2.7 Compiled using: APR 1.2.7, APR-Util 1.2.7 Architecture: 64-bit Server MPM: Prefork threaded: no forked: yes (variable process count) Server compiled with.... -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_FLOCK_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=128 -D HTTPD_ROOT="/usr/local" -D SUEXEC_BIN="/usr/local/bin/suexec" -D DEFAULT_PIDLOG="logs/httpd.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="logs/accept.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" Loaded Modules: core_module (static) authn_file_module (static) authn_default_module (static) authz_host_module (static) authz_groupfile_module (static) authz_user_module (static) authz_default_module (static) auth_basic_module (static) include_module (static) filter_module (static) log_config_module (static) env_module (static) unique_id_module (static) setenvif_module (static) ssl_module (static) mpm_prefork_module (static) http_module (static) mime_module (static) status_module (static) autoindex_module (static) asis_module (static) cgi_module (static) negotiation_module (static) dir_module (static) actions_module (static) userdir_module (static) alias_module (static) so_module (static) info_module (shared) php5_module (shared) php 5.2.5 configuration: './configure' '--prefix=/usr/local' '--with-apxs2=/usr/local/bin/apxs' '--with-pgsql=/usr/local' '--enable-ftp' '--with-zlib' '--enable-mbstring' '--enable-sockets' '--with-iconv' Best regards, Attila Soki |
From: <php...@li...> - 2008-03-14 17:11:56
|
Hi, the patch is invalid, and I doubt that this is a PHP or PHP/Java Bridge issue. Apache, when configured to use the prefork MPM, starts one Java process from the PHP MINIT() hook and terminates it in the PHP MSHUTDOWN() hook. The MINIT() hook must be called *before* any worker child is spawned. And the MSHUTDOWN() hook must be called *after* all childs have been terminated. Any stress test, which might kill childs at various levels, must not touch the Java child spawned from the MINIT() hook. This means that either: a) you have found a bug in Apache b) this is a misconfiguration: for example java.so loaded from the PHP dl() function c) this is a misconfiguration: for example mod_php.so running in a non PREFORK MPM. Regards, Jost Boekemeier Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: http://de.yahoo.com/set |
From: <php...@li...> - 2008-03-14 11:13:59
|
Hi, > But serving PHP through tomcat could be much slower. I don't think so. I've seen web server tests which suggest that running PHP through FastCGI is almost as efficient as through mod_php. > I also don't understand why mod_php and mod_jk both can not work? PHP requests go through > mod_php and JSP/servlet request goes through mod_jk to Tomcat. Where is the conflict? Depends on how you configure it. If you configure mod_jk to serve .jsp files only, your Java classes may not be able to find their resources. If you configure it so serve anything except .php, your PHP files may not be able to find their include (.inc) files anymore. Regards, Jost Boekemeier Lesen Sie Ihre E-Mails auf dem Handy. www.yahoo.de/go |
From: <php...@li...> - 2008-03-14 10:13:00
|
I guess you are refering "I want to use Apache/IIS as a front-end and tomcat as a back end. How do I enable PHP and JSP for all my applications?" section from FAQ. But serving PHP through tomcat could be much slower. Can someone tell me impact of performance for serving PHP through Apache or Tomcat? I also don't understand why mod_php and mod_jk both can not work? PHP requests go through mod_php and JSP/servlet request goes through mod_jk to Tomcat. Where is the conflict? I hope to hear soon from someone. Thanks Nimesh php...@li... wrote: Hi, what I meant was, that you cannot have both, PHP running within Apache and a forward rule which forward all requests to the Tomcat back end. The easiest setup is to remove or to ignore mod_jk and mod_php and to forward all requests to the back end using a mod_proxy rule, please see the "Load Balancing" and "Cluster" entries from our FAQ. The other option: Apache/PHP front-end, Tomcat or J2EE back end is described in the INSTALL.J2EE document. Again, you can ignore or remove mod_jk and use a mod_proxy rule instead. Regards, Jost Boekemeier Lesen Sie Ihre E-Mails jetzt einfach von unterwegs. www.yahoo.de/go ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users --------------------------------- Why delete messages? Unlimited storage is just a click away. |
From: <php...@li...> - 2008-03-13 22:48:25
|
Hi, >PHP automatically terminates after 30 seconds. Please consult your PHP >documentation for details. Thank you. You save me much work. Regards, Zoran = = = Original message = = = Hi, > repository. As it is slow performance process it takes a while to execute this method (at least > 1 minute). I have checked many times, this method is executed to the last line of code in Java PHP automatically terminates after 30 seconds. Please consult your PHP documentation for details. Regards, Jost Boekemeier Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: http://de.yahoo.com/set ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users ___________________________________________________________ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |
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 |
From: <php...@li...> - 2008-03-13 19:05:25
|
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 |
From: <php...@li...> - 2008-03-13 17:42:10
|
Hi, > repository. As it is slow performance process it takes a while to execute this method (at least > 1 minute). I have checked many times, this method is executed to the last line of code in Java PHP automatically terminates after 30 seconds. Please consult your PHP documentation for details. Regards, Jost Boekemeier Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: http://de.yahoo.com/set |
From: <php...@li...> - 2008-03-13 17:38:42
|
Hi, I have the problem when executing the following two lines of code: $d2rq->mapAllMoodleData(); redirect("start_here_page.php"); mapAllMoodleData() is Java method that performs mapping of Moodle database to Sesame repository. As it is slow performance process it takes a while to execute this method (at least 1 minute). I have checked many times, this method is executed to the last line of code in Java application and there is no exceptions. However, the second line of code is never executed. Could you suggest me where should I look for the problem? Regards Zoran --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. |
From: <php...@li...> - 2008-03-13 17:36:46
|
Hi, what I meant was, that you cannot have both, PHP running within Apache and a forward rule which forward all requests to the Tomcat back end. The easiest setup is to remove or to ignore mod_jk and mod_php and to forward all requests to the back end using a mod_proxy rule, please see the "Load Balancing" and "Cluster" entries from our FAQ. The other option: Apache/PHP front-end, Tomcat or J2EE back end is described in the INSTALL.J2EE document. Again, you can ignore or remove mod_jk and use a mod_proxy rule instead. Regards, Jost Boekemeier Lesen Sie Ihre E-Mails jetzt einfach von unterwegs. www.yahoo.de/go |