Re: A couple of performance related questions

2004-04-05 Thread Paul Mansfield
On Sat, 2004-04-03 at 18:57, Randy Paries wrote:
 BTW, yesterday someone sent out to the list a chart of times for connectors.

 I accidentally deleted it and can not find it on the archive. Could someone
 that still has that please email it to me directly?

you really ought to run your own benchmarks before going live. All the
benchmarks I've seen indicate that java's performance can vary hugely
from platform to platform, between Pentium3 and P4 for example.

I wrote a simple TimeTrack class which my jsps call during the course
of execution, and then at the end print the track to allow
benchmarking of pages, and I quickly realised that the dominating effect
was a slow DB link to an oracle server in another country - plain JSPs
were being turned round in less than 10ms but the DB overhead was 300ms.

Paul


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



RE: A couple of performance related questions

2004-04-05 Thread Shapira, Yoav

Hi,

 3) setting -Xmx ,-Xss. (what is the default? I noticed in the
catalina.sh,
 there is no -Xmx ,-Xss)

Be careful between -Xss and -Xms.  The former is the thread stack size,
the latter is the heap minimum size.  Very few people/cases should tweak
-Xss.  What you most likely meant is -Xms.

If you are using catalina.sh then you set the enviroment settings by
exporting a system variable in the shell.

You can, and are encouraged, to NOT set env variables in the shell and
instead put them in the script itself.  Always try to minimize
environment dependencies.

Default is 64M.

Default for -Xmx, maximum heap size, for JDK 1.4.2 is 64MB.  Other non
-Xmx switches can affect this, such as -server (in server mode the
default is different on the various platforms).  In JDK 1.5, many of
these defaults have been moved to 128MB.

The default for -Xms for JDK 1.4.2 is 2MB on most platforms.  Again,
various non -Xms switches can affect this.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



A couple of performance related questions

2004-04-03 Thread Randy Paries
Hello,
I have a couple of performance questions.

BTW, yesterday someone sent out to the list a chart of times for connectors.


I accidentally deleted it and can not find it on the archive. Could someone
that still has that please email it to me directly?

I am using rh9, tomcat 4, apache 2

1) Is there any advantages/disadvantage to using mod_jk2 instead of mod_jk?

2) has anyone used Jikes and seen a noticeable difference?

3) setting -Xmx ,-Xss. (what is the default? I noticed in the catalina.sh,
there is no -Xmx ,-Xss)
   I am moving from one prod box rh7.3
   in 7.3 it show each thread individually. Any idea how to tell how much 
   memory my tomcat is using? Currently I have 120 threads.  
   But each thread looks like this(I am pretty sure)

Ie from top
  4012 apache 9   0 92160  65M  2412 S 0.3  6.4   0:15 java

Thanks for any help and answers to any of these questions.

randy   


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



Re: A couple of performance related questions

2004-04-03 Thread David Rees
Randy Paries wrote, On 4/3/2004 9:57 AM:
1) Is there any advantages/disadvantage to using mod_jk2 instead of mod_jk?
Not really from my point of view.

2) has anyone used Jikes and seen a noticeable difference?
It compiles faster, which is good if you have a slow machine and/or 
don't precompile your JSPs.  Performance is the same once compiled.

-Dave

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


Re: A couple of performance related questions

2004-04-03 Thread Parsons Technical Services
Randy,

Since David did 1  2 I'll give you 3.


 3) setting -Xmx ,-Xss. (what is the default? I noticed in the catalina.sh,
 there is no -Xmx ,-Xss)

If you are using catalina.sh then you set the enviroment settings by
exporting a system variable in the shell.
If you are running it as a daemon, well that's another issue.

From a prompt:
export JAVA_OPTS=-Xms128m -Xmx128m

Put which setting you want in place of the ones above.

Default is 64M.


 4012 apache 9   0 92160  65M  2412 S 0.3  6.4   0:15 java

For this the thread count doesn't matter. Each shows the total available to
all threads. In this case 64M or 65M.

So even with 300 threads the most memory used is 64M for all threads
combined. Search the archives for listings on memory. There were a couple of
good post on this in the last couple of months.

 Doug
www.parsonstechnical.com



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