>>This is good advice. Load testing is generally easy to do in....

I dont think so, and it depends on what kind of estimation you try to do
that. It is always pretty difficult for any development team to pass the
load test (if your serious on that). I would do and it would take us hell
out of our time in passing the load test. The load test gives the tuning
parameters for the efficient java and heap. 

If I have problems in production, I would take the dump of database into
load test environment and similate it and fix it. That would be a
professional way to hand these kind of production issues. I would't go
directly to the servers and change as I like. 



-----Original Message-----
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Friday, February 27, 2004 8:32 PM
To: Tomcat Users List
Subject: Re: Tomcat heap vs. java.exe


Hello,

> If I were you, I'd load test your site first before going to production.
As
> you pointed out, you cannot afford to stop your production server or hang
> it with OutOfMemory errors.

This is good advice. Load testing is generally easy to do in 
development, and hard to recover from if you don't do it, once you're in 
prod.

> You can get jvm dumps on windows by turning on the -verbosegc. This will
> dump out stack traces repeatedly without exiting the JVM.

I don';t think this is accurate. '-verbosegc' only logs the GC activity 
to the stdout or stderr or whatever. It does not generate stack traces 
for you.

CTRL-BREAK on win32 gives you a full thread-dump. This will give you a 
stack trace for any running thread, as well as information about it's 
state (runnable, waiting on monitor, sleeping, etc.). This can be 
valuable when your application is not responding in timely way. If 
you're thrashing or getting LOTS and lots of GC activity, your memory 
settings might be off. On the other hand, if you have horrible code, you 
can never recover from that, even with a dual-cpu box ith a gig of ram :)

-chris


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

Reply via email to