Java will use as much as you let it. The amount of memory is dependent more
on your app. than Tomcat. You can write inefficient code that will kill any
platform or you can write very efficient code that will hardly tax the
system. Tomcat itself does not require that much to run. You should also
There is no way for anyone to even guess at that without benchmarks of your
application. I'd suggest you use Jmeter and simulate users to see how it
affects a server that you have already. 3000 is a lot of users so perhaps some
kind of clustered environment should be considered.
-Original
This is an old post but I would like to thank everyone who helped out.
The problem turned out to indexes on the mysql database. I added index and
everything runs great for my client on their small machine. -- (This is
relative: I have a client running a sun server - dual 3.4 with 2 GB ram.
From: Chris Cherrett [mailto:[EMAIL PROTECTED]
I have a client who is claiming that my software is slowing
down. I cannot determine why this would be.
Profile it - what's slow? Start Admin ToolsPerformance, add:
Processor%CPU time
MemoryPages/sec
Physical DiskAvg Disk Queue Length
Are you
Thank you for the suggestions.
I had the client do just that this afternoon.
Tomcat averaged 15% CPU
Mysql spiked the CPU usage to 100% when hit with long queries.
Would this be an indication of the need for RAM, or the need for a faster CPU?
They are running 360MB of RAM. P3 450
Thanks
On
[I'm marking this OT as it's looking increasingly like a database issue]
From: Chris Cherrett [mailto:[EMAIL PROTECTED]
Tomcat averaged 15% CPU
Mysql spiked the CPU usage to 100% when hit with long queries.
Bloody. Would you expect that to be the case? Naively, I'd be looking
at my
On Tuesday 30 November 2004 12:42, Peter Crowther wrote:
Bloody. Would you expect that to be the case? Naively, I'd be looking
at my database indexing at this point and seeing what was causing mySQL
to have problems.
I had a similar problem with PostgresQL. Created some indexes and now the
The queries are very complex in this case. I will look into indexing and see
what I can do. Thanks for the help. I will post back to tell you what I come
up with.
Thanks
On November 30, 2004 03:46 am, Quinton Delpeche wrote:
On Tuesday 30 November 2004 12:42, Peter Crowther wrote:
Bloody.
From: Chris Cherrett [mailto:[EMAIL PROTECTED]
The queries are very complex in this case. I will look into
indexing and see
what I can do. Thanks for the help. I will post back to tell
you what I come up with.
Best of luck! I find that capturing a workload and replaying it is the
only
Is the system using swap? You should tune the java app (Tomcat) to not use more
memory than is available without swapping.
Ronald.
On Mon Nov 29 20:43:07 CET 2004 Chris Cherrett [EMAIL PROTECTED] wrote:
I have a client who is claiming that my software is slowing down. I cannot
determine why this
When Mysql is at 100%, you go to the Mysql list and ask for help.;)
A database at 100% could be any number of reasons:
1) A bad join
2) An inefficient query
3) Not enough memory on the server
4) Not enough memory for Mysql
5) Lack of indexes or poor index choices
6) ...
Get a second machine.
which another good reason to put the database on separate box. by
isolating tomcat and mysql, you can run tests on each. then you can
test the setup together and see what you get. that's how I generally
test my applications.
peter
On Tue, 30 Nov 2004 07:05:59 -0500, Tim Funk [EMAIL PROTECTED]
Hi,
It's not as much the hardware itself (probably) as what else is running,
and the load experienced by the app. This box is puny. Nothing else
should be running, and even then unless your app is very light only a
small concurrent load could probably be handled well.
Yoav Shapira
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,
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
Hi Chris,
That's a pretty general question.
It depends on what apps you are running. The number of users. Then there
could be various bottlenecks and memory leaks.
I'm not sure if Tomcat 5 still have a memory leak but I recall other
people having problems in this area before. Why don't you go
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
Hi,
On a P4 2.4 with 1GB of RAM Tomcat is very happy!
You missed my (and others') main point. It's not just Tomcat that's
happy or unhappy. You have to consider the overall combination:
that includes the database engine, the OS-level stuff (other processes,
such as scheduled tasks and
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.
unless there's a really good reason, it's generally better to have the
database on one system and tomcat on another. once the concurrent
query load increases, tomcat will be fighting mysql for cpu and memory
resources.
peter
On Mon, 29 Nov 2004 13:03:36 -0700, Chris Cherrett
[EMAIL PROTECTED]
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
On Monday 29 November 2004 21:43, Chris Cherrett 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
22 matches
Mail list logo