Hi Marcel,
Thanks for your reply.
On 07/02/2010 12:58 PM, Marcel Offermans wrote:
Hello Sander,
On Jul 2, 2010, at 12:27 , Sander de Groot wrote:
Our production environment consists of>= 500 websites and are currently all
written in PHP. We're considering moving from PHP to Java but are unsure if its
the right choice and if it is even possible with that many sites. (memory?)
At the moment we're considering to use Felix as the container for all
applications. So Felix will have> 500 bundles. Each bundle (at least the
webapps) will be around 100kb each. I'd like to know whether it is possible to
have that many bundles deployed in Felix and would like to know more about the
performance aspect.
So in short: is it possible to deploy ~ 500 bundles on one container and have
the same or even better performance than the same server using PHP? Or do you
have any other (better) suggestions?
Deploying hundreds of bundles in a single container is no problem, the
framework can handle that. However, all other questions about performance are
impossible to answer without a lot more information. The most important thing
to realize is that the OSGi framework itself adds very little overhead, so the
main question is what these 500 bundles will be doing?
Okay, I was expecting this question. The problem however is: I can't
give you a definitive answer. Like I said: these bundles are actually
just web applications (WAR) with a single point of entry (single servlet
per-bundle).
We've got many small websites (just images, files, some dynamic content
and of course a CMS for the customer). Also we've got a few somewhat
bigger sites which have more requests per second (I don't have any
numbers atm) and relatively more content and finally we've got a few
webapplications ~ 10 which are categorized as large (and again,
relatively, I can only speak for the applications within our company).
An example: a webstore for the company Nomad, a webapplication for a
relatively large but local newspaper etc.
At peak we probably got 250 requests per second. It's no problem to
load-balance so the amount of requests per second should not matter.
What does matter to me is loading tons of applications into one VM. I've
got few experience with java server technology and therefore have no
clue on these topics.
To answer your question: the main goal of the bundles is to handle HTTP
requests. Within handling these requests there is a variety of actions
like: retrieval of data, security, content management etc. One important
note is that the bundles won't serve static files.
Actually, what's bothering me (at least, I think) is this:
To me Java Application servers are known to host really large
(web)applications. As far as I know Java is most commonly used for the
kind of applications for which you will be needing a whole server to run
them. PHP on the other hand is more commonly used for smaller scale
applications. Since we're switching to Java, I'm concerned that Java
isn't designed to handle that many nor such small applications.
So therefore my question is: can Java compete to PHP on these scales?
I'm sorry if I haven't given you enough information, If there is
anything specific then I'd gladly supply the information.
Greetings, Marcel
Regards,
Sander
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
*Sander de Groot*
Webdevelopment
*JDI internet professionals*
Zutphensestraatweg 85
6953 CJ Dieren
www.jdi.nl <http://www.jdi.nl>
T (0313) 496 741
F (0313) 420 996
M 06 2325 2066 /(Belangrijke zaken)/
[email protected] <mailto:[email protected]>
*Interesse in werken bij JDI?*
http://www.jdi.nl/vacatures/