Re: Running Tomcat 5.0.28 in server mode

2005-09-02 Thread Yassine ELassad
Dear Karim,

Please provide relevant peaces of your server.xml so we can get a chance to 
help you or have a look here
http://jakarta.apache.org/tomcat/articles/performance.pdf
you may already finde whats causing your problem there

Greetings

YEL...







 directBOX Reply ---
From: Zaki, Karim R UTCHQ ([EMAIL PROTECTED])
To: TomcatUserGroup (tomcat-user@jakarta.apache.org)
Date: 02.09.2005 16:46:44

Dear all,

I'm running Tomcat 5.0.28 in conjunction with Vignette. JSPs use the
Vignette APIs (provided as JARs). Everything works, but performance is
really slow. The server that's hosting this is a quad processor (@2GHz each)
Windows 2000 Server with 2GB of memory and a gigabit NIC...so I don't see
hardware as being an issue.

One thing I'm trying to do is run Tomcat in server mode. My understanding is
that this should enhance performance. However, adding -server to Tomcat's
Java Options box causes Tomcat to not start. What am I doing wrong?

Also, if anyone can provide performance tuning recommendations, please do.

Thanks all..

Karim


I didn't do it! ~ Bart Simpson

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


__
Verpassen Sie keine eBay-Auktion und bieten Sie bequem
und schnell über das Telefon mit http://www.telefonbieten.de

Ihre eMails auf dem Handy lesen - ohne Zeitverlust - 24h/Tag
eMail, FAX, SMS, VoiceMail mit http://www.directbox.com



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



RE: Running Tomcat 5.0.28 in server mode

2005-09-02 Thread Zaki, Karim R UTCHQ
Thanks Yassine,

I'll look into the PDF you provided. As for server.xml, here it is.


?xml version='1.0' encoding='utf-8'?
Server debug=2
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/
  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/
Resource auth=Container description=User database that can be
updated and saved name=UserDatabase
type=org.apache.catalina.UserDatabase/
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources
  Service debug=2 name=Catalina
Connector acceptCount=100 connectionTimeout=2 debug=2
disableUploadTimeout=true port=8080 redirectPort=8443
threadPriority=10 maxSpareThreads=75 maxThreads=150
minSpareThreads=25
/Connector
Connector port=8009 protocol=AJP/1.3
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
redirectPort=8443
/Connector
Engine debug=2 defaultHost=localhost name=Catalina
  Host appBase=webapps debug=2 name=localhost
Logger className=org.apache.catalina.logger.FileLogger debug=2
prefix=localhost_log. suffix=.txt timestamp=true verbosity=2/
  /Host
  Logger className=org.apache.catalina.logger.FileLogger debug=2
prefix=catalina_log. suffix=.txt timestamp=true verbosity=2/
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
debug=2/
/Engine
  /Service
/Server


As you can see, very little customization. Any idea why I can't set
-server?

