Re: Slow on Linux

2003-11-25 Thread Yonatan Goraly
I have read that Suse linux team has been working closely with AMD to 
support AMD64, and I am going to try their commercial product 
(professional edition, $130).
I know that SUN plan to have an AMD64 version for the JDK 1.5, which 
should be next year.

The reason for choosing the Linux OS is not Java, but the database. I 
plan to use PostgreSQL 7.4, and they have a builds for suse x86_64, so 
it looks promising.

Nikola Milutinovic wrote:

Yonatan Goraly wrote:

The exact execution time of that line of code is not very relevant, 
since the difference is between an interval I can't notice to an 
interval I can notice very well - should be at least a factor of x100.
I just finished installing RedHat 9 (32 bit), the performance is much 
better, and the CPU is working much less. I guess it was something 
related to the Mandrake version I had.
It still feels slower than what I am used to on Windows, but I have 
to make measurements in order to arrive at any conclusions.


You're using Opteron - that is 64-bit CPU. Why not compile kernel from 
the source for your desired platform?

Is there a JRE specifically for Opteron?

Nix.

-
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: Slow on Linux

2003-11-25 Thread Nikola Milutinovic
Yonatan Goraly wrote:

I have read that Suse linux team has been working closely with AMD to 
support AMD64, and I am going to try their commercial product 
(professional edition, $130).
I know that SUN plan to have an AMD64 version for the JDK 1.5, which 
should be next year.

The reason for choosing the Linux OS is not Java, but the database. I 
plan to use PostgreSQL 7.4, and they have a builds for suse x86_64, so 
it looks promising.
Mmmm, that makes me drool...

Nix.

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


Re: Slow on Linux

2003-11-25 Thread Oscar Carrillo
I imagine that you could compile an AMD64 kernel, and compile Postgresql
for AMD64. But you still might have a poor performer with a 32-bit jdk.  
You could put Postgresql on a separate AMD64 server and Tomcat on a 32-bit
X86 server, but that may or may not be what you want.

Compiling a kernel for a server is really quite easy, because you don't
need to worry about peripherials like FireWire, USB, etc.

My HowTo describes how to compile PostgreSQL 7.3.4, and it's probably the 
same for 7.4. But I am going to compile 7.4 soon and post the info on my 
web page.

Oscar
http://daydream.stanford.edu/tomcat/install_web_services.html

 Yonatan Goraly wrote:
 
  I have read that Suse linux team has been working closely with AMD to 
  support AMD64, and I am going to try their commercial product 
  (professional edition, $130).
  I know that SUN plan to have an AMD64 version for the JDK 1.5, which 
  should be next year.
  
  The reason for choosing the Linux OS is not Java, but the database. I 
  plan to use PostgreSQL 7.4, and they have a builds for suse x86_64, so 
  it looks promising.


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



RE: Slow on Linux

2003-11-25 Thread Wade Chandler
Just wondering.  Did you know that every Postgres connection creates a
system process, and not a thread?  PostgreSQL uses Fork.  I don't use it
because of this.  DB Connection = Separate Process.  I use Firebird.
You can use Firebird 1.5 even.  That's just a consideration since you
are posting about performance.

Wade

-Original Message-
From: Yonatan Goraly [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 25, 2003 3:05 AM
To: Tomcat Users List
Subject: Re: Slow on Linux


I have read that Suse linux team has been working closely with AMD to 
support AMD64, and I am going to try their commercial product 
(professional edition, $130).
I know that SUN plan to have an AMD64 version for the JDK 1.5, which 
should be next year.

The reason for choosing the Linux OS is not Java, but the database. I 
plan to use PostgreSQL 7.4, and they have a builds for suse x86_64, so 
it looks promising.

Nikola Milutinovic wrote:

 Yonatan Goraly wrote:

 The exact execution time of that line of code is not very relevant,
 since the difference is between an interval I can't notice to an 
 interval I can notice very well - should be at least a factor of
x100.
 I just finished installing RedHat 9 (32 bit), the performance is much

 better, and the CPU is working much less. I guess it was something 
 related to the Mandrake version I had.
 It still feels slower than what I am used to on Windows, but I have 
 to make measurements in order to arrive at any conclusions.


 You're using Opteron - that is 64-bit CPU. Why not compile kernel from
 the source for your desired platform?

 Is there a JRE specifically for Opteron?

 Nix.


 -
 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]



Re: Slow on Linux

2003-11-25 Thread Yonatan Goraly
Isn't this what connection pooling is all about?

Wade Chandler wrote:

Just wondering.  Did you know that every Postgres connection creates a
system process, and not a thread?  PostgreSQL uses Fork.  I don't use it
because of this.  DB Connection = Separate Process.  I use Firebird.
You can use Firebird 1.5 even.  That's just a consideration since you
are posting about performance.
Wade

-Original Message-
From: Yonatan Goraly [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 25, 2003 3:05 AM
To: Tomcat Users List
Subject: Re: Slow on Linux

I have read that Suse linux team has been working closely with AMD to 
support AMD64, and I am going to try their commercial product 
(professional edition, $130).
I know that SUN plan to have an AMD64 version for the JDK 1.5, which 
should be next year.

The reason for choosing the Linux OS is not Java, but the database. I 
plan to use PostgreSQL 7.4, and they have a builds for suse x86_64, so 
it looks promising.

Nikola Milutinovic wrote:

 

Yonatan Goraly wrote:

   

The exact execution time of that line of code is not very relevant,
since the difference is between an interval I can't notice to an 
interval I can notice very well - should be at least a factor of
 

x100.
 

I just finished installing RedHat 9 (32 bit), the performance is much
 

 

better, and the CPU is working much less. I guess it was something 
related to the Mandrake version I had.
It still feels slower than what I am used to on Windows, but I have 
to make measurements in order to arrive at any conclusions.
 

You're using Opteron - that is 64-bit CPU. Why not compile kernel from
the source for your desired platform?
Is there a JRE specifically for Opteron?

Nix.

-
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]


Re: Slow on Linux

2003-11-25 Thread Oscar Carrillo
Ok, I read the PostgreSQL docs. It looks like AMD64 version is only
workable under kernel 2.6. The good thing about the new kernel 2.6 is that
FWIK you can have as many process/threads as you want cause it handles
order of magnitudes more than kernel 2.4.

I would also watch blackdown.org release schedule for their 64-bit version
of the jdk/jre. IMHO, they know Linux a lot better than the Sun group
does and are less combative with Linux. IBM jdk/jre is one to watch too.

Oscar

On Tue, 25 Nov 2003, Oscar Carrillo wrote:

 I imagine that you could compile an AMD64 kernel, and compile Postgresql
 for AMD64. But you still might have a poor performer with a 32-bit jdk.  
 You could put Postgresql on a separate AMD64 server and Tomcat on a 32-bit
 X86 server, but that may or may not be what you want.
 
 Compiling a kernel for a server is really quite easy, because you don't
 need to worry about peripherials like FireWire, USB, etc.
 
 My HowTo describes how to compile PostgreSQL 7.3.4, and it's probably the 
 same for 7.4. But I am going to compile 7.4 soon and post the info on my 
 web page.
 
 Oscar
 http://daydream.stanford.edu/tomcat/install_web_services.html
 
  Yonatan Goraly wrote:
  
   I have read that Suse linux team has been working closely with AMD to 
   support AMD64, and I am going to try their commercial product 
   (professional edition, $130).
   I know that SUN plan to have an AMD64 version for the JDK 1.5, which 
   should be next year.
   
   The reason for choosing the Linux OS is not Java, but the database. I 
   plan to use PostgreSQL 7.4, and they have a builds for suse x86_64, so 
   it looks promising.
 
 
 -
 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: Slow on Linux

2003-11-25 Thread Oscar Carrillo
I assume Firebird is just doing connection pooling internally. To be fair 
though, it is supposed to have very good performance but without all the 
features of PostgreSQL.

Oscar

