Tomcat group
Can someone tell me which email address I need to use to unsubscribe from this group ? Thanks Ram
RE: QoS in Tomcat?
Can some one tell me how to unsubscribe from this group ? Thanks Ram -Original Message- From: Rui Zhang [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 3:59 PM To: Tomcat Users List Subject: Re: QoS in Tomcat? Many thanks, Tim. That at least sounds worth a try... I've got a valve sampling performance data up and running already. But, Is it sensible we may alter Tomcat to make it QoS-enabled? If so, where shall we look at to start? Best regards, Rui On Fri, 28 May 2004, Tim Funk wrote: Nope. The spec doesn't spell this out. If your feeling daring, you could write a filter that tries to set and reset the Thread.priorities on the fly. Then if your JVM pays attention to the thread priorities - you might get the tweaking you need. (You can also do this in a Valve if you want to be lower in the stack but I really doubt any of this is useful but its a great time waster on a cold rainy day) For example - without all the need try catches ... doFilter(...) { int newPriority = magicMethodToDeterminePriority(request); int oldPriority = currentThread().getPriority(); currentThread().setPriority(newPriority); chain.doFilter(); currentThread().setPriority(oldPriority ); } -Tim Rui Zhang wrote: Hi all, Is there any infrastruture availabe (or at least any possiblities) in Tomcat to tune the QoS requests are receiving? For instance, is it possible to give differentiated treatments to requests of various importance, by granting them different amount of resources, queueing them differently, etc? I realise my questions might be a bit vague, as I don't have too much insight about Tomcat. All I'm looking for are some knobs in Tomcat that we can turn to affect its performance, either observed by different groups of requests or by all the requests on a whole. If there are no such knobs at all, would it be possible to amend the current Tomcat with it? Any advices (or at least what readings I should do to acquire that knowledge) would be greatly appreciated. - 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]
JDBC
Hi All, I am using Tomcat 4.1 in Jbuilder X. Can someone please let me know how to define JDBC configuration in server.xml ? I want to define a datasource, user, password, database server name and port in the configuration. Thanks in advance. Ram
RE: Clustering problem with web.xml
Hi All, I am using Tomcat 3.3 and would like to know what properties I need to set up in server.xml so that I can look up a datasource in the context. For example: initCtx.lookup(jdbc/OracleDatasource); Thanks Ram -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 10:52 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Clustering problem with web.xml check your web.xml for a mistake The markup in the document following the root element must be well-formed. or open it in an xml editor, it will tell you right away Filip - Original Message - From: Gabriele Paciucci [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 13, 2004 6:09 AM Subject: Clustering problem with web.xml Hi Tomcat user, I'm trying to setup a in memory session replication with tomcat. I have: -tomcat 5.0.24 -java 1.4.2_04 - Red Hat Enterprise Linux 3 I have two machine dl580-1 and dl580-2 with tcp/ip and multicast enabled. this is the cluster part of server.xml. Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=224.0.0.1 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;/ /Cluster when I try to put the label distributable/ in jakarta-tomcat-5.0.24/webapps/jsp-examples/WEB-INF/web.xml I recive in the catalina.out these errors: INFO: Installing web application at context path /jsp-examples from URL file:/home/tomcat/jakarta-tomcat-5.0.24/webapps/jsp-examples May 13, 2004 12:50:11 PM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 21 column 2: The markup in the document following the root element must be well-formed. org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatc h(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja va:263) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:624) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4268) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8 23) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:277) at org.apache.catalina.core.StandardHost.install(StandardHost.java:832) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:683 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:119) at