Re: [PHP] slow performance

2007-04-26 Thread Henning Eiben
Richard Lynch wrote: > At 31:3 ratio, it's almost for sure NOT the fault of 3-tier > architecture nor the OR-mapper. > > Or, if it is, it's because you've chosen a HORRIBLE 3-tier > architecture or a RIDICULOUS OR-mapper. > > My *first* *first* *first* SWAG is that you've got something very very

[PHP] Re: [PHP-WIN] Re: [PHP] slow performance

2007-04-26 Thread Henning Eiben
Stanislav Malyshev wrote: >> OK, I installed FCGI and ran my testsuite. I did get more requests in a >> timeperiod of 5 minutes, but unfortunatly I also got a lot of errors >> (HTTP 500). But the performance of successful pages was increased by >> almost 15%. > > Maybe you need to configure FastC

Re: [PHP] slow performance

2007-04-25 Thread Henning Eiben
Richard Lynch wrote: > On Wed, April 25, 2007 5:48 am, Henning Eiben wrote: >> But as far as I understand, java kinda does the same thing, doesn't >> it? > > Sort of, but not really... > > Java has a single central one giant process architecture. > >

Re: [PHP] Re: [PHP-WIN] Re: [PHP] slow performance

2007-04-25 Thread Henning Eiben
Richard Lynch wrote: Are there multiple threads spawned? >>> Depends on server API. ISAPI does, fastCGi doesn't. >> OK; so for serving multiple concurrent clients ISAPI would sound to me >> like the better choice, since it can use threads, or what would be the >> advantage of using fastcgi? >

[PHP] Re: [PHP-WIN] Re: [PHP] slow performance

2007-04-25 Thread Henning Eiben
Stanislav Malyshev wrote: >> OK, so I will give that a try. As far as I understand, I basically just >> have to replace the association of ".php" to "php5isapi.dll" with >> "php-cgi.exe"; and then set the global path to include my php-folder, >> right? > > No, that probably would make it CGI, whi

[PHP] Re: [PHP-WIN] Re: [PHP] slow performance

2007-04-25 Thread Henning Eiben
Stanislav Malyshev wrote: >> OK; so for serving multiple concurrent clients ISAPI would sound to me >> like the better choice, since it can use threads, or what would be the >> advantage of using fastcgi? > > Non-threaded PHP is faster than threaded PHP, because it doesn't need to > do locks betw

Re: [PHP] script timeout

2007-04-25 Thread Henning Eiben
Tijnema ! wrote: >> I have a small sample-application, that uses smarty for the presentation >> layer. Unfortunately I might encounter script-timeouts (not necessarily >> from smarty, could also be the DB-connection or something). In this case >> I would like to return an appropriate HTTP status-c

[PHP] Re: [PHP-WIN] Re: [PHP] slow performance

2007-04-25 Thread Henning Eiben
Stanislav Malyshev wrote: >> But as far as I understand, java kinda does the same thing, doesn't it? >> Java programs are being compiled into some intermediate language, and >> this is being interpreted at runtime. So using an accelerator should >> mimic the same setup for php. > > Java is much l

Re: [PHP] slow performance

2007-04-25 Thread Henning Eiben
Zoltán Németh wrote: I wrote a small sample-application once using PHP (with propel and smarty) and once using Java (JBoss, EJB3, JSP & Servlets). Both apps are being served from a windows server (2x Xeon 1,3GHz, 2 GB RAM), but the performance of the PHP version is much slower

Re: [PHP] slow performance

2007-04-25 Thread Henning Eiben
Richard Davey wrote: >> Running my test for about 5 minutes, I get about 31.000 request for the >> java application, but only about 3.000 for the php. > > No offence, but the problem is almost 100% certainly in your PHP code > then. I'd look very carefully at what is going on there before trying

Re: [PHP] slow performance

2007-04-25 Thread Henning Eiben
Zoltán Németh wrote: I already installed an php-accelerator (eAccelator) which increased the overall performance, but still the performance is quite poor. >>> I would not say php performace is poor, I think it is quite fast (at >>> least on my linux boxes, I know nothing about php on win

Re: [PHP] slow performance

2007-04-25 Thread Henning Eiben
Zoltán Németh schrieb: >> I wrote a small sample-application once using PHP (with propel and >> smarty) and once using Java (JBoss, EJB3, JSP & Servlets). Both apps are >> being served from a windows server (2x Xeon 1,3GHz, 2 GB RAM), but the >> performance of the PHP version is much slower than t

[PHP] slow performance

2007-04-25 Thread Henning Eiben
Hi, I wrote a small sample-application once using PHP (with propel and smarty) and once using Java (JBoss, EJB3, JSP & Servlets). Both apps are being served from a windows server (2x Xeon 1,3GHz, 2 GB RAM), but the performance of the PHP version is much slower than the Java version. I already ins

[PHP] script timeout

2007-04-25 Thread Henning Eiben
Hi, I have a small sample-application, that uses smarty for the presentation layer. Unfortunately I might encounter script-timeouts (not necessarily from smarty, could also be the DB-connection or something). In this case I would like to return an appropriate HTTP status-code (might be 500 or some