You are here: Re: PHP compared to Java/J2EE « PHP Programming Language « IT news, forums, messages
Re: PHP compared to Java/J2EE

Posted by Sanders Kaufman on 11/16/07 03:09

"Lew" <lew@lewscanon.com> wrote in message
news:g4mdnTWIiPpiYKHanZ2dnUVZ_s-pnZ2d@comcast.com...
> NC wrote:
>> Both PHP and Java work well with Oracle; when it comes to MySQL,
>> however, Java (at least in its Tomcat implementation) tends to have
>> performance issues. One widely publicized example is Friendster; the
>> performance problems in its Linux/Tomcat/MySQL stack were so pervasive
>> that the whole application had to be rewritten in PHP.
>
> Could you give some specific citations how Java has "performance issues"
> with MySQL, and why it would differ from Java's performance with Postgres
> or Oracle?

I had an issue with the load-time for the java runtime.
I did a site that only got a few hits per month, but on ONE day, it would
get like a thousand.
When people weren't hitting it all the time, they'd experience as much as 30
seconds delay while the runtime (or whatever) booted up (or whatever).
It was a teeny, tiny, simple servlet - like 10 lines of code.
But if nobody hit it in a while, the first hit would be slllloooowwww.



> The only thing that could affect performance between Java and a database
> would be the JDBC driver. (Application code issues we will take as
> equivalently dangerous be it Java or PHP.) MySQL provides their own JDBC
> driver.
>
> --
> Lew

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация