Hi,
today i have try to get some Infos from tomcat 4.1.x similar like
--- 5.5.x
=>container/webapps/manager/WEB-INF/classes/org/apache/catalina/manager/StatusTransformer.java
.
.
.
mBeanServer.getAttribute(grpName, "requestCount"));
.
.
---
My main target is as follow:
currentUsersSessions
currentConnections <= from connector if possible ;-)
requestDuration
Btw.: Is it true that mod_proxy_ajp and mod_jk make a tcp-session per
request?!
I have seen a in 4.1.32
connectors/coyote/src/java/org/apache/coyote/RequestInfo.java which have
the infos but when i try to use this i get this error:
Javac: ${JAVA_HOME}/bin/javac -version
javac 1.5.0_05
OS: uname -a
Linux home1 2.6.17-1-686 #1 SMP Sat Jul 29 15:32:47 UTC 2006 i686
GNU/Linux
Distri: Debbian unstable
---
${JAVA_HOME}/bin/javac -deprecation -classpath
../apache-tomcat-4.1.32-LE-jdk14/server/lib/tomcat-jk.jar:../apache-tomcat-4.1.32-LE-jdk14/common/lib/servlet.jar:../apache-tomcat-4.1.32-LE-jdk14/server/lib/catalina.jar:../apache-tomcat-4.1.32-LE-jdk14/server/lib/tomcat4-coyote.jar:../apache-tomcat-4.1.32-LE-jdk14/server/lib/tomcat-coyote.jar
LogData.java && rm LogData.jar && jar cf LogData.jar LogData.class && cp
LogData.jar ../apache-tomcat-4.1.32-LE-jdk14/server/lib/LogData.jar
LogData.java:367: cannot find symbol
symbol : constructor RequestInfo(org.apache.catalina.Request)
location: class org.apache.coyote.RequestInfo
RequestInfo rp = new RequestInfo(request).getRequestProcessor();
^
LogData.java:415: cannot find symbol
symbol : method Long(long)
location: class LogData
log(Long(rp.getRequestProcessingTime()).toString(),date);
^
2 errors
---
I have try to replace the org.apache.catalina.Request to
org.apache.coyote.Request but i wasn't successfully :-(
If you interested you can get the .java file from:
http://none.at/LogData.java
Be warned it is in development status ;-)
I use this Connector-setting in server.xml:
---
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="4091"
minProcessors="5" maxProcessors="75"
enableLookups="false"
acceptCount="10" debug="9"/>
---
and this valve setting in <Engine ...:
---
<Valve className="LogData" prefix="LogData1-" suffix=".log"
rotatable="true" />
---
A statment like "unpossible with this connector" is also valid ;-)
Btw2.: there are some more methodes in RequestInfo-class which is also
nice that i can use it ;-)
(getRequestProcessingTime(),getProcessingTime(),...)
Please also tell me if i'am on the wrong way ;-)
Thanks for help && regards
Alex
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]