Re: Multiple apps on single server

2010-05-09 Thread Janning Vygen
On Saturday 08 May 2010 23:37:59 Ján Raska wrote:
 Hello,

 I'm thinking about making small business by selling/renting e-shop and CMS
 applications written in Wicket. Now I'm trying to figure out, how many such
 applications can be hosted on a single server (let's assume 2x Dual Core
 Xeon 2.66 GHz, 4GB RAM). Except wicket, I'll use Spring and Hibernate or
 EclipseLink, libs in total shouldn't have more then 20-30MB, an average
 application can be assumed to have maximum of 200 active users at one time.

 Is there any way to figure it out? I'm basically trying to minimize a
 running cost per application and I love Java and Wicket too much to go back
 and do PHP stuff, though I guess it's impossible to beat PHP in terms of
 running cost. Can anybody help with this?

Java is much better in terms of resources than PHP, at least this my 
experience. It is not only much faster in my opinion, it has better tools to 
do profiling. I really did both on a high traffic website (600 accesses per 
second at peak time) and we solved almost any problem we had with 
java/tomcat/hibernate/postgresql vs apache/php/postgresql. 

In my experience, hardware is never an issue, at least not in the beginning. 
Most bottlenecks i have seen are software related. beginning at the database 
level with proper indexing and configuring the database, configuring the 
connection pool, using a cache, profiling your app will offer valuable 
insights. 
And not to be forgotten: take a look at the client with Yslow Firefox plugin. 
A great tool. And take thread dumps of you virtual machine at peak time to see 
what is really happening. 

So don't guess, measure!

kind regards
Janning


 Thanks

 Jan
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Multiple apps on single server

2010-05-08 Thread Ján Raska
Hello,

I'm thinking about making small business by selling/renting e-shop and CMS 
applications written in Wicket. Now I'm trying to figure out, how many such 
applications can be hosted on a single server (let's assume 2x Dual Core Xeon 
2.66 GHz, 4GB RAM). Except wicket, I'll use Spring and Hibernate or 
EclipseLink, libs in total shouldn't have more then 20-30MB, an average 
application can be assumed to have maximum of 200 active users at one time.

Is there any way to figure it out? I'm basically trying to minimize a running 
cost per application and I love Java and Wicket too much to go back and do PHP 
stuff, though I guess it's impossible to beat PHP in terms of running cost. Can 
anybody help with this?

Thanks

Jan
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Multiple apps on single server

2010-05-08 Thread Jeremy Thomerson
Two things:

1 - Use Brix.  You can write your ecommerce components as tiles that can be
rearranged however you want in any site.  You can create plugins for the
admin console for management of said ecommerce shops.

2 - There's absolutely no way anybody on this list can answer your question.
 I've been to enough different businesses to know that those numbers are
entirely dependent on how you use the said frameworks.  You can use them
efficiently, or not.  You can have large object graphs, or not.  Etc.
 You'll just have to see.  But I can tell you this: there are a lot of
high-traffic Wicket applications out there running on a single server of the
capacity you mention.  Assuming you hit a load barrier, it's likely going to
be the database first - so offload the DB to its own server.  That just
increased your capacity.  Etc, etc,

--
Jeremy Thomerson
http://www.wickettraining.com



On Sat, May 8, 2010 at 4:37 PM, Ján Raska ras...@gmail.com wrote:

 Hello,

 I'm thinking about making small business by selling/renting e-shop and CMS
 applications written in Wicket. Now I'm trying to figure out, how many such
 applications can be hosted on a single server (let's assume 2x Dual Core
 Xeon 2.66 GHz, 4GB RAM). Except wicket, I'll use Spring and Hibernate or
 EclipseLink, libs in total shouldn't have more then 20-30MB, an average
 application can be assumed to have maximum of 200 active users at one time.

 Is there any way to figure it out? I'm basically trying to minimize a
 running cost per application and I love Java and Wicket too much to go back
 and do PHP stuff, though I guess it's impossible to beat PHP in terms of
 running cost. Can anybody help with this?

 Thanks

 Jan
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org