Chris,

You have two choices:

Lighten the load on the server.

OR

Get a better machine.

One simple method to determine load on the Win box is Task Manager. This will give you a feel for processor consumption and memory size.

If the only loads are mysql and Tomcat then you are forced to consider you application or hardware. I had an issue in my app that when the requests rose to a certain level the load went exponential due to people reclicking. I ended up caching one of my main pages and only updating it once a minute. This reduced the Tomcat load and the mysql load. It however increased the memory footprint of my app. So if you can hold some information in memory and not request it every time you can decrease the load on mysql. Down side is that you will need more memory (maybe?). A profiler should be your next venture. As stated this is a fairly small box, but it is only an issue if all else is optimal.

As for would upgrading the machine fix your problem, only you can answer that. It will help and will be able to serve a lot more request but may be a total waste of money if the real problem is in your app. If the issue is a memory leak it may make very little difference. Same goes for adding a second box for mysql.

All this takes us back to the root of the issue. Why is it slow? Is the motor too small (has a 1.8 liter, needs a 4.2). Is there too much load (8 people in a four passenger car). Or is the app sloppy(Only 2 people but caring a ton of luggage. You know packs everything just in case.) rather than sleek and efficient. What if none of these are it? You could have a bad sparkplug (something wrong in the system).

Every design has trade offs and the environment should guide you as which direction to work in.


Nobody knows your needs as good as your and thus no one on the list knows all the details that go into you situation. And that is why you get the general answers rather than a definitive yes or no.


Doug

www.parsonstechnical.com


----- Original Message ----- From: "Chris Cherrett" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 29, 2004 3:03 PM
Subject: Re: Tomcat Requirements?



Would this problem be solved by a hardware upgrade?

On Monday 29 November 2004 01:03 pm, Peter Lin wrote:
as Yoav recommended, tomcat should be on it's own server. I would put
mysql on another system. that should fix things. most likely the
slowness is the result of database performance.

peter


On Mon, 29 Nov 2004 12:54:18 -0700, Chris Cherrett

<[EMAIL PROTECTED]> wrote:
> The application is highly database driven. In this case it is running a
> mysql database on the same machine.
>
> What would be the recommened hardware configuration?
>
> On a P4 2.4 with 1GB of RAM Tomcat is very happy!
>
> Thanks
>
> On Monday 29 November 2004 12:53 pm, Peter Lin wrote:
> > that would depend on what kind of application it is.
> >
> > without more info, like does it hit a database, is the database > > hosted
> > on the same system or does the application get remote data it's going
> > to be hard for others to provide good recommendations.
> >
> > peter
> >
> >
> > On Mon, 29 Nov 2004 12:43:07 -0700, Chris Cherrett
> >
> > <[EMAIL PROTECTED]> wrote:
> > > I have a client who is claiming that my software is slowing down. I
> > > cannot determine why this would be. He is running the following:
> > >
> > > P3 - 450 with 360MB of RAM
> > > with 2 IDE - 7200 RPM drives mirrored Raid 1 with Win2k
> > >
> > > I have found that any client running a faster system works great. > > > Do
> > > you have any suggestions as to how to speed things up on this
> > > hardware configuration? example increase memory allocated to > > > Tomcat.
> > >
> > > Thanks
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: > > > [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
>
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- Chris Cherrett Tracking Solutions International 1-877-TSIWARE www.tsiware.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to