Thanks,
Karim
-Original Message-
From: Yassine ELassad [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 02, 2005 11:03 AM
To: tomcat-user@jakarta.apache.org
Subject: Re: Running Tomcat 5.0.28 in server mode

Dear Karim,

Please provide relevant peaces of your server.xml so we can get a chance to
help you or have a look here 
http://jakarta.apache.org/tomcat/articles/performance.pdf
you may already finde whats causing your problem there

Greetings

YEL... 

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



RE: Running Tomcat 5.0.28 in server mode

2005-09-02 Thread George Sexton
What does really slow mean? That's a subjective assessment, not a
quantititative value. How many requests per second?

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Zaki, Karim R UTCHQ [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 02, 2005 8:46 AM
 To: Tomcat User Group
 Subject: Running Tomcat 5.0.28 in server mode
 
 Dear all,
 
 I'm running Tomcat 5.0.28 in conjunction with Vignette. JSPs use the
 Vignette APIs (provided as JARs). Everything works, but performance is
 really slow. The server that's hosting this is a quad 
 processor (@2GHz each)
 Windows 2000 Server with 2GB of memory and a gigabit NIC...so 
 I don't see
 hardware as being an issue.
 
 One thing I'm trying to do is run Tomcat in server mode. My 
 understanding is
 that this should enhance performance. However, adding 
 -server to Tomcat's
 Java Options box causes Tomcat to not start. What am I doing wrong?
 
 Also, if anyone can provide performance tuning 
 recommendations, please do.
 
 Thanks all..
 
 Karim
 
 
 I didn't do it! ~ Bart Simpson
 
 -
 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: Running Tomcat 5.0.28 in server mode

2005-09-02 Thread Zaki, Karim R UTCHQ
During a routine email scan at UTC, a file attached to this
message was deleted per UTC Security Policy.  UTC does not allow
emailing several file types due to their potential to transmit viruses.

An attachment named test-template.jsp was removed from this message.
The body text of the message that included the deleted attachment can be found
in the .txt file below.  It is safe to open this file. If you believe this
message is not business related simply delete it. If the message is business
related and you require the file that was deleted, please contact the 
sender/nand arrange an alternate means of receiving it.  The recommended method 
is to/nhave the sender zip the file before sending it.

Well, I don't know how to measure the number of requests per second. If you
can provide help with that, that would be great. What I'm doing is testing
with a template provided by Vignette (I don't know if I can send attachments
on this list). It takes 2 seconds to load! This really doesn't do any real
work...so when the code starts to do something useful, we go into over a
minute of load time per page.

-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 02, 2005 12:15 PM
To: 'Tomcat Users List'
Subject: RE: Running Tomcat 5.0.28 in server mode

What does really slow mean? That's a subjective assessment, not a
quantititative value. How many requests per second?

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Zaki, Karim R UTCHQ [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 02, 2005 8:46 AM
 To: Tomcat User Group
 Subject: Running Tomcat 5.0.28 in server mode
 
 Dear all,
 
 I'm running Tomcat 5.0.28 in conjunction with Vignette. JSPs use the
 Vignette APIs (provided as JARs). Everything works, but performance is
 really slow. The server that's hosting this is a quad 
 processor (@2GHz each)
 Windows 2000 Server with 2GB of memory and a gigabit NIC...so 
 I don't see
 hardware as being an issue.
 
 One thing I'm trying to do is run Tomcat in server mode. My 
 understanding is
 that this should enhance performance. However, adding 
 -server to Tomcat's
 Java Options box causes Tomcat to not start. What am I doing wrong?
 
 Also, if anyone can provide performance tuning 
 recommendations, please do.
 
 Thanks all..
 
 Karim
 
 
 I didn't do it! ~ Bart Simpson
 
 -
 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: Running Tomcat 5.0.28 in server mode

2005-09-02 Thread Zaki, Karim R UTCHQ
Well, I don't know how to measure the number of requests per second. If you
can provide help with that, that would be great. What I'm doing is testing
with a template provided by Vignette:



%@ page import=com.vignette.cds.client.beans.*%
%@ page import=com.vignette.cms.client.beans.*%

jsp:useBean id=cms scope=page 
class=com.vignette.cms.client.beans.CMS
/

jsp:useBean id=lc scope=page 
class=com.vignette.cds.client.beans.LocalConfig 
/

%
// you may have to modify the following string values
String cmsUser = admin;
String cmsPassword = admin;

long cfgstart = System.currentTimeMillis();
String CMSHost = lc.getConfigValue (/cms/bob/PM_HOST); // get cms
host
int CMSPort = Integer.parseInt (lc.getConfigValue
(/cms/bob/PM_PORT)); // get cms port
long cfgstop = System.currentTimeMillis();

%
got config data in %=cfgstop - cfgstart% millisecondsbr
CMS Host = %=CMSHost%br
CMS Port = %=CMSPort%br


%
long startconnect = System.currentTimeMillis();
CMSSecurity sec = new CMSSecurity();
sec.configure (application);
cms.connect (sec, CMSHost, CMSPort, cmsUser, cmsPassword);
if (cms.isConnected()) {
%connected to cms br%
cms.setCredsCookie();
}
else {
%connect to cms failed br%
}
long stopconnect = System.currentTimeMillis();
%
connected to cms in %=stopconnect-startconnect% millisecondsbr
br
Templates in System Project:br
%
long startProjectList = System.currentTimeMillis();
Project proj = cms.findProjectByPath (Base ProjectSystem);
Template[] templates = proj.getTemplates();
for (int i=1;itemplates.length;i++) {
out.println (templates[i].getName() + br);
}
long stopProjectList = System.currentTimeMillis();
cms.disconnect();
long disconnect = System.currentTimeMillis();
%
br
listed project contents in %=stopProjectList-startProjectList%
millisecondsbr
disconnected from cms in %=disconnect-stopProjectList% millisecondsbr
%
java.text.SimpleDateFormat milliDateFormat =
new java.text.SimpleDateFormat (MM/dd/ HH:mm:ss:SSS);
java.util.Date rightNow = new java.util.Date();
String now = (milliDateFormat.format (rightNow));
%
generated: %=now%br



It takes 2 seconds to load! This really doesn't do any real work...so when
the code starts to do something useful, we go into over a minute of load
time per page. I did a ping test to the database involved and the average
ping time is 300 microseconds, so I don't think it's network related.

-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 02, 2005 12:15 PM
To: 'Tomcat Users List'
Subject: RE: Running Tomcat 5.0.28 in server mode

What does really slow mean? That's a subjective assessment, not a
quantititative value. How many requests per second?

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Zaki, Karim R UTCHQ [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 02, 2005 8:46 AM
 To: Tomcat User Group
 Subject: Running Tomcat 5.0.28 in server mode
 
 Dear all,
 
 I'm running Tomcat 5.0.28 in conjunction with Vignette. JSPs use the
 Vignette APIs (provided as JARs). Everything works, but performance is
 really slow. The server that's hosting this is a quad 
 processor (@2GHz each)
 Windows 2000 Server with 2GB of memory and a gigabit NIC...so 
 I don't see
 hardware as being an issue.
 
 One thing I'm trying to do is run Tomcat in server mode. My 
 understanding is
 that this should enhance performance. However, adding 
 -server to Tomcat's
 Java Options box causes Tomcat to not start. What am I doing wrong?
 
 Also, if anyone can provide performance tuning 
 recommendations, please do.
 
 Thanks all..
 
 Karim
 
 
 I didn't do it! ~ Bart Simpson
 
 -
 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: Running Tomcat 5.0.28 in server mode

2005-09-02 Thread George Sexton
A good tool for load testing is JMeter

http://jakarta.apache.org/jmeter/index.html


Here's a link to some testing we did with it for our product:

http://www.mhsoftware.com/caldemo/manual/en/pageFinder.html?page=622.htm

Basically, we go something like 1400 requests per minute on a uni-processor
P4.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Zaki, Karim R UTCHQ [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 02, 2005 11:02 AM
 To: Tomcat Users List
 Subject: RE: Running Tomcat 5.0.28 in server mode
 
 Well, I don't know how to measure the number of requests per 
 second. If you
 can provide help with that, that would be great. What I'm 
 doing is testing
 with a template provided by Vignette (I don't know if I can 
 send attachments
 on this list). It takes 2 seconds to load! This really 
 doesn't do any real
 work...so when the code starts to do something useful, we go 
 into over a
 minute of load time per page.
 
 -Original Message-
 From: George Sexton [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 02, 2005 12:15 PM
 To: 'Tomcat Users List'
 Subject: RE: Running Tomcat 5.0.28 in server mode
 
 What does really slow mean? That's a subjective assessment, not a
 quantititative value. How many requests per second?
 
 George Sexton
 MH Software, Inc.
 http://www.mhsoftware.com/
 Voice: 303 438 9585
   
 
  -Original Message-
  From: Zaki, Karim R UTCHQ [mailto:[EMAIL PROTECTED] 
  Sent: Friday, September 02, 2005 8:46 AM
  To: Tomcat User Group
  Subject: Running Tomcat 5.0.28 in server mode
  
  Dear all,
  
  I'm running Tomcat 5.0.28 in conjunction with Vignette. JSPs use the
  Vignette APIs (provided as JARs). Everything works, but 
 performance is
  really slow. The server that's hosting this is a quad 
  processor (@2GHz each)
  Windows 2000 Server with 2GB of memory and a gigabit NIC...so 
  I don't see
  hardware as being an issue.
  
  One thing I'm trying to do is run Tomcat in server mode. My 
  understanding is
  that this should enhance performance. However, adding 
  -server to Tomcat's
  Java Options box causes Tomcat to not start. What am I 
 doing wrong?
  
  Also, if anyone can provide performance tuning 
  recommendations, please do.
  
  Thanks all..
  
  Karim
  
  
  I didn't do it! ~ Bart Simpson
  
  
 -
  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]