On Tue, 25 Nov 2003, Yonatan Goraly wrote:

 Isn't this what connection pooling is all about?
 
 Wade Chandler wrote:
 
 Just wondering.  Did you know that every Postgres connection creates a
 system process, and not a thread?  PostgreSQL uses Fork.  I don't use it
 because of this.  DB Connection = Separate Process.  I use Firebird.
 You can use Firebird 1.5 even.  That's just a consideration since you
 are posting about performance.
 
 Wade
 
 -Original Message-
 From: Yonatan Goraly [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, November 25, 2003 3:05 AM
 To: Tomcat Users List
 Subject: Re: Slow on Linux
 
 
 I have read that Suse linux team has been working closely with AMD to 
 support AMD64, and I am going to try their commercial product 
 (professional edition, $130).
 I know that SUN plan to have an AMD64 version for the JDK 1.5, which 
 should be next year.
 
 The reason for choosing the Linux OS is not Java, but the database. I 
 plan to use PostgreSQL 7.4, and they have a builds for suse x86_64, so 
 it looks promising.
 
 Nikola Milutinovic wrote:
 
   
 
 Yonatan Goraly wrote:
 
 
 
 The exact execution time of that line of code is not very relevant,
 since the difference is between an interval I can't notice to an 
 interval I can notice very well - should be at least a factor of
   
 
 x100.
   
 
 I just finished installing RedHat 9 (32 bit), the performance is much
   
 
 
   
 
 better, and the CPU is working much less. I guess it was something 
 related to the Mandrake version I had.
 It still feels slower than what I am used to on Windows, but I have 
 to make measurements in order to arrive at any conclusions.
   
 
 You're using Opteron - that is 64-bit CPU. Why not compile kernel from
 the source for your desired platform?
 
 Is there a JRE specifically for Opteron?
 
 Nix.
 
 
 -
 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]
 


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



Re: Slow on Linux

2003-11-25 Thread Nikola Milutinovic
Wade Chandler wrote:

Just wondering.  Did you know that every Postgres connection creates a
system process, and not a thread?  PostgreSQL uses Fork.  I don't use it
because of this.  DB Connection = Separate Process.  I use Firebird.
You can use Firebird 1.5 even.  That's just a consideration since you
are posting about performance.
AFAIK, a process and a thread look similar to the CPU. They are both tasks, it 
is just that threads share the same memory table descriptor and some other 
things. Sure, creating a new process implies separate copies of stack and data 
segments, but with CoW (Copy-on-Write) mechanism, it can save a lot of copying.

I wouldn't bet on a very high performance gain, unless the problem is more 
suited for the multi-threaded model (concurent tasks need a tight coupling). Is 
DB backend this kind of problem? It could be...

Nix.

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


Re: Slow on Linux

2003-11-24 Thread Oscar Carrillo
I'm no expert on Servlets so I'm not sure what's involved with all those 
calls, but it doesn't seem like it could be anything that takes 500ms.

Have you tried running top while this is going on? You can set it to 
update quickly so that you can see what's taking up the processor, if 
anything. In particular, if it's a java thread (process) or Apache 
process.

Are you compiling Apache and connector from source? Have you compiled a 
new kernel? Have you done all the updates to Mandrake? In particular nptl, 
gcc, glibc, and kernel.

I don't know if many people are using Opteron here. You are picking a
pretty new hardware architecture for your first Linux experience.  I'm
interested to see how many others have experience with this hardware.

Oscar

On Sun, 23 Nov 2003, Yonatan Goraly wrote:

 I am in the process of evaluating Linux as a server platform for my 
 application (this is my first Linux experience).
 The environment is:
 - Single AMD Opteron 1.8 GHz
 - Tyan motherboard with 1 GB memory
 - Mandrake Linux 9.2 AMD64 RC1
 - SUN JDK 1.4.2_02
 - Tomcat 4.29, without Apache web server
 
 The first impression is that the application is extremely slow. I found 
 out that calling 
 getServletConfig().getServletContext().getRequestDispatcher(url).forward(request, 
 response); can take about 500 ms (I put one log command before the call, 
 and the other at the beginning of the forwarded JSP page, so I know that 
 the only call my application does between the log commands is the 
 forward call)
 
 Please advise
 
 
 -
 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: Slow on Linux

2003-11-24 Thread Shapira, Yoav

Howdy,
First of all, how fast was the forward call on another platform?

OTOH, 500ms for the line of code you gave below is not that atrocious.
Both the getRequestDispatcher and forward calls are not lightweight.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Yonatan Goraly [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 2:17 AM
To: Tomcat Users List
Subject: Slow on Linux

I am in the process of evaluating Linux as a server platform for my
application (this is my first Linux experience).
The environment is:
- Single AMD Opteron 1.8 GHz
- Tyan motherboard with 1 GB memory
- Mandrake Linux 9.2 AMD64 RC1
- SUN JDK 1.4.2_02
- Tomcat 4.29, without Apache web server

The first impression is that the application is extremely slow. I found
out that calling
getServletConfig().getServletContext().getRequestDispatcher(url).forwar
d(re
quest,
response); can take about 500 ms (I put one log command before the
call,
and the other at the beginning of the forwarded JSP page, so I know
that
the only call my application does between the log commands is the
forward call)

Please advise


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




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]



Re: Slow on Linux

2003-11-24 Thread Yonatan Goraly
The same application is deployed on multiple Windows boxes, with 
excellent performance (unless there is a heavy DB query involved, with a 
fast network and client machine the response seems to be instant with 
servers that should be dwarfed by this one).
As we start to provide hosted services, the cost of the OS and DB become 
significant, that is the reason for evaluating Linux. I have selected 
AMD Opteron since I know that I can fall back to 32 bit OS if the 64 bit 
is not stable, and that it performs very well in that scenario. I 
started with Mandrake since it was possible to download ISO images, but 
I have also ordered an AMD 64 version of SUSE LINUX, since they have 
better support for that platform.
Just to be able to compare, I will install Windows 2000 on the server as 
well.
IMHO, if the performance I see is within the expected range, Windows is 
a much better OS for that purpose.
I have read about performance issues related to Java java using OS 
threads in Linux, that should be resolved in the 2.6 version of the 
kernel - might that be related? Red hat have published that they have a 
solution implemented in their current products, the only problem is that 
the price is high

Shapira, Yoav wrote:

Howdy,
First of all, how fast was the forward call on another platform?
OTOH, 500ms for the line of code you gave below is not that atrocious.
Both the getRequestDispatcher and forward calls are not lightweight.
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Yonatan Goraly [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 2:17 AM
To: Tomcat Users List
Subject: Slow on Linux
I am in the process of evaluating Linux as a server platform for my
application (this is my first Linux experience).
The environment is:
- Single AMD Opteron 1.8 GHz
- Tyan motherboard with 1 GB memory
- Mandrake Linux 9.2 AMD64 RC1
- SUN JDK 1.4.2_02
- Tomcat 4.29, without Apache web server
The first impression is that the application is extremely slow. I found
out that calling
getServletConfig().getServletContext().getRequestDispatcher(url).forwar
   

d(re
 

quest,
response); can take about 500 ms (I put one log command before the
   

call,
 

and the other at the beginning of the forwarded JSP page, so I know
   

that
 

the only call my application does between the log commands is the
forward call)
Please advise

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





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]
 



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


RE: Slow on Linux

2003-11-24 Thread Shapira, Yoav

Howdy,
I understand and agree with your considerations.  The only thing I asked
was very simple: how fast does the same call perform on a different
platform.  Not the overall application, not DB queries, just the exact
same line of code (which has four function calls).

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Yonatan Goraly [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 2:55 PM
To: Tomcat Users List
Subject: Re: Slow on Linux

The same application is deployed on multiple Windows boxes, with
excellent performance (unless there is a heavy DB query involved, with
a
fast network and client machine the response seems to be instant with
servers that should be dwarfed by this one).
As we start to provide hosted services, the cost of the OS and DB
become
significant, that is the reason for evaluating Linux. I have selected
AMD Opteron since I know that I can fall back to 32 bit OS if the 64
bit
is not stable, and that it performs very well in that scenario. I
started with Mandrake since it was possible to download ISO images, but
I have also ordered an AMD 64 version of SUSE LINUX, since they have
better support for that platform.
Just to be able to compare, I will install Windows 2000 on the server
as
well.
IMHO, if the performance I see is within the expected range, Windows is
a much better OS for that purpose.
I have read about performance issues related to Java java using OS
threads in Linux, that should be resolved in the 2.6 version of the
kernel - might that be related? Red hat have published that they have a
solution implemented in their current products, the only problem is
that
the price is high

Shapira, Yoav wrote:

Howdy,
First of all, how fast was the forward call on another platform?

OTOH, 500ms for the line of code you gave below is not that atrocious.
Both the getRequestDispatcher and forward calls are not lightweight.

Yoav Shapira
Millennium ChemInformatics




-Original Message-
From: Yonatan Goraly [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 2:17 AM
To: Tomcat Users List
Subject: Slow on Linux

I am in the process of evaluating Linux as a server platform for my
application (this is my first Linux experience).
The environment is:
- Single AMD Opteron 1.8 GHz
- Tyan motherboard with 1 GB memory
- Mandrake Linux 9.2 AMD64 RC1
- SUN JDK 1.4.2_02
- Tomcat 4.29, without Apache web server

The first impression is that the application is extremely slow. I
found
out that calling
getServletConfig().getServletContext().getRequestDispatcher(url).forw
ar


d(re


quest,
response); can take about 500 ms (I put one log command before the


call,


and the other at the beginning of the forwarded JSP page, so I know


that


the only call my application does between the log commands is the
forward call)

Please advise


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






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]






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




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]



