java server mode vs. client mode

2004-06-16 Thread Matt Bathje
I posted this on the struts list this morning, but it might get better
answers here.

I was reading the stories here:

http://www.sys-con.com/story/?storyid=45250
http://www.kano.net/javabench/

Summary:
Java in server mode is faster than C++ in the benchmarks run. Java in client
mode is much more iffy, sometimes faster, sometimes slower, and sometimes
the same.


So my question becomes - does anybody have any experience running their
Tomcat jvm using the -server option instead of letting it default to client?

Based on what the tester says, the only downside of running the jvm in
server mode is a longer startup time, but the Java code still beat C++ even
with the longer times, so it can't be too bad.

So anybody have any experience/thoughts on this?


Thanks,
Matt Bathje


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



Re: java server mode vs. client mode

2004-06-16 Thread Peter Lin
 
this has been mentioned countless times on the mailing list and I have tons of numbers 
comparing client to server in my article on the resources page of tomcat.
 
if you want hard numbers, I would suggest look at the article, or run some stress 
tests on your own apps. a quick test will give you hard numbers to prove/disprove the 
benefit/non-benefit of running in -server mode.
 
i hope that helps
 
peter
 


Matt Bathje [EMAIL PROTECTED] wrote:
I posted this on the struts list this morning, but it might get better
answers here.

I was reading the stories here:

http://www.sys-con.com/story/?storyid=45250
http://www.kano.net/javabench/

Summary:
Java in server mode is faster than C++ in the benchmarks run. Java in client
mode is much more iffy, sometimes faster, sometimes slower, and sometimes
the same.


So my question becomes - does anybody have any experience running their
Tomcat jvm using the -server option instead of letting it default to client?

Based on what the tester says, the only downside of running the jvm in
server mode is a longer startup time, but the Java code still beat C++ even
with the longer times, so it can't be too bad.

So anybody have any experience/thoughts on this?


Thanks,
Matt Bathje


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



-
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.

Re: java server mode vs. client mode

2004-06-16 Thread Eric VERGNAUD
le 16/06/04 21:50, Matt Bathje à [EMAIL PROTECTED] a écrit :

 I posted this on the struts list this morning, but it might get better
 answers here.
 
 I was reading the stories here:
 
 http://www.sys-con.com/story/?storyid=45250
 http://www.kano.net/javabench/
 
 Summary:
 Java in server mode is faster than C++ in the benchmarks run. Java in client
 mode is much more iffy, sometimes faster, sometimes slower, and sometimes
 the same.
 
 
 So my question becomes - does anybody have any experience running their
 Tomcat jvm using the -server option instead of letting it default to client?
 
 Based on what the tester says, the only downside of running the jvm in
 server mode is a longer startup time, but the Java code still beat C++ even
 with the longer times, so it can't be too bad.
 
 So anybody have any experience/thoughts on this?
 
 
 Thanks,
 Matt Bathje
 

Matt,

No one can really believe Java is faster than C or C++, because Java is
itself written in C and C++.

I haven't been through the benchmark code throroughly, but there's
definitely a bias somewhere.

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---


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



Re: java server mode vs. client mode

2004-06-16 Thread Matt Bathje
Thanks for the pointer to the article, don't know why I didn't just think to
look their in the first place.

I was sure it was something that has been mentioned on the list before, but
I wasn't able to find a way to search for it that yielded good results.


Thanks again for the info!
Matt Bathje


