Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

Scaling up an application

Thread view: 
suken - 07 Dec 2005 12:32 GMT
Hi people,
       I have two EJB applications sharing the same database with
about 30 concurrent users at a time, Thanks to some bad coding done in
the past, the clients always come up with an out of memory exception. I
need to know just that which is the best way to scale the application
to give me a more fruitful result.

Adding a linked server,
Adding another application server.
Code review guys, is out of question for now.

Feel free to contribute any other ideas from the plethora of  your
experience.
Viator - 07 Dec 2005 13:25 GMT
What is the guarantee that the additional memory you get by adding
anything, will be enough? If there is a permanent leakage in the system
nothing can satisfy its memory needs.

Amit :-)
davidjdoherty@gmail.com - 07 Dec 2005 13:54 GMT
Yeah, if the server fails after just 30 visitors, then another server
probably won't be much better. Why is a code review out the question?
Why not redirect the money you would spend on hardware, configuration
to getting some people to fix/optimise the existing system?
Monique Y. Mudama - 07 Dec 2005 17:41 GMT
> Hi people, I have two EJB applications sharing the same database
> with about 30 concurrent users at a time, Thanks to some bad coding
[quoted text clipped - 4 lines]
> Adding a linked server, Adding another application server.  Code
> review guys, is out of question for now.

Then I think you're screwed.  30 concurrent users is *nothing*.
Something's terribly wrong with the design or the implementation.

> Feel free to contribute any other ideas from the plethora of  your
> experience.

Signature

monique

Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html

Dag Sunde - 07 Dec 2005 20:00 GMT
> Hi people,
>        I have two EJB applications sharing the same database with
[quoted text clipped - 6 lines]
> Adding another application server.
> Code review guys, is out of question for now.

Then fixing the problem is probably out of the question...

You can't fix a memory-leak by throwing harware at it.
You can postphone the problem, but if it occur with only
30 users it will only help for a couple of hours before
you have it again.

Properly written systems can serve 10's of thousands of
users without problems.

My bet is that fixing the root of your problens (ie.
the errors in the source code) is the only solution
to your problem. (And it will be *way* cheaper in the
long run)...

If you don't have the source, it may be better to
rewrite it from scratch (depending on size and importance).

Signature

Dag.

Roedy Green - 07 Dec 2005 22:36 GMT
>My bet is that fixing the root of your problens (ie.
>the errors in the source code) is the only solution
>to your problem. (And it will be *way* cheaper in the
>long run)...

What you might consider is hiring someone to solve your problem on a
contingency basis. If he is able to fix your code to support N users
for M hours without mishap he gets $X dollars.  If he does not, he
gets only a token  $Y.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.