• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Webapp in a high-delivery environment

 
Fabio Fonseca
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How should it looks like?

To make a long story short, my company will be responsible for the web content of another one. Which means that our scores will double or triple in a few days or so. What we have now is:

Tomcat + Jrockit + hibernate serving daily 200k page-views. Today we're facing some problems with scability, since we're running the site in a p4 box (Debian - older Kernel) with only 542MB RAM.

But the real problem is, the other company's boss operates in a PHP house and still have the mentality that all Java stuff are slow and prone to scability problems. They even offered us the possibility of porting our site to PHP. But, in my opinion, that will not do the trick. Besides the waste of money and time for this operation.

I've been collecting some data and I think that buying a better computer with more RAM and, maybe, migrating our stuff to something more robust like JBOSS would do the trick.

What is our experience in such scenario? What would be a good configuration for a portal serving 1million page-views daily?

thanks in advance!

Fabio Fonseca
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First thing to find out is whether your scalibility problem is coming from the Java part, or from the database.

Is your database running on a separate machine?
 
Fabio Fonseca
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

First thing to find out is whether your scalibility problem is coming from the Java part, or from the database.

Is your database running on a separate machine?


Hello, Ilja!

Noch nicht! Not yet. My database is running in the same machine as Tomcat. But I'm using Hibernate with CP3O. I know that it can't handle all access. But you think with just changing the DB to a other machine would help improve delivery? Even with this lame and weak machine of ours?

****Important****
I've checked the option to receive an email whenever my post was replied. But that didn't happen. I checked through my spam list and there was nothing there too. It's would be good to check on this!
[ July 04, 2006: Message edited by: Fabio Fonseca ]
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My database is running in the same machine as Tomcat. But I'm using Hibernate with CP3O. I know that it can't handle all access. But you think with just changing the DB to a other machine would help improve delivery? Even with this lame and weak machine of ours?


Of course that depends on what exactly your application is doing. I've heard, though, that often enough the database is the true bottleneck, not the web frontend. Perhaps you should check that first.


I've checked the option to receive an email whenever my post was replied. But that didn't happen. I checked through my spam list and there was nothing there too. It's would be good to check on this!


Mhh, that's strange. Can you please start a new thread on this in the "This Site" forum? That's the right place to discuss it effectively... Thanks!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How much duplication is there in the page requests? Caching all or part of the generated HTML could be a BIG improvement by avoiding database round-trips.
Bill
 
Fabio Fonseca
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by William Brogden:
How much duplication is there in the page requests? Caching all or part of the generated HTML could be a BIG improvement by avoiding database round-trips.
Bill


he he. Seems like I'm discussing that in every single forum here. But, anyway, I'm desperate and I think it will help other ppl too.

There is a HUGE duplication in the page requests. Because we're dealing with news, but a new one come every 15 to 30 min. So we have this gap we're tomcat is serving like a mad a content that could be static. The question is: how do I do that in the fastest possible way? By using velocity?

Been reading the velocity documentation for a while, but I still haven't got a clue..
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then take a look at Whirlycache.
To quote from that link:
Whirlycache is a fast, configurable in-memory object cache for Java. It can be used, for example, to speed up a website or an application by caching objects that would otherwise have to be created by querying a database or by another expensive procedure

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!