- Original Message - 
From: Peter Lin [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 2:54 PM
Subject: Re: java server mode vs. client mode



 this has been mentioned countless times on the mailing list and I have
tons of numbers comparing client to server in my article on the resources
page of tomcat.

 if you want hard numbers, I would suggest look at the article, or run some
stress tests on your own apps. a quick test will give you hard numbers to
prove/disprove the benefit/non-benefit of running in -server mode.

 i hope that helps

 peter



 Matt Bathje [EMAIL PROTECTED] wrote:
 I posted this on the struts list this morning, but it might get better
 answers here.

 I was reading the stories here:

 http://www.sys-con.com/story/?storyid=45250
 http://www.kano.net/javabench/

 Summary:
 Java in server mode is faster than C++ in the benchmarks run. Java in
client
 mode is much more iffy, sometimes faster, sometimes slower, and sometimes
 the same.


 So my question becomes - does anybody have any experience running their
 Tomcat jvm using the -server option instead of letting it default to
client?

 Based on what the tester says, the only downside of running the jvm in
 server mode is a longer startup time, but the Java code still beat C++
even
 with the longer times, so it can't be too bad.

 So anybody have any experience/thoughts on this?


 Thanks,
 Matt Bathje


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



 -
 Do you Yahoo!?
 Read only the mail you want - Yahoo! Mail SpamGuard.


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



[OT] Re: java server mode vs. client mode

2004-06-16 Thread Matt Bathje
Yes, I understand that it may not be completley accurate, but I was less
interested in the Java/C++ comparison than the client/server mode
comparison.

Thanks,
Matt Bathje


- Original Message - 
From: Eric VERGNAUD [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 3:12 PM
Subject: Re: java server mode vs. client mode


 le 16/06/04 21:50, Matt Bathje à [EMAIL PROTECTED] a écrit :

  I posted this on the struts list this morning, but it might get better
  answers here.
 
  I was reading the stories here:
 
  http://www.sys-con.com/story/?storyid=45250
  http://www.kano.net/javabench/
 
  Summary:
  Java in server mode is faster than C++ in the benchmarks run. Java in
client
  mode is much more iffy, sometimes faster, sometimes slower, and
sometimes
  the same.
 
 
  So my question becomes - does anybody have any experience running their
  Tomcat jvm using the -server option instead of letting it default to
client?
 
  Based on what the tester says, the only downside of running the jvm in
  server mode is a longer startup time, but the Java code still beat C++
even
  with the longer times, so it can't be too bad.
 
  So anybody have any experience/thoughts on this?
 
 
  Thanks,
  Matt Bathje
 

 Matt,

 No one can really believe Java is faster than C or C++, because Java is
 itself written in C and C++.

 I haven't been through the benchmark code throroughly, but there's
 definitely a bias somewhere.

 ---
 Eric VERGNAUD - JLynx Software
 Cutting-edge technologies and
 services for software companies
 web: http://www.jlynx.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]



Re: java server mode vs. client mode

2004-06-16 Thread Peter Lin
 
ahh gotta love benchmarks. the only valid benchmark is your own application, which 
you've tuned.
 
all other cases are seriously error proned or not applicable to real applications.
 
peter


Eric VERGNAUD [EMAIL PROTECTED] wrote:
le 16/06/04 21:50, Matt Bathje à [EMAIL PROTECTED] a écrit :

 I posted this on the struts list this morning, but it might get better
 answers here.
 
 I was reading the stories here:
 
 http://www.sys-con.com/story/?storyid=45250
 http://www.kano.net/javabench/
 
 Summary:
 Java in server mode is faster than C++ in the benchmarks run. Java in client
 mode is much more iffy, sometimes faster, sometimes slower, and sometimes
 the same.
 
 
 So my question becomes - does anybody have any experience running their
 Tomcat jvm using the -server option instead of letting it default to client?
 
 Based on what the tester says, the only downside of running the jvm in
 server mode is a longer startup time, but the Java code still beat C++ even
 with the longer times, so it can't be too bad.
 
 So anybody have any experience/thoughts on this?
 
 
 Thanks,
 Matt Bathje
 

Matt,

No one can really believe Java is faster than C or C++, because Java is
itself written in C and C++.

I haven't been through the benchmark code throroughly, but there's
definitely a bias somewhere.

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---


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



-
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!

Re: java server mode vs. client mode

2004-06-16 Thread Woodchuck
 
 No one can really believe Java is faster than C or
 C++, because Java is
 itself written in C and C++.

isn't there a hardware JVM implementation?  maybe
running on that, Java  C++

:D




__
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

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



Re: java server mode vs. client mode

2004-06-16 Thread Elijah Epifanov
At first:
If I'ld write a C++ compiler with Perl, this doesn't mean
that it will generate code slower than Perl scripts:)
Then:
Exhaustive optimization techniques (like loop expansion,
disabling array bounds checking, etc.) really make your
code faster in ANY case, BUT small amount of generated
code may fit your processors cache, some jump may be
converted to short jumps, etc.. So, generally speaking,
more optimized code shall run faster, but it's bigger.
Huge amount of code may even seriously decrease
amount of free RAM, so more swapping will occur.
AND ... if you do really meaninglessthings in your code, then
there's a chance that optimizer will not eliminate
this code, because it cannot generate OPTIMAL code.
This is, mathematically speaking, twice a NP-hard problem.
First when generating code, second when testing it's speed.
I recommed using -server hotspot. Look at name...
S E R V E R. I'm not sure guys from Sun randomly named it
this way :)


- Original Message - 
From: Eric VERGNAUD [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 12:12 AM
Subject: Re: java server mode vs. client mode


le 16/06/04 21:50, Matt Bathje à [EMAIL PROTECTED] a écrit :

 I posted this on the struts list this morning, but it might get better
 answers here.

 I was reading the stories here:

 http://www.sys-con.com/story/?storyid=45250
 http://www.kano.net/javabench/

 Summary:
 Java in server mode is faster than C++ in the benchmarks run. Java in
client
 mode is much more iffy, sometimes faster, sometimes slower, and sometimes
 the same.


 So my question becomes - does anybody have any experience running their
 Tomcat jvm using the -server option instead of letting it default to
client?

 Based on what the tester says, the only downside of running the jvm in
 server mode is a longer startup time, but the Java code still beat C++
even
 with the longer times, so it can't be too bad.

 So anybody have any experience/thoughts on this?


 Thanks,
 Matt Bathje


Matt,

No one can really believe Java is faster than C or C++, because Java is
itself written in C and C++.

I haven't been through the benchmark code throroughly, but there's
definitely a bias somewhere.

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.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]