Re: Slow on Linux

2003-11-24 Thread Yonatan Goraly
The exact execution time of that line of code is not very relevant, 
since the difference is between an interval I can't notice to an 
interval I can notice very well - should be at least a factor of x100.
I just finished installing RedHat 9 (32 bit), the performance is much 
better, and the CPU is working much less. I guess it was something 
related to the Mandrake version I had.
It still feels slower than what I am used to on Windows, but I have to 
make measurements in order to arrive at any conclusions.

Shapira, Yoav wrote:

Howdy,
I understand and agree with your considerations.  The only thing I asked
was very simple: how fast does the same call perform on a different
platform.  Not the overall application, not DB queries, just the exact
same line of code (which has four function calls).
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Yonatan Goraly [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 2:55 PM
To: Tomcat Users List
Subject: Re: Slow on Linux
The same application is deployed on multiple Windows boxes, with
excellent performance (unless there is a heavy DB query involved, with
   

a
 

fast network and client machine the response seems to be instant with
servers that should be dwarfed by this one).
As we start to provide hosted services, the cost of the OS and DB
   

become
 

significant, that is the reason for evaluating Linux. I have selected
AMD Opteron since I know that I can fall back to 32 bit OS if the 64
   

bit
 

is not stable, and that it performs very well in that scenario. I
started with Mandrake since it was possible to download ISO images, but
I have also ordered an AMD 64 version of SUSE LINUX, since they have
better support for that platform.
Just to be able to compare, I will install Windows 2000 on the server
   

as
 

well.
IMHO, if the performance I see is within the expected range, Windows is
a much better OS for that purpose.
I have read about performance issues related to Java java using OS
threads in Linux, that should be resolved in the 2.6 version of the
kernel - might that be related? Red hat have published that they have a
solution implemented in their current products, the only problem is
   

that
 

the price is high

Shapira, Yoav wrote:

   

Howdy,
First of all, how fast was the forward call on another platform?
OTOH, 500ms for the line of code you gave below is not that atrocious.
Both the getRequestDispatcher and forward calls are not lightweight.
Yoav Shapira
Millennium ChemInformatics


 

-Original Message-
From: Yonatan Goraly [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 2:17 AM
To: Tomcat Users List
Subject: Slow on Linux
I am in the process of evaluating Linux as a server platform for my
application (this is my first Linux experience).
The environment is:
- Single AMD Opteron 1.8 GHz
- Tyan motherboard with 1 GB memory
- Mandrake Linux 9.2 AMD64 RC1
- SUN JDK 1.4.2_02
- Tomcat 4.29, without Apache web server
The first impression is that the application is extremely slow. I
   

found
 

out that calling
getServletConfig().getServletContext().getRequestDispatcher(url).forw
   

ar
 

   

d(re

 

quest,
response); can take about 500 ms (I put one log command before the
   

call,

 

and the other at the beginning of the forwarded JSP page, so I know

   

that

 

the only call my application does between the log commands is the
forward call)
Please advise

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



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]


 

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





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

Re: Slow on Linux

2003-11-24 Thread Oscar Carrillo
Hi,

You could buy an Enterprise edition of a distribution that supports AMD
64-bit. It does not seem to be quite ready in the main distributions. If
you aren't willing to compile a new kernel, then I would not recommend
going to native 64-bit AMD. Even if you are willing to, you might
encounter some problems. And I don't know how much benefit you'd have 
without compiling any server software you are using. I'm also not sure 
what performance is like with Sun's or other's JDK. The JDK is probably 
what I'd be most concerned with performing under AMD64. If it's not good 
now, it will probably be good soon, since Sun is releasing servers with 
Opterons.

But I don't even see that there is a JDK available for AMD64, so I can't 
imagine you'll gain anything by all the work being done mostly in Java 
under 32-bit.

See this account:
http://www.osnews.com/story.php?news_id=4618

BTW, I'm putting up a new server soon and I will be using dual AthlonMP 
processors.

Oscar

On Mon, 24 Nov 2003, Yonatan Goraly wrote:

 The exact execution time of that line of code is not very relevant, 
 since the difference is between an interval I can't notice to an 
 interval I can notice very well - should be at least a factor of x100.
 I just finished installing RedHat 9 (32 bit), the performance is much 
 better, and the CPU is working much less. I guess it was something 
 related to the Mandrake version I had.
 It still feels slower than what I am used to on Windows, but I have to 
 make measurements in order to arrive at any conclusions.
 
 Shapira, Yoav wrote:
 
 Howdy,
 I understand and agree with your considerations.  The only thing I asked
 was very simple: how fast does the same call perform on a different
 platform.  Not the overall application, not DB queries, just the exact
 same line of code (which has four function calls).
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
   
 
 -Original Message-
 From: Yonatan Goraly [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 24, 2003 2:55 PM
 To: Tomcat Users List
 Subject: Re: Slow on Linux
 
 The same application is deployed on multiple Windows boxes, with
 excellent performance (unless there is a heavy DB query involved, with
 
 
 a
   
 
 fast network and client machine the response seems to be instant with
 servers that should be dwarfed by this one).
 As we start to provide hosted services, the cost of the OS and DB
 
 
 become
   
 
 significant, that is the reason for evaluating Linux. I have selected
 AMD Opteron since I know that I can fall back to 32 bit OS if the 64
 
 
 bit
   
 
 is not stable, and that it performs very well in that scenario. I
 started with Mandrake since it was possible to download ISO images, but
 I have also ordered an AMD 64 version of SUSE LINUX, since they have
 better support for that platform.
 Just to be able to compare, I will install Windows 2000 on the server
 
 
 as
   
 
 well.
 IMHO, if the performance I see is within the expected range, Windows is
 a much better OS for that purpose.
 I have read about performance issues related to Java java using OS
 threads in Linux, that should be resolved in the 2.6 version of the
 kernel - might that be related? Red hat have published that they have a
 solution implemented in their current products, the only problem is
 
 
 that
   
 
 the price is high
 
 Shapira, Yoav wrote:
 
 
 
 Howdy,
 First of all, how fast was the forward call on another platform?
 
 OTOH, 500ms for the line of code you gave below is not that atrocious.
 Both the getRequestDispatcher and forward calls are not lightweight.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 
 
   
 
 -Original Message-
 From: Yonatan Goraly [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 24, 2003 2:17 AM
 To: Tomcat Users List
 Subject: Slow on Linux
 
 I am in the process of evaluating Linux as a server platform for my
 application (this is my first Linux experience).
 The environment is:
 - Single AMD Opteron 1.8 GHz
 - Tyan motherboard with 1 GB memory
 - Mandrake Linux 9.2 AMD64 RC1
 - SUN JDK 1.4.2_02
 - Tomcat 4.29, without Apache web server
 
 The first impression is that the application is extremely slow. I
 
 
 found
   
 
 out that calling
 getServletConfig().getServletContext().getRequestDispatcher(url).forw
 
 
 ar
   
 
 
 
 d(re
 
 
   
 
 quest,
 response); can take about 500 ms (I put one log command before the
 
 
 
 
 call,
 
 
   
 
 and the other at the beginning of the forwarded JSP page, so I know
 
 
 
 
 that
 
 
   
 
 the only call my application does between the log commands is the
 forward call)
 
 Please advise
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 This e-mail, including any attachments, is a confidential business
   
 
 communication, and may contain

Re: Slow on Linux

2003-11-24 Thread Nikola Milutinovic
Yonatan Goraly wrote:
The exact execution time of that line of code is not very relevant, 
since the difference is between an interval I can't notice to an 
interval I can notice very well - should be at least a factor of x100.
I just finished installing RedHat 9 (32 bit), the performance is much 
better, and the CPU is working much less. I guess it was something 
related to the Mandrake version I had.
It still feels slower than what I am used to on Windows, but I have to 
make measurements in order to arrive at any conclusions.
You're using Opteron - that is 64-bit CPU. Why not compile kernel from the 
source for your desired platform?

Is there a JRE specifically for Opteron?

Nix.

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