----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hi all,

I'm using Apache1.39, JServ1.1beta3 on WindowsNT 4.0SP4
with jdk1.3b of sun.

My servlet is running quite well, using JDBC, Sybase Application server, etc ...
But now, I would like to optimize it and I have only OptimizeIt as application.

I read the FAQ, but doesn't find the answer ....

Here are the instructions from OptimizeIt3.02 documentation to run a servlet engine :
This document provides you with a simple solution to profile your servlets running 
with virtually any servlet engines.
==================================================================================================
Step One: Setup the environment

     For a servlet engine running under Windows
          add %OPTIT_HOME%\lib\optit.jar to the CLASSPATH of the servlet engine 
(Please read the documentation of your servlet engine to learn how to do that).
          add %OPTIT_HOME%\lib to the PATH variable used by the servlet engine.
     For a servlet engine running under Solaris
          add $OPTIT_HOME/lib/optit.jar to the CLASSPATH of the servlet engine (Please 
read the documentation of your servlet engine to learn how to do that).
          add $OPTIT_HOME/lib to the LD_LIBRARY_PATH variable used by the servlet 
engine.


Step Two: Find a way to start the audit system

Change the way the servlet engine is launched to include OptimizeIt's audit system and 
change some of the VM options. You need to:

     Disable class garbage collection (-noclassgc or -Xnoclassgc with JDK 1.2)
     Disable the JIT (-Djava.compiler=NONE)
     If running with JDK 1.2, start OptimizeIt's profiling interface (-Xrunoii)
     Replace the main class with intuitive.audit.Audit and append the servlet engine 
main class after it

Example with JDK 1.1

%JAVA_HOME%\bin\java -Djava.compiler=NONE -noclassgc -classpath 
"%JAVA_HOME%\lib\classes.zip;%OPTIT_HOME%\lib\optit.jar;%JSDK_HOME%\lib\jsdk.jar"
intuitive.audit.Audit -pause -dllpath "%OPTIT_HOME%\lib" sun.servlet.http.HttpServer 
-d ..\examples

Example with JDK 1.2

%JAVA_HOME%\bin\java -Xrunoii -Djava.compiler=NONE -Xnoclassgc -classpath 
"%OPTIT_HOME%\lib\optit.jar;%JSDK_HOME%\lib\jsdk.jar" intuitive.audit.Audit
-pause -dllpath "%OPTIT_HOME%\lib" sun.servlet.http.HttpServer -d ..\examples


Step Three: Start the servlet engine

Make sure that your servlet engine is running, you should see this message in your 
servlet engine log:

OptimizeIt 2.0 audit system. (c) 1997,1998 Intuitive Systems Inc.
Port is 1470

Step Four: Start OptimizeIt and attach

Start Optimizeit. We are now going to attach to Optimizeit. In the 'Program' menu of 
Optimizeit, select 'Attach'.

This brings up the Attach window. You can enter a remote host name running the virtual 
machine being profiled and the port number used for the communication between the 
audit system and Optimizeit. Once done,
click Attach and wait for the connection.

We are now profiling the servlet engine.

Step Five: Profile your servlets

Launch your web browser and go to your servlet page and collect performance related 
data.
==================================================================================================

So the  problem is that this requires to change the main class launched by the jvm and 
which jserv doesn't expect ...
Hence I try to use the bottom lines in "jvserv.properties" file but with no success
(Only error message in "mod_jserv.log":
[30/12/1999 15:33:50:562] (EMERGENCY) ajp12: can not connect to host 127.0.0.1:8007
[30/12/1999 15:33:50:562] (EMERGENCY) ajp12: connection fail
[30/12/1999 15:33:50:562] (ERROR) an error returned handling request via protocol 
"ajpv12")

=============================================
wrapper.bin=c:\java\jdk1.3\jre\bin\java.exe
wrapper.bin.parameters=-Xnoclassgc -Xrunoii -Xms6m -Xmx64m -Djava.compiler=NONE 
-classic

# Apache JServ entry point class (should not be changed)
# Syntax: wrapper.class=[classname] (String)
# Default: "org.apache.jserv.JServ"
wrapper.class=intuitive.audit.Audit

# Arguments passed to main class after the properties filename (not used)
# Syntax: wrapper.class.parameters=[parameters] (String)
# Default: NONE
# Note: currently not used
wrapper.class.parameters=org.apache.jserv.JServ

wrapper.path="C:\Program Files\Intuitive Systems\OptimizeIt302\lib"
wrapper.classpath="C:\Program Files\Intuitive Systems\OptimizeIt302\lib\optit.jar"
=============================================
Questions:
- Does the quotes used in parameters work ? (I already tried without of course ..)
- Does the wrapper.class.parameters work ? Because the "(not used)" comment makes me 
bother.
- Will Tomcat bypass this problem ?

Does someone has any idea or solution ?

Thank you of having taking the time to read this big and complex question.
  _____________________________________________________

  Pierre Jourdan,  Software Engineer
  mailto:[EMAIL PROTECTED]
  Trema Laboratories SARL (http://www.trema.com)
  1300, Route des Crêtes
  Parc de Sophia-Antipolis  --  06560 Valbonne   FRANCE
  _____________________________________________________




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to