Re: Re: approved
This is an automated email reply to acknowledge your message to Yahoo! Slurp email help. A number of frequently asked questions regarding Yahoo! Slurp are available at: http://help.yahoo.com/help/us/ysearch/slurp/ Thank you for your interest in Yahoo! Slurp. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to limit time for Connector threads?
Hallo, is it possible in any way to limit time for threads that realize user requests? Sometimes (once a day in average), the Tomcat 5.0.19 server doesn't answers. The reason is in error message All threads are currently busy. Probably there is a bug in the web application. Some kind of synchronization death lock, I think. But localization of this bug is very hard. So, termination (and release of all resources) of long time threads can be a work around. Thank you for any suggestions, Lipi. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jndi (jdbc) access out of container
On Wednesday 05 May 2004 10:50 pm, QM wrote: On Thu, May 06, 2004 at 12:44:57AM +, snpe wrote: : Can I access jndi out of container (from simple test application) ? In other words, you would like to access Tomcat's JNDI provider outside of a Tomcat-managed webapp? Not possible. This has been discussed on the list before. What is your end-goal here? There may be another way. I set jndi and jdbc and it wokr fine in web application (container), I want now test database with same configuration (oracle,hibernate,spring and tomcat 5.0.19) - I set spring context with direct jdbc datasource and create context in base TestCase (for now), but I think that ispossible use same configuration - I check cactus, yet Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to limit time for Connector threads?
Maybe you should increase the number of threads in your connector. check attribut maxProcessors in your server.xml In this example, I set it to 500 instead of 75 (default value) Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=80 minProcessors=30 maxProcessors=500 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / -Message d'origine- De : rlipi [mailto:[EMAIL PROTECTED] Envoyé : jeudi 6 mai 2004 08:40 À : 'Tomcat Users List' Objet : How to limit time for Connector threads? Hallo, is it possible in any way to limit time for threads that realize user requests? Sometimes (once a day in average), the Tomcat 5.0.19 server doesn't answers. The reason is in error message All threads are currently busy. Probably there is a bug in the web application. Some kind of synchronization death lock, I think. But localization of this bug is very hard. So, termination (and release of all resources) of long time threads can be a work around. Thank you for any suggestions, Lipi. - 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: How to limit time for Connector threads?
Yes, I did it. But it is not solution. Server doesn't answer slowly or for only some requests. It doesn't answer at all. It means that treads are not terminated and resources are not released. Sometimes, server doesn't answer without All threads are currently busy exception. That is why I think that the problem is some death lock. Lipi -Original Message- From: STOCKHOLM, Raymond [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 8:56 AM To: Tomcat Users List Subject: RE: How to limit time for Connector threads? Maybe you should increase the number of threads in your connector. check attribut maxProcessors in your server.xml In this example, I set it to 500 instead of 75 (default value) Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=80 minProcessors=30 maxProcessors=500 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / -Message d'origine- De : rlipi [mailto:[EMAIL PROTECTED] Envoyé : jeudi 6 mai 2004 08:40 À : 'Tomcat Users List' Objet : How to limit time for Connector threads? Hallo, is it possible in any way to limit time for threads that realize user requests? Sometimes (once a day in average), the Tomcat 5.0.19 server doesn't answers. The reason is in error message All threads are currently busy. Probably there is a bug in the web application. Some kind of synchronization death lock, I think. But localization of this bug is very hard. So, termination (and release of all resources) of long time threads can be a work around. Thank you for any suggestions, Lipi. - 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]
Vedr.: RE: How to limit time for Connector threads?
Hi Lipi, are you by any chance integrating Tomcat with IIS using JK2? And does the death lock occur whether you use port 80 or 8080? /Thomas rlipi [EMAIL PROTECTED] 06-05-2004 09:25 Besvar venligst til Tomcat Users List Til:'Tomcat Users List' [EMAIL PROTECTED] cc: Vedr.: RE: How to limit time for Connector threads? Yes, I did it. But it is not solution. Server doesn't answer slowly or for only some requests. It doesn't answer at all. It means that treads are not terminated and resources are not released. Sometimes, server doesn't answer without All threads are currently busy exception. That is why I think that the problem is some death lock. Lipi -Original Message- From: STOCKHOLM, Raymond [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 8:56 AM To: Tomcat Users List Subject: RE: How to limit time for Connector threads? Maybe you should increase the number of threads in your connector. check attribut maxProcessors in your server.xml In this example, I set it to 500 instead of 75 (default value) Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=80 minProcessors=30 maxProcessors=500 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / -Message d'origine- De : rlipi [mailto:[EMAIL PROTECTED] Envoyé : jeudi 6 mai 2004 08:40 À : 'Tomcat Users List' Objet : How to limit time for Connector threads? Hallo, is it possible in any way to limit time for threads that realize user requests? Sometimes (once a day in average), the Tomcat 5.0.19 server doesn't answers. The reason is in error message All threads are currently busy. Probably there is a bug in the web application. Some kind of synchronization death lock, I think. But localization of this bug is very hard. So, termination (and release of all resources) of long time threads can be a work around. Thank you for any suggestions, Lipi. - 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] FONT SIZE=1 FACE=Arial___ Vi gør opmærksom på, at denne e-mail kan indeholde fortrolig information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit system uden at videresende eller kopiere den. Selv om e-mailen og ethvert vedhæftet bilag efter vores overbevisning er fri for virus og andre fejl, som kan påvirke computeren eller it-systemet, hvori den modtages og læses, åbnes den på modtagerens eget ansvar. Vi påtager os ikke noget ansvar for tab og skade, som er opstået i forbindelse med at modtage og bruge e-mailen. ___ Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or IT system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message. /FONT
JkCoyoteHandler Error
Hi All, I have been looking through our production server logs and the following error block is repeated an awful lot, like every 6 minutes or so and sometimes 6 times per minute. 06-May-2004 14:38:50 org.apache.jk.server.JkCoyoteHandler action SEVERE: Error in action code java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:489) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:697) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:487) at org.apache.coyote.Response.action(Response.java:226) at org.apache.coyote.Response.finish(Response.java:348) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:344) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:415) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:716) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:650) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:829) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688) at java.lang.Thread.run(Thread.java:534) 06-May-2004 14:38:50 org.apache.jk.common.HandlerRequest invoke INFO: Unknown message 0 The difficult part is that no user has reported any errors to us and I have never seen an error arise from using the system, so I am a little puzzled at where this is coming from and despite not having errors reveal themselves or being reported, I still want to get to the bottom of them and remove the cause if possible. The system is now fairly basic: IIS + NTLM Auth -- JK2 -- Tomcat 5.0.19 -- JNDI SQL Server port 1433 -- Content Management System port If anyone could suggest what this error may be, why I may be getting it or how I can go about getting better resolution on the root cause I would be very grateful, Cheers, Allistair. FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mail Delivery (failure tomcat-user@jakarta.apache.org)
If the message will not displayed automatically, follow the link to read the delivered message. Received message is available at: www.jakarta.apache.org/inbox/tomcat-user/read.php?sessionid-5433
What version of tomcat am I using?
Is there a way to programmatically determine what version of tomcat is installed on my system? The situation is this: I'm writing an upgrade script for my application, and if the version of tomcat is 4.x, then I need to shutdown, install tomcat 5, configure tomcat 5 and then startup tomcat 5. If the version on the system is tomcat 5, then don't do anything. Normally, most applications have a --version command line parameter (e.g.: java -version gives me text that matches the regex 1.4.2_02). Is there a way that I can execute a command to tell me the tomcat version? If not through the tomcat program, is there a version number stored in a text / configuration file that I can grep? Failing that, how can I tell (programmatically) what version of tomcat I have? Thanks JDG -- Jay Glanville - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: log4j logging in Tomcat WAS: Clustering with 5.0.19
Thanks Filip, I got some logging, but far more than is useful to try and debug what session replication is going on. If I switch to a recent (nightly?) build, will I be able to add debugging specifically for the clustering? (by adding a Logger child element to Cluster in server.xml?) Up to now I've been trying to see what's going on by watching the replication packets over the network. I added a custom HttpSessionAttributeListener/HttpSessionListener to my webapp (via a listener element in my web.xml) and I'm not seeing any session events although I am seeing replication data being passed between the two servers. I'm using the DeltaManager so my assumption was that I shouldn't be. Any ideas? Please let me know what other info would be useful to paint a more complete picture! Sam. -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: 05 May 2004 16:48 To: Tomcat Users List Subject: log4j logging in Tomcat WAS: Clustering with 5.0.19 you need to enable it at the logger level, the code is currently logging with Log.info/Log.debug etc You can make is use log4j and do it using the log4j conf file http://jakarta.apache.org/commons/logging/guide.html To make some simple steps, I remember there was thread on this last week, not sure if they got it to work so here are the steps, let me know if you have problems 1. Download latest log4j package 2. Put the log4j-1.2.8.jar (or whatever name it is) in your $CATALINA_HOME/bin 3. In catalina.sh/catalina.bat add the log4j to the system classpath 4. in catalina.sh/catalina.bat, on the top add the JAVA_OPTS setting like this JAVA_OPTS=-Dlog4j.debug -Dlogj4.configuration=$CATALINA_HOME/bin/log4j.prop erties 5. Put your log4j.properties file in CATALINA_HOME/bin of course, if you are on windows you will need to change / for \ and $ for %% but I am sure you can figure that for yourself :) Filip - Original Message - From: Sam Lawrence [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 10:00 AM Subject: RE: Clustering with 5.0.19 Thanks Filip, Do you know if there is any way I can get some debug info from 5.0.19? I'd feel happier going with a release build if possible. Kind regards, Sam. -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: 05 May 2004 15:31 To: Tomcat Users List Subject: Re: Clustering with 5.0.19 useDirtyFlag is not used with the DeltaManager, only with the SimpleTcpReplicationManager. As the name suggest, the DeltaManager only replicates deltas, and hence it can only replicate when the session is dirty. The clustering configuration has changed a little bit since 5.0.19, to make it more modularized. Also, the debug flag is a thing of the past, the clustering module is currently using the commons logger, same way all the other components are using it. Filip - Original Message - From: Sam Lawrence [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 9:26 AM Subject: Clustering with 5.0.19 Hi, I've successfully clustered two instances of Tomcat on different machines and I'm now trying to do some fine tuning on a struts based site. I want to make sure that the session is only being replicated when it needs to be. I have useDirtyFlag=true although I'm not sure that it isn't still being re-sent after every request. I have the following Cluster element in my server.xml - Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false debug=10 printToScreen=true useDirtyFlag=true Although I have the debug/printToScreen attributes, I'm not seeing any debug information about session replication. How can I get some debug info? Any help greatly appreciated! Thanks, Sam Lawrence - 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]
Can't find method to write bean property
This has had me puzzled for a couple of days now. I've checked the docs, the faqs and the list archives. I have a JSP which attempts to save information to a bean usinglines of code such as: jsp:setProperty name=thisUser property=userid / The corresponding Java is: private String userID; public void setUserid( String LuserID ) { // this.userID = LuserID; userID = LuserID; } As you can see, I've attempted using both lines of code that are in the method. Everytime I see evidence of another similar problem it has been fixed by using the value attribute in the JSP like: jsp:setProperty name=thisUser property=userid value= / but this hasn't worked for me. I *always* get the following error: org.apache.jasper.JasperException: Can't find a method to write property 'userid' in a bean of type 'ISPSelfCare.Login' I've checked the obvious such as package / class names etc. Has anyone got any ideas where I'm making the error? Thanks Adam. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't find method to write bean property
This has had me puzzled for a couple of days now. I've checked the docs, the faqs and the list archives. I have a JSP which attempts to save information to a bean usinglines of code such as: jsp:setProperty name=thisUser property=userid / The corresponding Java is: private String userID; public void setUserid( String LuserID ) { // this.userID = LuserID; userID = LuserID; } As you can see, I've attempted using both lines of code that are in the method. Everytime I see evidence of another similar problem it has been fixed by using the value attribute in the JSP like: jsp:setProperty name=thisUser property=userid value= / but this hasn't worked for me. I *always* get the following error: org.apache.jasper.JasperException: Can't find a method to write property 'userid' in a bean of type 'ISPSelfCare.Login' I've checked the obvious such as package / class names etc. Has anyone got any ideas where I'm making the error? Thanks Adam. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5 - server status
Title: tomcat 5 - server status Hi, There seems to be some strange entries on the server status page in the tomcat 5 manager app. There are the obvious request entries which are fine, then there are entries with all question marks which I take to be unused threads but the erroneous one seem to have an IP and a time and are in Keepalive state but they don't have a request detailed. Has anyone got any idea what these are? Ta Matt Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question about memory
Hi list, I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2. I did a simple load testing with JMeter last night and stopped it just before I went home, so right now there's no incoming request whatsoever, but TOP still shows heavy memory usage and swapping, it looks like even though the load has subsided, Tomcat has not released the memory, what can I do except restart the Tomcat instances to release the memory? I'm not sure if this is a valid question, so I apologize if I seem to be lack of some basic understanding of how things work. Thanks in advance. Also the tomcats are started with -Xms64 -Xmx256 Yang Here's the top output 11:01:35 up 2 days, 15:28, 2 users, load average: 0.65, 0.20, 0.07 381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped CPU states: cpuusernice systemirq softirq iowaitidle total1.0%0.0% 56.1% 0.0% 0.0%0.0% 42.7% Mem: 513292k av, 505136k used,8156k free, 0k shrd, 64872k buff 280548k active, 208500k inactive Swap: 1044216k av, 52k used, 515328k free7388k cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND 8333 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8335 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:03 0 jsvc 8337 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8338 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8340 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8570 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8571 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8572 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8573 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8589 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8596 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8601 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8604 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8607 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8610 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8612 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8616 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8624 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8631 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8633 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8646 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8684 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8689 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8692 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8695 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8697 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8699 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8700 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8703 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8705 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8707 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8709 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8714 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8717 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8720 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8721 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8726 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8729 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8731 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8734 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8739 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8741 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8744 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8747 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8751 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8755 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8758 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8761 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8764 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8926 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc
Re: jndi (jdbc) access out of container
This is probably a better question for the Spring mailing list. But since it's really pretty easy - here's how I do it. All you really need to do is define a dataSource for your tests, and one for your WAR. I basically do this in a file named applicationContext-database.xml and use the one below for my tests: ?xml version=1.0 encoding=UTF-8? !DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN http://www.springframework.org/dtd/spring-beans.dtd; beans bean id=propertyConfigurer class=org.springframework.beans.factory.config.PropertyPlaceholderConfi gurer property name=locationvaluedatabase.properties/value/property /bean bean id=dataSource class=org.springframework.jdbc.datasource.DriverManagerDataSource property name=driverClassName value${hibernate.connection.driver_class}/value /property property name=url value${hibernate.connection.url}/value /property property name=username value${hibernate.connection.username}/value /property property name=password value${hibernate.connection.password}/value /property /bean /beans Then for running in Tomcat, I use Ant to bundle the following one in my WAR: ?xml version=1.0 encoding=UTF-8? !DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN http://www.springframework.org/dtd/spring-beans.dtd; beans !-- JNDI DataSource for J2EE environments -- bean id=dataSource class=org.springframework.jndi.JndiObjectFactoryBean property name=jndiNamevaluejava:comp/env/jdbc/appfuse/value/property /bean /beans HTH, Matt On May 6, 2004, at 2:54 AM, snpe wrote: On Wednesday 05 May 2004 10:50 pm, QM wrote: On Thu, May 06, 2004 at 12:44:57AM +, snpe wrote: : Can I access jndi out of container (from simple test application) ? In other words, you would like to access Tomcat's JNDI provider outside of a Tomcat-managed webapp? Not possible. This has been discussed on the list before. What is your end-goal here? There may be another way. I set jndi and jdbc and it wokr fine in web application (container), I want now test database with same configuration (oracle,hibernate,spring and tomcat 5.0.19) - I set spring context with direct jdbc datasource and create context in base TestCase (for now), but I think that ispossible use same configuration - I check cactus, yet Thanks - 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: Oops - Sorry
Sorry, I didn't mean to post that twice. We've had a slight problem with our mailserver apparently! -- Adam Buglass, The Golden Freeway, Department of Child Health, University of Newcastle-upon-Tyne. Royal Victoria Infirmary. (0191) 2023062 Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. ~Benjamin Franklin, 1759 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What version of tomcat am I using?
http://jakarta.apache.org/tomcat/faq/misc.html#version Glanville, Jay wrote: Is there a way to programmatically determine what version of tomcat is installed on my system? The situation is this: I'm writing an upgrade script for my application, and if the version of tomcat is 4.x, then I need to shutdown, install tomcat 5, configure tomcat 5 and then startup tomcat 5. If the version on the system is tomcat 5, then don't do anything. Normally, most applications have a --version command line parameter (e.g.: java -version gives me text that matches the regex 1.4.2_02). Is there a way that I can execute a command to tell me the tomcat version? If not through the tomcat program, is there a version number stored in a text / configuration file that I can grep? Failing that, how can I tell (programmatically) what version of tomcat I have? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What version of tomcat am I using?
On Thu, May 06, 2004 at 10:08:51AM -0400, Glanville, Jay wrote: : Is there a way to programmatically determine what version of tomcat is : installed on my system? method: org/apache/catalina/util/ServerInfo.getServerInfo() and resource bundle: /org/apache/catalina/util/ServerInfo.properties I haven't actually *tried* them, though -- these are results of a source grep. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can servlet generate a Web page first, then continue to run ?
How about using Thread:). If you are keen, you can create a thread manager and explode your code to 10 times of its original complexity, which makes the maintainence a nightmare. And then you will thank me for such a wonderful experience. Life is beautiful sometimes:). -Yan Lin Sun Certified J2EE Web Component Developer http://j2e-translate.sourceforge.net (need help) -Original Message- From: Tom K [mailto:[EMAIL PROTECTED] Sent: May 5, 2004 08:24 To: 'Tomcat Users List' Subject: RE: Can servlet generate a Web page first, then continue to run ? Stan, I have done something similar in a servlet by reposting to the same servlet. The way I did this is by out-putting a hidden value in the submission, then using a getParameter to retrieve this value on the next submit. The first page was the user submitting some data, which when submitted brought up a proof-read-page. If everything was OK they would hit the submit button again (so the same page was actually generated twice. The servlet would know to go to the correct processing part of the servlet because of the hidden parameter would direct it to that part of the servlet that did the processing. For example, I hid a value called action with a value of step2. In my servlet I had code that... if(action.equals(step2)){ ..do something ...}+ So how might this apply to your problem? I'm not sure :-( but it might spark an idea. Tom Kochanowicz -Original Message- From: lixiaoquan [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 5:02 AM To: [EMAIL PROTECTED] Subject: Can servlet generate a Web page first, then continue to run ? hi, I want to show a page immediately after the visiters' Form Submitting ,then do some logical processing at backgroud(this will assume a long time, so it may bother the visitor). I surpose to do these in one servlet. How can I do this? Thanks stan --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003 - 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: Question about memory
Just a silly question, but don't you also need to perform some additional production configuration in your web.xml by setting fork equal to true and developement equal to false. It explains it on this page here: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html#Production%20Configuration I made some similar modifications and I noticed that tomcat started to release the memory when the server was not as busy. Randall -Original Message- From: Yang Xiao [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 9:07 AM To: Tomcat Users List Subject: Question about memory Hi list, I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2. I did a simple load testing with JMeter last night and stopped it just before I went home, so right now there's no incoming request whatsoever, but TOP still shows heavy memory usage and swapping, it looks like even though the load has subsided, Tomcat has not released the memory, what can I do except restart the Tomcat instances to release the memory? I'm not sure if this is a valid question, so I apologize if I seem to be lack of some basic understanding of how things work. Thanks in advance. Also the tomcats are started with -Xms64 -Xmx256 Yang Here's the top output 11:01:35 up 2 days, 15:28, 2 users, load average: 0.65, 0.20, 0.07 381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped CPU states: cpuusernice systemirq softirq iowaitidle total1.0%0.0% 56.1% 0.0% 0.0%0.0% 42.7% Mem: 513292k av, 505136k used,8156k free, 0k shrd, 64872k buff 280548k active, 208500k inactive Swap: 1044216k av, 52k used, 515328k free7388k cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND 8333 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8335 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:03 0 jsvc 8337 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8338 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8340 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8570 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8571 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8572 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8573 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8589 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8596 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8601 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8604 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8607 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8610 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8612 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8616 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8624 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8631 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8633 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8646 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8684 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8689 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8692 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8695 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8697 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8699 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8700 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8703 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8705 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8707 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8709 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8714 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8717 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8720 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8721 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8726 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8729 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8731 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8734 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8739 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8741 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8744 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8747 tomcat16 0 203M 158M 80744 S 0.0 31.5
Starting Tomcat from Apache...
Looking to find out how to start up Tomcat automatically when I start up Apache? TIA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to limit time for Connector threads?
Hi, I highly doubt you've stumbled on a race condition in the tomcat connector implementation. Nonetheless, if you can supply a small WAR that leads to the problem you've described, we'll be glad to test it, and if your problem is reproducible rest assured it will be fixed immediately, as that would be more important than the other stuff currently open in bugzilla. Yoav Shapira Millennium Research Informatics -Original Message- From: rlipi [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 3:26 AM To: 'Tomcat Users List' Subject: RE: How to limit time for Connector threads? Yes, I did it. But it is not solution. Server doesn't answer slowly or for only some requests. It doesn't answer at all. It means that treads are not terminated and resources are not released. Sometimes, server doesn't answer without All threads are currently busy exception. That is why I think that the problem is some death lock. Lipi -Original Message- From: STOCKHOLM, Raymond [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 8:56 AM To: Tomcat Users List Subject: RE: How to limit time for Connector threads? Maybe you should increase the number of threads in your connector. check attribut maxProcessors in your server.xml In this example, I set it to 500 instead of 75 (default value) Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=80 minProcessors=30 maxProcessors=500 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / -Message d'origine- De : rlipi [mailto:[EMAIL PROTECTED] Envoyé : jeudi 6 mai 2004 08:40 À : 'Tomcat Users List' Objet : How to limit time for Connector threads? Hallo, is it possible in any way to limit time for threads that realize user requests? Sometimes (once a day in average), the Tomcat 5.0.19 server doesn't answers. The reason is in error message All threads are currently busy. Probably there is a bug in the web application. Some kind of synchronization death lock, I think. But localization of this bug is very hard. So, termination (and release of all resources) of long time threads can be a work around. Thank you for any suggestions, Lipi. - 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] 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: Vedr.: RE: How to limit time for Connector threads?
Hi Thomas, the Tomcat isn't integrated to any web server. It runs alone. The problem occurs on both ports. In better words - the Tomcat is listening on the port 8080 but there is transparent redirect from 80 to 8080 in iptables. Radek -Original Message- From: Thomas Nybro Bolding [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 9:51 AM To: Tomcat Users List Subject: Vedr.: RE: How to limit time for Connector threads? Hi Lipi, are you by any chance integrating Tomcat with IIS using JK2? And does the death lock occur whether you use port 80 or 8080? /Thomas rlipi [EMAIL PROTECTED] 06-05-2004 09:25 Besvar venligst til Tomcat Users List Til:'Tomcat Users List' [EMAIL PROTECTED] cc: Vedr.: RE: How to limit time for Connector threads? Yes, I did it. But it is not solution. Server doesn't answer slowly or for only some requests. It doesn't answer at all. It means that treads are not terminated and resources are not released. Sometimes, server doesn't answer without All threads are currently busy exception. That is why I think that the problem is some death lock. Lipi -Original Message- From: STOCKHOLM, Raymond [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 8:56 AM To: Tomcat Users List Subject: RE: How to limit time for Connector threads? Maybe you should increase the number of threads in your connector. check attribut maxProcessors in your server.xml In this example, I set it to 500 instead of 75 (default value) Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=80 minProcessors=30 maxProcessors=500 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / -Message d'origine- De : rlipi [mailto:[EMAIL PROTECTED] Envoyé : jeudi 6 mai 2004 08:40 À : 'Tomcat Users List' Objet : How to limit time for Connector threads? Hallo, is it possible in any way to limit time for threads that realize user requests? Sometimes (once a day in average), the Tomcat 5.0.19 server doesn't answers. The reason is in error message All threads are currently busy. Probably there is a bug in the web application. Some kind of synchronization death lock, I think. But localization of this bug is very hard. So, termination (and release of all resources) of long time threads can be a work around. Thank you for any suggestions, Lipi. - 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] FONT SIZE=1 FACE=Arial___ Vi gør opmærksom på, at denne e-mail kan indeholde fortrolig information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit system uden at videresende eller kopiere den. Selv om e-mailen og ethvert vedhæftet bilag efter vores overbevisning er fri for virus og andre fejl, som kan påvirke computeren eller it-systemet, hvori den modtages og læses, åbnes den på modtagerens eget ansvar. Vi påtager os ikke noget ansvar for tab og skade, som er opstået i forbindelse med at modtage og bruge e-mailen. ___ Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or IT system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message. /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What version of tomcat am I using?
Thanks. However, isn't this only useful from _within_ the web application? I mean, I can only execute this method from within an executing web app (It's not a static method, therefore, the ServletContext needs to be instantiated by a running instance of Tomcat.) I need the tomcat version from a script _outside_ of tomcat. My script is an upgrade script, and thus probably isn't going to be executed from within the web application. Thanks for the attempt though. JDG -- Jay Glanville -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:26 AM To: Tomcat Users List Subject: Re: What version of tomcat am I using? http://jakarta.apache.org/tomcat/faq/misc.html#version Glanville, Jay wrote: Is there a way to programmatically determine what version of tomcat is installed on my system? The situation is this: I'm writing an upgrade script for my application, and if the version of tomcat is 4.x, then I need to shutdown, install tomcat 5, configure tomcat 5 and then startup tomcat 5. If the version on the system is tomcat 5, then don't do anything. Normally, most applications have a --version command line parameter (e.g.: java -version gives me text that matches the regex 1.4.2_02). Is there a way that I can execute a command to tell me the tomcat version? If not through the tomcat program, is there a version number stored in a text / configuration file that I can grep? Failing that, how can I tell (programmatically) what version of tomcat I have? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Encoding problems hwen using tomcat through mod_jk
In your apache conf file, you may want to specify the default encoding to be utf-8 instead of iso-8859-1. There may be other ways. -Yan -Original Message- From: Diego Algorta Casamayou [mailto:[EMAIL PROTECTED] Sent: May 5, 2004 09:54 To: Tomcat Users List Subject: Encoding problems hwen using tomcat through mod_jk Hi there. SuSE 8.2 default packages: (Apache 1.3.27, Tomcat 4.1.18, mod_jk 1.2.2-dev) Java: Sun 1.4.2_03 I've searched the archives and didn't find an answer so I'm sending my problem to the list. In my development environment I use Tomcat directly through the 8080 port and special characters like áéíóúñ show ok on the resulting pages generated from the servlets. But in the production server we're using apache httpd as a front-end and mod_jk as a connector to tomcat using port 8009. The problem is that in this environment the special characters are replaced whith a ? (question sign). ¿Any guide on how to resolve this? Thank you in advance. Diego - 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: error sset
500! King of errors. You may want to fix that before you roll out your app. -Yan -Original Message- From: agarlita,dan [mailto:[EMAIL PROTECTED] Sent: May 4, 2004 18:28 To: Tomcat Users List Subject: error sset hello, I have some questions about error customisation. I want to change the look of 500 Error. (that is org.apache.jasper.JasperException) so, I want to redirect all strings to the new page. so, for example the 404 error is simple becouse we know that is Page Not Found but, the 500 Error can report errors like According to the TLD or the tag file, attribute operation is mandatory for tag sql how can I send that string (exception string) in the new page? Thanks, r_a_v_e_n - 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]
{Virus?} Schedule
Warning: This message has had one or more attachments removed Warning: (friend.zip). Warning: Please read the VirusWarning.txt attachment(s) for more information. You are bad This is a message from the MailScanner E-Mail Virus Protection Service -- The original e-mail attachment friend.zip was believed to be infected by a virus and has been replaced by this warning message. Please ask the sender of the message to disinfect their original version and send you a clean copy. At Thu May 6 21:19:08 2004 the virus scanner said: Sophos: Virus 'W32/Mydoom-F' found in file friend.zip/friend.rtf .pif Sophos: Virus 'W32/Mydoom-F' found in file friend.zip -- Postmaster Bagan Cybertech Anti-Virus Mailscanner Services - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Starting Tomcat from Apache...
In theory you should be able to do this with JK2 in inprocess mode. But I'm fairly confident that this doesnt work at all so you'd have to do it with your rc startup scripts. -Original Message- From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED] Sent: 06 May 2004 16:33 To: [EMAIL PROTECTED] Subject: Starting Tomcat from Apache... Looking to find out how to start up Tomcat automatically when I start up Apache? TIA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Form method always a get.
Hi, As per previous post, use a submit button. You are using links, that's why your servlet thinks it's a GET. Is button out of question for you? -Yan -Original Message- From: Adam Gruszynski [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 1:13 PM To: Tomcat Users List Subject: RE: Form method always a get. Did that already with the same result. I do use netbeans... I don't know if that makes a difference. A. --- Budi Kurniawan [EMAIL PROTECTED] wrote: Try adding a Submit button to click to submit. If the method is post by submitting this way then there's something wrong with your JavaScript. Good luck. budi Author of How Tomcat Works -Original Message- From: Adam Gruszynski [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 1:03 PM To: Tomcat Users List Subject: RE: Form method always a get. Thanks for answering. The following is what I'm trying to execute: body link rel=stylesheet href=include/styles.css type=text/css script language=JavaScript function preSubmit(thePage) { document.welcomeform.actionelement.value=thePage; document.welcomeform.submit(); } /script script language=JavaScript function newStudy(theURL) { window.open(theURL,'Docs','scrollbars=yes,resizable=yes,width=830,height=780 '); } /script form method=POST name=welcomeform action=/tsr input type=hidden name=actionelement value=/ input type=hidden name=currpage value=empty/ table border=0 cellpadding=0 cellspacing=0 width=100% tr tdimg src=images/tsr_logo.gif width=170 height=61/td td align=left class=font18bTITLE/font/td /tr tr td colspan=2 background=images/gradient.gifimg src=images/gradient.gif width=100% height=4/td /tr tr td valign=top colspan=2 table align=center cellpadding=0 cellspacing=0 border=0 trtdbr/td /tr /table /td /tr /table table trtd class=font16b align=center colspan=2Welcome to TITLE application site./td/tr trtdbr/td/tr tr td class=element a href=javascript:newStudy('/tsr?actionelement=new')Submit a new study./a /td td class=elementPresents the form to submit a NEW study./td /tr trtd colspan=2br/td/tr tr td class=element colspan=2The following applications require you to login: /td /tr trtd colspan=2br/td/tr tr td class=elementa href=javascript:preSubmit('summary')Edit an existing study./a /td td class=elementEnter the TSR management application./td /tr /form /body Any sugestions welcome. A. --- Budi Kurniawan [EMAIL PROTECTED] wrote: You're probably missing the closing quote after the method name: form method=post Rgds, Budi Author of How Tomcat Works -Original Message- From: Adam Gruszynski [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 12:52 PM To: Tomcat Users List Subject: Form method always a get. I hope this is just a simple lack of understanding but when I submit a html form using any tomcat version greater than 406, the servlet always recieves it as a get. Even when explicitly setting the form method as a POST. Am I making some sort of oversight or coding error? Thank you, Adam __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - 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] __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - 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] __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - 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
WG: Tomcat 4 Clustering
Hi all, I'm playing with Clustering on Tomcat 4.1.30 (1 Solaris-Server called eules with 2 tomcat instances). The only usefull solution I found, is your replicator (tomcat-replication.jar). But there are some problems and I hope that you can help me. :) When I start tomcat 1, I'll see the following message/exception: --- [FH] Starting member listener local:tcp://eules:4001 port =45566 Replication multicast service started... Replication Worker Thread:Tcp Replication Thread[2] is ready to handle requests. Replication Worker Thread:Tcp Replication Thread[1] is ready to handle requests. Replication listener listening on address eules/169.46.84.13 and port 4001 java.io.IOException: No such file or directory at sun.nio.ch.DevPollArrayWrapper.init(Native Method) at sun.nio.ch.DevPollArrayWrapper.init(DevPollArrayWrapper.java:59) at sun.nio.ch.DevPollSelectorImpl.init(DevPollSelectorImpl.java:54) at sun.nio.ch.DevPollSelectorProvider.openSelector(DevPollSelectorProvider.java :18) at java.nio.channels.Selector.open(Selector.java:209) at org.apache.catalina.cluster.ReplicationListener.listen(ReplicationListener.j ava:65) at org.apache.catalina.cluster.ReplicationListener.run(ReplicationListener.java :46) [InMemoryReplicationManager] No other members, skipping session state transfer --- I don't know, if this is really a problem, but when I start tomcat 2, I'll see the following message/exception: tomcat 1: --- [InMemoryReplicationManager] Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4002,169.46. 84.13,4002] Member added:tcp://eules:4002 --- tomcat 2: --- [FH] Starting member listener local:tcp://eules:4002 port =45566 Replication Worker Thread:Tcp Replication Thread[1] is ready to handle requests. Replication multicast service started... Replication Worker Thread:Tcp Replication Thread[2] is ready to handle requests. Replication listener listening on address eules/169.46.84.13 and port 4002 [InMemoryReplicationManager] Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4001,169.46. 84.13,4001] Member added:tcp://eules:4001 java.io.IOException: No such file or directory at sun.nio.ch.DevPollArrayWrapper.init(Native Method) at sun.nio.ch.DevPollArrayWrapper.init(DevPollArrayWrapper.java:59) at sun.nio.ch.DevPollSelectorImpl.init(DevPollSelectorImpl.java:54) at sun.nio.ch.DevPollSelectorProvider.openSelector(DevPollSelectorProvider.java :18) at java.nio.channels.Selector.open(Selector.java:209) at org.apache.catalina.cluster.ReplicationListener.listen(ReplicationListener.j ava:65) at org.apache.catalina.cluster.ReplicationListener.run(ReplicationListener.java :46) [InMemoryReplicationManager] Retrieving session state from org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4001,169.46.84.13, 4001], will timeout after 2 minutes. [InMemoryReplicationManager] Unable to send message through TCP channel java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at java.net.Socket.init(Socket.java:309) at java.net.Socket.init(Socket.java:153) at org.apache.catalina.cluster.SocketSender.connect(SocketSender.java:50) at org.apache.catalina.cluster.SocketSender.sendMessage(SocketSender.java:107) at org.apache.catalina.cluster.ReplicationTransmitter.sendMessage(ReplicationTr ansmitter.java:78) at org.apache.catalina.session.InMemoryReplicationManager.sendSessionEvent(InMe moryReplicationManager.java:753) at org.apache.catalina.session.InMemoryReplicationManager.sendSessionEvent(InMe moryReplicationManager.java:721) at org.apache.catalina.session.InMemoryReplicationManager.sendSessionEvent(InMe moryReplicationManager.java:721) at org.apache.catalina.session.InMemoryReplicationManager.start(InMemoryReplica tionManager.java:618) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3590) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at
RE: What version of tomcat am I using?
On Thu, May 06, 2004 at 10:08:51AM -0400, Glanville, Jay wrote: : Is there a way to programmatically determine what version of tomcat is : installed on my system? method: org/apache/catalina/util/ServerInfo.getServerInfo() and resource bundle: /org/apache/catalina/util/ServerInfo.properties I haven't actually *tried* them, though -- these are results of a source grep. -QM Ah, the latter looks useable, although requires a little more jumping through hoops then I was hoping for. Baring any easier solutions, I'll start using that property file. Thanks. JDG -- Jay Glanville - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Encoding problems hwen using tomcat through mod_jk
Hi. I'm still trying to fix this. The only supposed solution I've found is setting JAVA_OPTS=-Dfile.encoding=ISO-8859-1 before running tomcat and that didn't work either. Any ideas about this? Thank you Diego Algorta Casamayou escribió: Hi there. SuSE 8.2 default packages: (Apache 1.3.27, Tomcat 4.1.18, mod_jk 1.2.2-dev) Java: Sun 1.4.2_03 I've searched the archives and didn't find an answer so I'm sending my problem to the list. In my development environment I use Tomcat directly through the 8080 port and special characters like áéíóúñ show ok on the resulting pages generated from the servlets. But in the production server we're using apache httpd as a front-end and mod_jk as a connector to tomcat using port 8009. The problem is that in this environment the special characters are replaced whith a ? (question sign). ¿Any guide on how to resolve this? Thank you in advance. Diego - 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: Form method always a get.
??? He says that the error was the same when using submit buttons and you say he should use it. AFAIK your explanation is wrong. If you submit a form with javascript (even if triggered by a link) it uses (should use ?) the method type that is given in the form. -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 5:52 PM To: 'Tomcat Users List' Subject: RE: Form method always a get. As per previous post, use a submit button. You are using links, that's why your servlet thinks it's a GET. Is button out of question for you? -Original Message- From: Adam Gruszynski [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 1:13 PM To: Tomcat Users List Subject: RE: Form method always a get. Did that already with the same result. I do use netbeans... I don't know if that makes a difference. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Form method always a get.
What is your environment ? (os, tomcat, apache/iis, jdk) Find out if the request that reaches your server is a POST: - Look for the request in the access log. - use an ethernet sniffer to see what is coming. after this test you know if you have to look at the server or the client side. -Original Message- From: Adam Gruszynski [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 4:52 AM To: Tomcat Users List Subject: Form method always a get. I hope this is just a simple lack of understanding but when I submit a html form using any tomcat version greater than 406, the servlet always recieves it as a get. Even when explicitly setting the form method as a POST. Am I making some sort of oversight or coding error? Thank you, Adam __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - 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: Starting Tomcat from Apache...
I'm sure there is a bug in the bug database that means it can never work but the trouble I experienced was with a variable called jvmDllPath or something like that. The mere fact that it mentions DLL leads me to believe that its thinks its on windows when it isnt necessarily. I had a quick look at the source code but its a bit of a big thing for my rusty C programming, I found the variable mentioned but from what I could tell it was never going to work. I posted about this some time ago and no-one posted to say they had got it working. -Original Message- From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED] Sent: 06 May 2004 17:02 To: Tomcat Users List Subject: Re: Starting Tomcat from Apache... That's what I think as well... that inProcess option is just a waste of time! I hope someone can prove me wrong though! Has anyone actually gotten that to work? - Original Message - From: Dale, Matt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; JimmiSeven Productions Inc. [EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:48 AM Subject: RE: Starting Tomcat from Apache... In theory you should be able to do this with JK2 in inprocess mode. But I'm fairly confident that this doesnt work at all so you'd have to do it with your rc startup scripts. -Original Message- From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED] Sent: 06 May 2004 16:33 To: [EMAIL PROTECTED] Subject: Starting Tomcat from Apache... Looking to find out how to start up Tomcat automatically when I start up Apache? TIA - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4 Clustering
this code uses Java.nio packages. if you are running this as a non privileged user, there is a chance that it fails to open the socket. as you can see, the problem is in native code, java.io.IOException: No such file or directory at sun.nio.ch.DevPollArrayWrapper.init(Native Method) try to run it as root and see if that solves it, if it does, you have to figure out what permissions to add to your user Filip - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 06, 2004 10:59 AM Subject: WG: Tomcat 4 Clustering Hi all, I'm playing with Clustering on Tomcat 4.1.30 (1 Solaris-Server called eules with 2 tomcat instances). The only usefull solution I found, is your replicator (tomcat-replication.jar). But there are some problems and I hope that you can help me. :) When I start tomcat 1, I'll see the following message/exception: --- [FH] Starting member listener local:tcp://eules:4001 port =45566 Replication multicast service started... Replication Worker Thread:Tcp Replication Thread[2] is ready to handle requests. Replication Worker Thread:Tcp Replication Thread[1] is ready to handle requests. Replication listener listening on address eules/169.46.84.13 and port 4001 java.io.IOException: No such file or directory at sun.nio.ch.DevPollArrayWrapper.init(Native Method) at sun.nio.ch.DevPollArrayWrapper.init(DevPollArrayWrapper.java:59) at sun.nio.ch.DevPollSelectorImpl.init(DevPollSelectorImpl.java:54) at sun.nio.ch.DevPollSelectorProvider.openSelector(DevPollSelectorProvider.java :18) at java.nio.channels.Selector.open(Selector.java:209) at org.apache.catalina.cluster.ReplicationListener.listen(ReplicationListener.j ava:65) at org.apache.catalina.cluster.ReplicationListener.run(ReplicationListener.java :46) [InMemoryReplicationManager] No other members, skipping session state transfer --- I don't know, if this is really a problem, but when I start tomcat 2, I'll see the following message/exception: tomcat 1: --- [InMemoryReplicationManager] Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4002,169.46. 84.13,4002] Member added:tcp://eules:4002 --- tomcat 2: --- [FH] Starting member listener local:tcp://eules:4002 port =45566 Replication Worker Thread:Tcp Replication Thread[1] is ready to handle requests. Replication multicast service started... Replication Worker Thread:Tcp Replication Thread[2] is ready to handle requests. Replication listener listening on address eules/169.46.84.13 and port 4002 [InMemoryReplicationManager] Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4001,169.46. 84.13,4001] Member added:tcp://eules:4001 java.io.IOException: No such file or directory at sun.nio.ch.DevPollArrayWrapper.init(Native Method) at sun.nio.ch.DevPollArrayWrapper.init(DevPollArrayWrapper.java:59) at sun.nio.ch.DevPollSelectorImpl.init(DevPollSelectorImpl.java:54) at sun.nio.ch.DevPollSelectorProvider.openSelector(DevPollSelectorProvider.java :18) at java.nio.channels.Selector.open(Selector.java:209) at org.apache.catalina.cluster.ReplicationListener.listen(ReplicationListener.j ava:65) at org.apache.catalina.cluster.ReplicationListener.run(ReplicationListener.java :46) [InMemoryReplicationManager] Retrieving session state from org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4001,169.46.84.13, 4001], will timeout after 2 minutes. [InMemoryReplicationManager] Unable to send message through TCP channel java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at java.net.Socket.init(Socket.java:309) at java.net.Socket.init(Socket.java:153) at org.apache.catalina.cluster.SocketSender.connect(SocketSender.java:50) at org.apache.catalina.cluster.SocketSender.sendMessage(SocketSender.java:107) at org.apache.catalina.cluster.ReplicationTransmitter.sendMessage(ReplicationTr ansmitter.java:78) at org.apache.catalina.session.InMemoryReplicationManager.sendSessionEvent(InMe
Re: What version of tomcat am I using?
On Thu, May 06, 2004 at 12:04:58PM -0400, Jay Glanville wrote: : Ah, the latter looks useable, although requires a little more jumping : through hoops then I was hoping for. Baring any easier solutions, I'll : start using that property file. Is your upgrade tool (or any part of it) written in Java? You could load the properties file as a resource. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Load-Balancing
I have a three server configuration with 1 Apache (httpd) and 2 Tomcat (10 instances a piece) servers. The configuration is working but it is a little complicated. I choose this configuration for performance. I loaded the tomcat servers with lots of RAM and let the multiple instance run as independant processes under linux. This would allow, I beleieve for beter CPU usage. There were serveral other reasons for my original choice of load balancing across multiple instances on multiple machines which I won't go into unless asked. But, my question is this. Is it needed? Can I get the same performance from single tomcat instances on the two boxes (rely on threads instead of POSIX proccesses)? Wouldn't running 1 JVM instead of 10 provide a better use of memory per machine? The configuration would be easier, definatly... What are the thought of the others in this group? Thanks... [ Apache 10.10.10.20] | | || [Tomcat 10.10.10.100] [Tomcat 10.10.10.101] | | [APP01-01][APP02-01] ... ... [APP01-10] [APP02-10] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Load-Balancing
Hi, With one tomcat instance ( = 1 JVM) running 10 apps, if one causes the machine to crash for whatever reason (malicious code, infinite loop, OutOfMemoryError, etc.), the other 9 are hosed as well. Thus separation is frequently desirable. Yoav Shapira Millennium Research Informatics -Original Message- From: Adam T. Gautier [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 12:37 PM To: Tomcat Users List Subject: Load-Balancing I have a three server configuration with 1 Apache (httpd) and 2 Tomcat (10 instances a piece) servers. The configuration is working but it is a little complicated. I choose this configuration for performance. I loaded the tomcat servers with lots of RAM and let the multiple instance run as independant processes under linux. This would allow, I beleieve for beter CPU usage. There were serveral other reasons for my original choice of load balancing across multiple instances on multiple machines which I won't go into unless asked. But, my question is this. Is it needed? Can I get the same performance from single tomcat instances on the two boxes (rely on threads instead of POSIX proccesses)? Wouldn't running 1 JVM instead of 10 provide a better use of memory per machine? The configuration would be easier, definatly... What are the thought of the others in this group? Thanks... [ Apache 10.10.10.20] | | || [Tomcat 10.10.10.100] [Tomcat 10.10.10.101] | | [APP01-01][APP02-01] ... ... [APP01-10] [APP02-10] - 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]
Tomcat 4 Clustering
Hi Filip, I'm playing with Clustering on Tomcat 4.1.30 (1 Solaris-Server called eules with 2 tomcat instances). The only usefull solution I found, is your replicator (tomcat-replication.jar). But there are some problems and I hope that you can help me. :) When I start tomcat 1, I'll see the following message/exception: --- [FH] Starting member listener local:tcp://eules:4001 port =45566 Replication multicast service started... Replication Worker Thread:Tcp Replication Thread[2] is ready to handle requests. Replication Worker Thread:Tcp Replication Thread[1] is ready to handle requests. Replication listener listening on address eules/169.46.84.13 and port 4001 java.io.IOException: No such file or directory at sun.nio.ch.DevPollArrayWrapper.init(Native Method) at sun.nio.ch.DevPollArrayWrapper.init(DevPollArrayWrapper.java:59) at sun.nio.ch.DevPollSelectorImpl.init(DevPollSelectorImpl.java:54) at sun.nio.ch.DevPollSelectorProvider.openSelector(DevPollSelectorProvider.java :18) at java.nio.channels.Selector.open(Selector.java:209) at org.apache.catalina.cluster.ReplicationListener.listen(ReplicationListener.j ava:65) at org.apache.catalina.cluster.ReplicationListener.run(ReplicationListener.java :46) [InMemoryReplicationManager] No other members, skipping session state transfer --- I don't know, if this is really a problem, but when I start tomcat 2, I'll see the following message/exception: tomcat 1: --- [InMemoryReplicationManager] Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4002,169.46. 84.13,4002] Member added:tcp://eules:4002 --- tomcat 2: --- [FH] Starting member listener local:tcp://eules:4002 port =45566 Replication Worker Thread:Tcp Replication Thread[1] is ready to handle requests. Replication multicast service started... Replication Worker Thread:Tcp Replication Thread[2] is ready to handle requests. Replication listener listening on address eules/169.46.84.13 and port 4002 [InMemoryReplicationManager] Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4001,169.46. 84.13,400 1] Member added:tcp://eules:4001 java.io.IOException: No such file or directory at sun.nio.ch.DevPollArrayWrapper.init(Native Method) at sun.nio.ch.DevPollArrayWrapper.init(DevPollArrayWrapper.java:59) at sun.nio.ch.DevPollSelectorImpl.init(DevPollSelectorImpl.java:54) at sun.nio.ch.DevPollSelectorProvider.openSelector(DevPollSelectorProvider.java :18) at java.nio.channels.Selector.open(Selector.java:209) at org.apache.catalina.cluster.ReplicationListener.listen(ReplicationListener.j ava:65) at org.apache.catalina.cluster.ReplicationListener.run(ReplicationListener.java :46) [InMemoryReplicationManager] Retrieving session state from org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4001,169.46.84.1 3,4001], will timeout after 2 minutes. [InMemoryReplicationManager] Unable to send message through TCP channel java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at java.net.Socket.init(Socket.java:309) at java.net.Socket.init(Socket.java:153) at org.apache.catalina.cluster.SocketSender.connect(SocketSender.java:50) at org.apache.catalina.cluster.SocketSender.sendMessage(SocketSender.java:107) at org.apache.catalina.cluster.ReplicationTransmitter.sendMessage(ReplicationTr ansmitter.java:78) at org.apache.catalina.session.InMemoryReplicationManager.sendSessionEvent(InMe moryReplicationManager.java:753) at org.apache.catalina.session.InMemoryReplicationManager.sendSessionEvent(InMe moryReplicationManager.java:721) at org.apache.catalina.session.InMemoryReplicationManager.sendSessionEvent(InMe moryReplicationManager.java:721) at org.apache.catalina.session.InMemoryReplicationManager.start(InMemoryReplica tionManager.java:618) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3590) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at
RE: Load-Balancing
- stability No more to say than Yoav. - performance You may observe better performance with several vms on one server: - Depending on the quality of the thread implementation in your java vm and the os. - Depending on the quality of the gc implementation you may gain performace with smaller heap (n instances need in most cases less heap than one instance) Yoav-Mantra The only way to be shure about that is to test your application in your environment with the expected load behaviour. /Yoav-Mantra - resources With n instances - you need more total memory (JDK 1.5 will cut this down a bit). - you may need more open db connections in the pool. - maintainance -Original Message- From: Adam T. Gautier [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 6:37 PM To: Tomcat Users List Subject: Load-Balancing I have a three server configuration with 1 Apache (httpd) and 2 Tomcat (10 instances a piece) servers. The configuration is working but it is a little complicated. I choose this configuration for performance. I loaded the tomcat servers with lots of RAM and let the multiple instance run as independant processes under linux. This would allow, I beleieve for beter CPU usage. There were serveral other reasons for my original choice of load balancing across multiple instances on multiple machines which I won't go into unless asked. But, my question is this. Is it needed? Can I get the same performance from single tomcat instances on the two boxes (rely on threads instead of POSIX proccesses)? Wouldn't running 1 JVM instead of 10 provide a better use of memory per machine? The configuration would be easier, definatly... What are the thought of the others in this group? Thanks... [ Apache 10.10.10.20] | | || [Tomcat 10.10.10.100] [Tomcat 10.10.10.101] | | [APP01-01][APP02-01] ... ... [APP01-10] [APP02-10] - 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]
Apache2, mod_jk2, Jetty on Linux Redhat 9
I am running a load-balanced apache/jetty architecture using the mod_jk2 connector. I have been able to successfully set this architecture up with two Jetty instances on the same box as the apache server. Now I am trying to transfer one of the Jetty instances to a seperate Linux box. This is where I have reached my roadblock. The apache front end can still successfully communicate with the first Jetty instance running on the same box, but I get the following Java error (found below) when apache tries to communicate with the second instance on the seperate server: Is it possoble to run an architecture like this with Apache, mod_jk2, and Jetty ? If so, is there anything special that must be done to enable it ? java.net.UnknownHostException: jetty at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153) at java.net.Socket.connect(Socket.java:426) at java.net.Socket.connect(Socket.java:376) at sun.net.NetworkClient.doConnect(NetworkClient.java:139) at sun.net.www.http.HttpClient.openServer(HttpClient.java:386) at sun.net.www.http.HttpClient.openServer(HttpClient.java:602) at sun.net.www.http.HttpClient.(HttpClient.java:303) at sun.net.www.http.HttpClient.(HttpClient.java:264) at sun.net.www.http.HttpClient.New(HttpClient.java:336) at sun.net.www.http.HttpClient.New(HttpClient.java:317) at sun.net.www.http.HttpClient.New(HttpClient.java:312) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:481) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:472) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:574) at java.net.URL.openStream(URL.java:960) at com.trxn.servlet.TTrip.mergeUrl(TTrip.java:258) at com.trxn.servlet.TTrip.mergeUrl(TTrip.java:248) at Login.doGet(Login.java:48) at com.trxn.servlet.THttpServlet.doTServletGet(THttpServlet.java:142) at com.trxn.servlet.THttpServlet.doGet(THttpServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:790) at org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:273) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807) at org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:199) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:276) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
Re: Apache2, mod_jk2, Jetty on Linux Redhat 9
And this has something to do with tomcat because. ? Mike Batting wrote: I am running a load-balanced apache/jetty architecture using the mod_jk2 connector. I have been able to successfully set this architecture up with two Jetty instances on the same box as the apache server. Now I am trying to transfer one of the Jetty instances to a seperate Linux box. This is where I have reached my roadblock. The apache front end can still successfully communicate with the first Jetty instance running on the same box, but I get the following Java error (found below) when apache tries to communicate with the second instance on the seperate server: Is it possoble to run an architecture like this with Apache, mod_jk2, and Jetty ? If so, is there anything special that must be done to enable it ? java.net.UnknownHostException: jetty at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153) at java.net.Socket.connect(Socket.java:426) at java.net.Socket.connect(Socket.java:376) at sun.net.NetworkClient.doConnect(NetworkClient.java:139) at sun.net.www.http.HttpClient.openServer(HttpClient.java:386) at sun.net.www.http.HttpClient.openServer(HttpClient.java:602) at sun.net.www.http.HttpClient.(HttpClient.java:303) at sun.net.www.http.HttpClient.(HttpClient.java:264) at sun.net.www.http.HttpClient.New(HttpClient.java:336) at sun.net.www.http.HttpClient.New(HttpClient.java:317) at sun.net.www.http.HttpClient.New(HttpClient.java:312) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:481) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:472) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:574) at java.net.URL.openStream(URL.java:960) at com.trxn.servlet.TTrip.mergeUrl(TTrip.java:258) at com.trxn.servlet.TTrip.mergeUrl(TTrip.java:248) at Login.doGet(Login.java:48) at com.trxn.servlet.THttpServlet.doTServletGet(THttpServlet.java:142) at com.trxn.servlet.THttpServlet.doGet(THttpServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:790) at org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:273) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807) at org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:199) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:276) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can Tomcat 5 use PKCS10 certificates? (Was SSL CA (PKCS10) Problem)
Is anyone aware of problems using a PKCS10 cert with Tomcat 5.0.19? On May 5, 2004, at 12:49 PM, Nathan Maves wrote: Our internal CA issued us a PKCS10 certificate but we can not get Tomcat 5.0.19 to recognize it. We imported the PKCS10 Cert using Keytool (java) which worked well. We then added the created .keystore to a new Connector using port 443. Here is the error that we are getting WARNING: Reinitializing ServerSocket May 3, 2004 9:29:59 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket SEVERE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8443]] ignored exception: java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException: No available certificate corresponds to the SSL cipher suites which are enabled. java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException: No available certificate corresponds to the SSL cipher suites which are enabled. at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESock etFactory.java:154) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint .java:410) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 591) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.java:688) at java.lang.Thread.run(Thread.java:534) Nathan - 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: Load-Balancing
On Thu, May 06, 2004 at 12:36:49PM -0400, Adam T. Gautier wrote: : The configuration would be easier, definatly... configuration, maybe. maintenance, probably not. ;) One of my clients had a large-scale J2EE setup. (Not Tomcat, but bear with me.) Several VMs ran on the server, but a single VM would host up to, say, 5-6 apps. Coordination between the apps was a headache. Code migrations required a VM restart; app X didn't want the downtime when app Y had to do a code push. There were also several conflicts over intra-VM resources: no one wanted to share a container with a memory hog... etc, etc, etc. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question about memory
Hi, I have development set to false and fork to true, tomcat still doesn't release the memory, any ideas? Thanks, Yang -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:32 AM To: Tomcat Users List Subject: RE: Question about memory Just a silly question, but don't you also need to perform some additional production configuration in your web.xml by setting fork equal to true and developement equal to false. It explains it on this page here: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html#Production %20Configuration I made some similar modifications and I noticed that tomcat started to release the memory when the server was not as busy. Randall -Original Message- From: Yang Xiao [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 9:07 AM To: Tomcat Users List Subject: Question about memory Hi list, I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2. I did a simple load testing with JMeter last night and stopped it just before I went home, so right now there's no incoming request whatsoever, but TOP still shows heavy memory usage and swapping, it looks like even though the load has subsided, Tomcat has not released the memory, what can I do except restart the Tomcat instances to release the memory? I'm not sure if this is a valid question, so I apologize if I seem to be lack of some basic understanding of how things work. Thanks in advance. Also the tomcats are started with -Xms64 -Xmx256 Yang Here's the top output 11:01:35 up 2 days, 15:28, 2 users, load average: 0.65, 0.20, 0.07 381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped CPU states: cpuusernice systemirq softirq iowaitidle total1.0%0.0% 56.1% 0.0% 0.0%0.0% 42.7% Mem: 513292k av, 505136k used,8156k free, 0k shrd, 64872k buff 280548k active, 208500k inactive Swap: 1044216k av, 52k used, 515328k free7388k cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND 8333 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8335 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:03 0 jsvc 8337 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8338 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8340 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8570 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8571 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8572 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8573 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8589 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8596 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8601 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8604 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8607 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8610 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8612 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8616 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8624 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8631 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8633 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8646 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8684 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8689 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8692 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8695 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8697 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8699 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8700 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8703 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8705 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8707 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8709 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8714 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8717 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8720 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8721 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8726 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8729 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8731 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8734 tomcat16 0 203M 158M 80744 S 0.0
RE: Question about memory
I am out of ideas. But it took a little while to release the memory. Perhaps your app has a memory leak?? Anyone else care to comment -Original Message- From: Yang Xiao [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:43 AM To: 'Tomcat Users List' Subject: RE: Question about memory Hi, I have development set to false and fork to true, tomcat still doesn't release the memory, any ideas? Thanks, Yang -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:32 AM To: Tomcat Users List Subject: RE: Question about memory Just a silly question, but don't you also need to perform some additional production configuration in your web.xml by setting fork equal to true and developement equal to false. It explains it on this page here: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html#Production %20Configuration I made some similar modifications and I noticed that tomcat started to release the memory when the server was not as busy. Randall -Original Message- From: Yang Xiao [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 9:07 AM To: Tomcat Users List Subject: Question about memory Hi list, I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2. I did a simple load testing with JMeter last night and stopped it just before I went home, so right now there's no incoming request whatsoever, but TOP still shows heavy memory usage and swapping, it looks like even though the load has subsided, Tomcat has not released the memory, what can I do except restart the Tomcat instances to release the memory? I'm not sure if this is a valid question, so I apologize if I seem to be lack of some basic understanding of how things work. Thanks in advance. Also the tomcats are started with -Xms64 -Xmx256 Yang Here's the top output 11:01:35 up 2 days, 15:28, 2 users, load average: 0.65, 0.20, 0.07 381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped CPU states: cpuusernice systemirq softirq iowaitidle total1.0%0.0% 56.1% 0.0% 0.0%0.0% 42.7% Mem: 513292k av, 505136k used,8156k free, 0k shrd, 64872k buff 280548k active, 208500k inactive Swap: 1044216k av, 52k used, 515328k free7388k cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND 8333 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8335 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:03 0 jsvc 8337 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8338 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8340 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8570 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8571 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8572 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8573 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8589 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8596 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8601 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8604 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8607 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8610 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8612 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8616 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8624 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8631 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8633 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8646 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8684 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8689 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8692 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8695 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8697 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8699 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8700 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8703 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8705 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8707 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8709 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8714 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8717 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8720 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8721 tomcat15 0
Re: Starting Tomcat from Apache...
Hello, the JNI working very well, but you must use a mod_jk2 2.0.4 and Tomcat Release greater than 5.0.20 Regards Peter JimmiSeven Productions Inc. schrieb: That's what I think as well... that inProcess option is just a waste of time! I hope someone can prove me wrong though! Has anyone actually gotten that to work? - Original Message - From: Dale, Matt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; JimmiSeven Productions Inc. [EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:48 AM Subject: RE: Starting Tomcat from Apache... In theory you should be able to do this with JK2 in inprocess mode. But I'm fairly confident that this doesnt work at all so you'd have to do it with your rc startup scripts. -Original Message- From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED] Sent: 06 May 2004 16:33 To: [EMAIL PROTECTED] Subject: Starting Tomcat from Apache... Looking to find out how to start up Tomcat automatically when I start up Apache? TIA - 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] -- J2EE Systemarchitekt und Tomcat Experte http://objektpark.de/ http://www.webapp.de/ Am Josephsschacht 72, 44879 Bochum, Deutschland Telefon: (49) 234 9413228 Mobil:(49) 175 1660884 E-Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to conserve memory usage?
I have a web application which I want to deploy several times on one server, so that every customer has his own instance. How should I do this so that the memory footprint per deployment is minimized? A colleague suggested creating one .war file and referencing this file in several webapps/application_01.xml, webapps/application_02.xml etc. files. He said this would be more efficient than creating several identical webapps/application_01, webapps/application_02 etc. directories. Is this true? Are there any better approaches? When using the same approach with Tomcat 5 I discovered that the .war file is still unpacked several times in the webapps directory, once per conf/Catalina/localhost/application_nn.xml file. Do I now lose the memory consumption advantage compared to Tomcat 4? Are there any better methods to run many instances of the same web application inside one Tomcat? Mit schönen Grüßen von Yahoo! Mail - http://mail.yahoo.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question about memory
Ok, I went back an re-read your originaly post. I think elsewhere in the forum there is mention of top not accurately displaying the amount of memory java is using. Here is a blurp i found searching through google for memory top and tomcat: There is a difference between the total amount of memory used by your Java applications (Tomcat + installed apps) and the JVM as a whole. Your applications live in the heap. You can write a trivial Java application that prints out the total memory used in the heap (Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()) to verify that your heap doesn't exceed your max setting. The JVM itself has a footprint in memory that adds to the total memory footprint in the OS. Supposedly tomcat 5 has a status page that displays memory usage. That might be more accurate. Randall -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:48 AM To: Tomcat Users List Subject: RE: Question about memory I am out of ideas. But it took a little while to release the memory. Perhaps your app has a memory leak?? Anyone else care to comment -Original Message- From: Yang Xiao [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:43 AM To: 'Tomcat Users List' Subject: RE: Question about memory Hi, I have development set to false and fork to true, tomcat still doesn't release the memory, any ideas? Thanks, Yang -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:32 AM To: Tomcat Users List Subject: RE: Question about memory Just a silly question, but don't you also need to perform some additional production configuration in your web.xml by setting fork equal to true and developement equal to false. It explains it on this page here: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html#Production %20Configuration I made some similar modifications and I noticed that tomcat started to release the memory when the server was not as busy. Randall -Original Message- From: Yang Xiao [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 9:07 AM To: Tomcat Users List Subject: Question about memory Hi list, I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2. I did a simple load testing with JMeter last night and stopped it just before I went home, so right now there's no incoming request whatsoever, but TOP still shows heavy memory usage and swapping, it looks like even though the load has subsided, Tomcat has not released the memory, what can I do except restart the Tomcat instances to release the memory? I'm not sure if this is a valid question, so I apologize if I seem to be lack of some basic understanding of how things work. Thanks in advance. Also the tomcats are started with -Xms64 -Xmx256 Yang Here's the top output 11:01:35 up 2 days, 15:28, 2 users, load average: 0.65, 0.20, 0.07 381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped CPU states: cpuusernice systemirq softirq iowaitidle total1.0%0.0% 56.1% 0.0% 0.0%0.0% 42.7% Mem: 513292k av, 505136k used,8156k free, 0k shrd, 64872k buff 280548k active, 208500k inactive Swap: 1044216k av, 52k used, 515328k free7388k cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND 8333 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8335 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:03 0 jsvc 8337 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8338 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8340 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8570 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8571 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8572 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8573 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8589 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8596 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8601 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8604 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8607 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8610 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8612 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8616 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8624 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8631 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8633 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8646 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8684
RE: Starting Tomcat from Apache...
Excellent, shall just have to wait on the next release of tomcat then. It was the latest JK2 that I was using with no success but shall be over the moon if this works. Ta Matt -Original Message- From: Peter Rossbach [mailto:[EMAIL PROTECTED] Sent: 06 May 2004 18:51 To: Tomcat Users List Subject: Re: Starting Tomcat from Apache... Hello, the JNI working very well, but you must use a mod_jk2 2.0.4 and Tomcat Release greater than 5.0.20 Regards Peter JimmiSeven Productions Inc. schrieb: That's what I think as well... that inProcess option is just a waste of time! I hope someone can prove me wrong though! Has anyone actually gotten that to work? - Original Message - From: Dale, Matt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; JimmiSeven Productions Inc. [EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:48 AM Subject: RE: Starting Tomcat from Apache... In theory you should be able to do this with JK2 in inprocess mode. But I'm fairly confident that this doesnt work at all so you'd have to do it with your rc startup scripts. -Original Message- From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED] Sent: 06 May 2004 16:33 To: [EMAIL PROTECTED] Subject: Starting Tomcat from Apache... Looking to find out how to start up Tomcat automatically when I start up Apache? TIA - 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] -- J2EE Systemarchitekt und Tomcat Experte http://objektpark.de/ http://www.webapp.de/ Am Josephsschacht 72, 44879 Bochum, Deutschland Telefon: (49) 234 9413228 Mobil:(49) 175 1660884 E-Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Java VM options
How do I specify -X or -XX JVM startup options in 5.0.19 ?
RE: Question about memory
Hi, Here is a blurp i found searching through google for memory top and tomcat: It wouldn't hurt to quote or link to your sources ;) Supposedly tomcat 5 has a status page that displays memory usage. That might be more accurate. It's http://host:port/manager/status. Yoav Shapira 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: Java VM options
In your catalina.sh (unix) or catalina.bat (window) located on in your bin directory of CATALINA_HOME (where tomcat is located) you can add your jvm options to a variable called JAVA_OPTS or CATLINA_OPTS. JAVA_OPTS=your jvm parameters (unix catalina.sh) -Original Message- From: Damon Henderson [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 12:02 PM To: Tomcat Users List Subject: Java VM options How do I specify -X or -XX JVM startup options in 5.0.19 ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question about memory
Source for information below: http://www.theserverside.com/discussions/thread.tss?thread_id=24939 -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 12:05 PM To: Tomcat Users List Subject: RE: Question about memory Hi, Here is a blurp i found searching through google for memory top and tomcat: It wouldn't hurt to quote or link to your sources ;) Supposedly tomcat 5 has a status page that displays memory usage. That might be more accurate. It's http://host:port/manager/status. Yoav Shapira 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: Starting Tomcat from Apache...
Ummm... tomcat greater than 5.0.20? Are you saying that in the next release that things will be fixed, but as of now the latest 5.0.19 still has problems? Daniel Peter Rossbach wrote: Hello, the JNI working very well, but you must use a mod_jk2 2.0.4 and Tomcat Release greater than 5.0.20 Regards Peter JimmiSeven Productions Inc. schrieb: That's what I think as well... that inProcess option is just a waste of time! I hope someone can prove me wrong though! Has anyone actually gotten that to work? - Original Message - From: Dale, Matt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; JimmiSeven Productions Inc. [EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:48 AM Subject: RE: Starting Tomcat from Apache... In theory you should be able to do this with JK2 in inprocess mode. But I'm fairly confident that this doesnt work at all so you'd have to do it with your rc startup scripts. -Original Message- From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED] Sent: 06 May 2004 16:33 To: [EMAIL PROTECTED] Subject: Starting Tomcat from Apache... Looking to find out how to start up Tomcat automatically when I start up Apache? TIA - 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: Question about memory
by the way, you can view the performance of Tomcat using JMeter. it will make a request to the status page and then graph the results. peter Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Here is a blurp i found searching through google for memory top and tomcat: It wouldn't hurt to quote or link to your sources ;) Supposedly tomcat 5 has a status page that displays memory usage. That might be more accurate. It's http://host:port/manager/status. Yoav Shapira 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] - Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs
RE: Question about memory
I remember you talking about adding that functionality to jmeter. It sounds really kewl. I need to try it!! -Original Message- From: Peter Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 12:13 PM To: Tomcat Users List Subject: RE: Question about memory by the way, you can view the performance of Tomcat using JMeter. it will make a request to the status page and then graph the results. peter Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Here is a blurp i found searching through google for memory top and tomcat: It wouldn't hurt to quote or link to your sources ;) Supposedly tomcat 5 has a status page that displays memory usage. That might be more accurate. It's http://host:port/manager/status. Yoav Shapira 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] - Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache2, mod_jk2, Jetty on Linux Redhat 9
I thought it might relate to the connectors associated with the jakarta project. If this is not a connector or apache issue then I will try and sort it out on the Jetty end of the architecture. It appears to be a problem on the apache / jakarta-mod_jk2 connector side unless I am way off. - Original Message - From: Daniel Gibby [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, May 06, 2004 1:16 PM Subject: Re: Apache2, mod_jk2, Jetty on Linux Redhat 9 And this has something to do with tomcat because. ? Mike Batting wrote: I am running a load-balanced apache/jetty architecture using the mod_jk2 connector. I have been able to successfully set this architecture up with two Jetty instances on the same box as the apache server. Now I am trying to transfer one of the Jetty instances to a seperate Linux box. This is where I have reached my roadblock. The apache front end can still successfully communicate with the first Jetty instance running on the same box, but I get the following Java error (found below) when apache tries to communicate with the second instance on the seperate server: Is it possoble to run an architecture like this with Apache, mod_jk2, and Jetty ? If so, is there anything special that must be done to enable it ? java.net.UnknownHostException: jetty at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153) at java.net.Socket.connect(Socket.java:426) at java.net.Socket.connect(Socket.java:376) at sun.net.NetworkClient.doConnect(NetworkClient.java:139) at sun.net.www.http.HttpClient.openServer(HttpClient.java:386) at sun.net.www.http.HttpClient.openServer(HttpClient.java:602) at sun.net.www.http.HttpClient.(HttpClient.java:303) at sun.net.www.http.HttpClient.(HttpClient.java:264) at sun.net.www.http.HttpClient.New(HttpClient.java:336) at sun.net.www.http.HttpClient.New(HttpClient.java:317) at sun.net.www.http.HttpClient.New(HttpClient.java:312) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.j ava:481) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:4 72) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection .java:574) at java.net.URL.openStream(URL.java:960) at com.trxn.servlet.TTrip.mergeUrl(TTrip.java:258) at com.trxn.servlet.TTrip.mergeUrl(TTrip.java:248) at Login.doGet(Login.java:48) at com.trxn.servlet.THttpServlet.doTServletGet(THttpServlet.java:142) at com.trxn.servlet.THttpServlet.doGet(THttpServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl er.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext .java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:790) at org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:273) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807) at org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:199) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:276) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511) - 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: Starting Tomcat from Apache...
Hello Daniel, Yes, with 5.0.19 and before you have no chance to get it working. Save you time and wait for the next offiziel release. Regards Peter Daniel Gibby schrieb: Ummm... tomcat greater than 5.0.20? Are you saying that in the next release that things will be fixed, but as of now the latest 5.0.19 still has problems? Daniel Peter Rossbach wrote: Hello, the JNI working very well, but you must use a mod_jk2 2.0.4 and Tomcat Release greater than 5.0.20 Regards Peter JimmiSeven Productions Inc. schrieb: That's what I think as well... that inProcess option is just a waste of time! I hope someone can prove me wrong though! Has anyone actually gotten that to work? - Original Message - From: Dale, Matt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; JimmiSeven Productions Inc. [EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:48 AM Subject: RE: Starting Tomcat from Apache... In theory you should be able to do this with JK2 in inprocess mode. But I'm fairly confident that this doesnt work at all so you'd have to do it with your rc startup scripts. -Original Message- From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED] Sent: 06 May 2004 16:33 To: [EMAIL PROTECTED] Subject: Starting Tomcat from Apache... Looking to find out how to start up Tomcat automatically when I start up Apache? TIA - 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] -- J2EE Systemarchitekt und Tomcat Experte http://objektpark.de/ http://www.webapp.de/ Am Josephsschacht 72, 44879 Bochum, Deutschland Telefon: (49) 234 9413228 Mobil:(49) 175 1660884 E-Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4 Clustering
I responded on tomcat user - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, May 06, 2004 7:26 AM Subject: Tomcat 4 Clustering Hi Filip, I'm playing with Clustering on Tomcat 4.1.30 (1 Solaris-Server called eules with 2 tomcat instances). The only usefull solution I found, is your replicator (tomcat-replication.jar). But there are some problems and I hope that you can help me. :) When I start tomcat 1, I'll see the following message/exception: --- [FH] Starting member listener local:tcp://eules:4001 port =45566 Replication multicast service started... Replication Worker Thread:Tcp Replication Thread[2] is ready to handle requests. Replication Worker Thread:Tcp Replication Thread[1] is ready to handle requests. Replication listener listening on address eules/169.46.84.13 and port 4001 java.io.IOException: No such file or directory at sun.nio.ch.DevPollArrayWrapper.init(Native Method) at sun.nio.ch.DevPollArrayWrapper.init(DevPollArrayWrapper.java:59) at sun.nio.ch.DevPollSelectorImpl.init(DevPollSelectorImpl.java:54) at sun.nio.ch.DevPollSelectorProvider.openSelector(DevPollSelectorProvider.java :18) at java.nio.channels.Selector.open(Selector.java:209) at org.apache.catalina.cluster.ReplicationListener.listen(ReplicationListener.j ava:65) at org.apache.catalina.cluster.ReplicationListener.run(ReplicationListener.java :46) [InMemoryReplicationManager] No other members, skipping session state transfer --- I don't know, if this is really a problem, but when I start tomcat 2, I'll see the following message/exception: tomcat 1: --- [InMemoryReplicationManager] Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4002,169.46. 84.13,4002] Member added:tcp://eules:4002 --- tomcat 2: --- [FH] Starting member listener local:tcp://eules:4002 port =45566 Replication Worker Thread:Tcp Replication Thread[1] is ready to handle requests. Replication multicast service started... Replication Worker Thread:Tcp Replication Thread[2] is ready to handle requests. Replication listener listening on address eules/169.46.84.13 and port 4002 [InMemoryReplicationManager] Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4001,169.46. 84.13,400 1] Member added:tcp://eules:4001 java.io.IOException: No such file or directory at sun.nio.ch.DevPollArrayWrapper.init(Native Method) at sun.nio.ch.DevPollArrayWrapper.init(DevPollArrayWrapper.java:59) at sun.nio.ch.DevPollSelectorImpl.init(DevPollSelectorImpl.java:54) at sun.nio.ch.DevPollSelectorProvider.openSelector(DevPollSelectorProvider.java :18) at java.nio.channels.Selector.open(Selector.java:209) at org.apache.catalina.cluster.ReplicationListener.listen(ReplicationListener.j ava:65) at org.apache.catalina.cluster.ReplicationListener.run(ReplicationListener.java :46) [InMemoryReplicationManager] Retrieving session state from org.apache.catalina.cluster.mcast.McastMember[tcp://eules:4001,169.46.84.1 3,4001], will timeout after 2 minutes. [InMemoryReplicationManager] Unable to send message through TCP channel java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at java.net.Socket.init(Socket.java:309) at java.net.Socket.init(Socket.java:153) at org.apache.catalina.cluster.SocketSender.connect(SocketSender.java:50) at org.apache.catalina.cluster.SocketSender.sendMessage(SocketSender.java:107) at org.apache.catalina.cluster.ReplicationTransmitter.sendMessage(ReplicationTr ansmitter.java:78) at org.apache.catalina.session.InMemoryReplicationManager.sendSessionEvent(InMe moryReplicationManager.java:753) at org.apache.catalina.session.InMemoryReplicationManager.sendSessionEvent(InMe moryReplicationManager.java:721) at org.apache.catalina.session.InMemoryReplicationManager.sendSessionEvent(InMe moryReplicationManager.java:721) at org.apache.catalina.session.InMemoryReplicationManager.start(InMemoryReplica tionManager.java:618) at
Re: Question about memory
Jo, it works great and you can very easy monitoring a lot of tomcats. But I am sure it working only with alpha release 5.0.22 and greater ? Regards Peter Randall Svancara schrieb: I remember you talking about adding that functionality to jmeter. It sounds really kewl. I need to try it!! -Original Message- From: Peter Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 12:13 PM To: Tomcat Users List Subject: RE: Question about memory by the way, you can view the performance of Tomcat using JMeter. it will make a request to the status page and then graph the results. peter Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Here is a blurp i found searching through google for memory top and tomcat: It wouldn't hurt to quote or link to your sources ;) Supposedly tomcat 5 has a status page that displays memory usage. That might be more accurate. It's http://host:port/manager/status. Yoav Shapira 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] - Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- J2EE Systemarchitekt und Tomcat Experte http://objektpark.de/ http://www.webapp.de/ Am Josephsschacht 72, 44879 Bochum, Deutschland Telefon: (49) 234 9413228 Mobil:(49) 175 1660884 E-Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Starting Tomcat from Apache...
I am eager to upgrade to the new version as I really like to use it. Is a new release build expected anytime soon? grts, Pat -Original Message- From: Peter Rossbach [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:31 AM To: Tomcat Users List Subject: Re: Starting Tomcat from Apache... Hello Daniel, Yes, with 5.0.19 and before you have no chance to get it working. Save you time and wait for the next offiziel release. Regards Peter Daniel Gibby schrieb: Ummm... tomcat greater than 5.0.20? Are you saying that in the next release that things will be fixed, but as of now the latest 5.0.19 still has problems? Daniel Peter Rossbach wrote: Hello, the JNI working very well, but you must use a mod_jk2 2.0.4 and Tomcat Release greater than 5.0.20 Regards Peter JimmiSeven Productions Inc. schrieb: That's what I think as well... that inProcess option is just a waste of time! I hope someone can prove me wrong though! Has anyone actually gotten that to work? - Original Message - From: Dale, Matt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; JimmiSeven Productions Inc. [EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:48 AM Subject: RE: Starting Tomcat from Apache... In theory you should be able to do this with JK2 in inprocess mode. But I'm fairly confident that this doesnt work at all so you'd have to do it with your rc startup scripts. -Original Message- From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED] Sent: 06 May 2004 16:33 To: [EMAIL PROTECTED] Subject: Starting Tomcat from Apache... Looking to find out how to start up Tomcat automatically when I start up Apache? TIA - 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] -- J2EE Systemarchitekt und Tomcat Experte http://objektpark.de/ http://www.webapp.de/ Am Josephsschacht 72, 44879 Bochum, Deutschland Telefon: (49) 234 9413228 Mobil:(49) 175 1660884 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: Question about memory
it works with 5.0.19 and newer :) sorry, but tomcat 4 doesn't have the status servlet. peter Peter Rossbach [EMAIL PROTECTED] wrote: Jo, it works great and you can very easy monitoring a lot of tomcats. But I am sure it working only with alpha release 5.0.22 and greater ? Regards Peter Randall Svancara schrieb: I remember you talking about adding that functionality to jmeter. It sounds really kewl. I need to try it!! -Original Message- From: Peter Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 12:13 PM To: Tomcat Users List Subject: RE: Question about memory by the way, you can view the performance of Tomcat using JMeter. it will make a request to the status page and then graph the results. peter Shapira, Yoav wrote: Hi, Here is a blurp i found searching through google for memory top and tomcat: It wouldn't hurt to quote or link to your sources ;) Supposedly tomcat 5 has a status page that displays memory usage. That might be more accurate. It's http://host:port/manager/status. Yoav Shapira 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] - Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- J2EE Systemarchitekt und Tomcat Experte http://objektpark.de/ http://www.webapp.de/ Am Josephsschacht 72, 44879 Bochum, Deutschland Telefon: (49) 234 9413228 Mobil: (49) 175 1660884 E-Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
RE: DB connection pool problem
Well I figured out the problem. The problem was that mysql-connector.jar was not in common/lib of tomcat, but it I had placed in the WEB-INF/lib of my application. Thanks for every body's suggestion. Also just asking curiosity if we keep same jar in both WEB-INF/lib and common/lib, will it create some problem. Thanks. Avinash Arora -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 4:45 PM To: Tomcat Users List Subject: RE: DB connection pool problem Have you tried to put the configuration text in GlobalNamingResources instead of context block? To me, the message tells that the web.xml and java code is fine. The server.xml is not edited correctly. in you server.xml, you put ResourceParams name=jdbc/conversion, but where is the resource jdbc/conversion? -Original Message- From: Arora, Avinash [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 4:07 PM To: Daxin Zuo; Tomcat Users List Subject: RE: DB connection pool problem Hi, Sorry I was messing up my code by making several changes. If I add that statement, I get the following SQL exception is generated Cannot create JDBC driver of class '' for connect URL 'null'. Any idea about what corrections I need to make. Avinash Arora -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 4:29 PM To: Tomcat Users List Subject: RE: DB connection pool problem You have to add con = dataSource.getConnection(); after dataSource = (DataSource)ctx.lookup(jdbc/conversion); -Original Message- From: Arora, Avinash [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:54 PM To: David Smith; Tomcat Users List Subject: RE: DB connection pool problem Sorry for creating the confusion. Actually I was seeing the connection object to be null for long time. But at last moment I made those silly changes to present it in a better way. Sorry about it. But now I printing the connection object and finding it to be null. I cannot understand, the reason for connection object to be null, even when datasource object is not null. Is it because that I am not able to connect to database? If yes what could be the reason. If I specify the attributes, using Direct JDBC by using Class.forName() and DriverManager.getConnection(), I can connect to data base and read all the values. But the problem comes when I use Connection pooling. Where shuld I look for correction?? -- Part of my code and JSP o/p - public LinkedList selectCP(){ LinkedList ll = new LinkedList(); Connection con = null; Statement stmt = null; ResultSet rs = null; DataSource dataSource = null; try{ Context init = new InitialContext(); Context ctx = (Context) init.lookup(java:comp/env); dataSource = (DataSource)ctx.lookup(jdbc/conversion); ll.add(dataSource object is); ll.add(dataSource); } catch(NamingException e){ System.out.println(Exception thrown is+e.getMessage()); ll.add(Naming Exception thrown); } finally{ if(dataSource == null){ ll.add(DataSource object is null); return ll; } else{ ll.add(Data source object is not null); } } try{ ll.add(Inside try.); ll.add(con is); ll.add(con); if(con == null){ ll.add(Inside try. Connection object found to be null); ll.add(con); return ll; } else{ ll.add(Connection object inside else is); ll.add(con);} } } catch(SQLException e) { System.err.println(SQL EXCEPTION+e.getMessage()); ll.add(SQL Exception ); ll.add(e.getMessage()); } catch(Exception e) { System.err.println( class not found exception+e.getMessage()); ll.add(Exception generated:); ll.add(e.getMessage()); } finally{ if(con == null) ll.add(Connection object is null); } try{ stmt.close(); } catch(Exception e){} try{ rs.close(); } catch(Exception e){} try{ con.close(); } catch(Exception e){} return ll; } ---O/P-- --- I am pasting the ll obtained on browser-- [dataSource object is, [EMAIL PROTECTED], Data source object is not null, Inside try., con is, null, Inside try. Connection object found to be null, null, Connection object is null] -Original
Re: How to limit time for Connector threads?
Hi Yoav, What the original poster meant is not that there is a race condition in Tomcat, but in his own web application. Maybe we should try to point him into the direction of fixing the problem. So there I go: - When it hangs, if on Unix/Linux, kill -QUIT your Tomcat process, and you will get some stack traces. - Maybe they will tell you something. If they do, you're lucky. Otherwise, post them: maybe they will tell us something. At least, you will see how many threads there are, and their state (e.g. waiting for a lock). Good luck! Antonio Fiol Shapira, Yoav wrote: Hi, I highly doubt you've stumbled on a race condition in the tomcat connector implementation. Nonetheless, if you can supply a small WAR that leads to the problem you've described, we'll be glad to test it, and if your problem is reproducible rest assured it will be fixed immediately, as that would be more important than the other stuff currently open in bugzilla. Yoav Shapira Millennium Research Informatics -Original Message- From: rlipi [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 3:26 AM To: 'Tomcat Users List' Subject: RE: How to limit time for Connector threads? Yes, I did it. But it is not solution. Server doesn't answer slowly or for only some requests. It doesn't answer at all. It means that treads are not terminated and resources are not released. Sometimes, server doesn't answer without All threads are currently busy exception. That is why I think that the problem is some death lock. Lipi -Original Message- From: STOCKHOLM, Raymond [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 8:56 AM To: Tomcat Users List Subject: RE: How to limit time for Connector threads? Maybe you should increase the number of threads in your connector. check attribut maxProcessors in your server.xml In this example, I set it to 500 instead of 75 (default value) Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=80 minProcessors=30 maxProcessors=500 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / -Message d'origine- De : rlipi [mailto:[EMAIL PROTECTED] Envoyé : jeudi 6 mai 2004 08:40 À : 'Tomcat Users List' Objet : How to limit time for Connector threads? Hallo, is it possible in any way to limit time for threads that realize user requests? Sometimes (once a day in average), the Tomcat 5.0.19 server doesn't answers. The reason is in error message All threads are currently busy. Probably there is a bug in the web application. Some kind of synchronization death lock, I think. But localization of this bug is very hard. So, termination (and release of all resources) of long time threads can be a work around. Thank you for any suggestions, Lipi. - 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] 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] smime.p7s Description: S/MIME Cryptographic Signature
RE: Question about memory
I've profiled and tested the new monitor plugin for JMeter. under constant load, the memory usage of jmeter is flat :) OptimizeIt really helps achieve flat memory usage under constant load. JMeter has an old mailer that will send out EMails if a set number of requests fail, so JMeter is usable as a monitor. I couldn't decide on how I wanted to implement alert/notification, so for now I've put that off until I get inspired or come up with a solution I like. peter Randall Svancara [EMAIL PROTECTED] wrote: I remember you talking about adding that functionality to jmeter. It sounds really kewl. I need to try it!! - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
timestamp on catalina.out different from system time (approximately 1 hour difference)
Hi Everyone, timestamp on catalina.out is approximately 1 hour different from the system time, any reason as to why ? using tomcat 4.1.18 and jdk 1.4.1_02 here is a sample output - promptdate Thu May 6 11:22:18 PDT 2004 // from catalina.out May 6, 2004 10:22:19 AM org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached Thanks Harish
Re: Question about memory
Yang Xiao wrote: Hi, I have development set to false and fork to true, tomcat still doesn't release the memory, any ideas? Thanks, Yang -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:32 AM To: Tomcat Users List Subject: RE: Question about memory Just a silly question, but don't you also need to perform some additional production configuration in your web.xml by setting fork equal to true and developement equal to false. It explains it on this page here: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html#Production %20Configuration I made some similar modifications and I noticed that tomcat started to release the memory when the server was not as busy. Randall -Original Message- From: Yang Xiao [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 9:07 AM To: Tomcat Users List Subject: Question about memory Hi list, I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2. I did a simple load testing with JMeter last night and stopped it just before I went home, so right now there's no incoming request whatsoever, but TOP still shows heavy memory usage and swapping, it looks like even though the load has subsided, Tomcat has not released the memory, what can I do except restart the Tomcat instances to release the memory? I'm not sure if this is a valid question, so I apologize if I seem to be lack of some basic understanding of how things work. Thanks in advance. Also the tomcats are started with -Xms64 -Xmx256 Yang Here's the top output 11:01:35 up 2 days, 15:28, 2 users, load average: 0.65, 0.20, 0.07 381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped CPU states: cpuusernice systemirq softirq iowaitidle total1.0%0.0% 56.1% 0.0% 0.0%0.0% 42.7% Mem: 513292k av, 505136k used,8156k free, 0k shrd, 64872k buff 280548k active, 208500k inactive Swap: 1044216k av, 52k used, 515328k free7388k cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND 8333 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8335 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:03 0 jsvc 8337 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8338 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8340 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8570 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8571 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8572 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8573 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8589 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8596 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8601 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8604 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8607 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8610 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8612 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8616 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8624 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8631 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8633 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8646 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8684 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8689 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8692 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8695 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8697 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8699 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8700 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8703 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8705 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8707 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8709 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8714 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8717 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8720 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8721 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8726 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8729 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8731 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8734 tomcat16 0 203M 158M 80744 S
RE: How to limit time for Connector threads?
Hi, What the original poster meant is not that there is a race condition in Tomcat, but in his own web application. I don't think so, but either one of us could be misinterpreting the original post. Yoav Shapira 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: Question about memory [commenting on hijacking]
Peter Lin wrote: I've profiled and tested the new monitor plugin for JMeter. under constant load, the memory usage of jmeter is flat :) OptimizeIt really helps achieve flat memory usage under constant load. JMeter has an old mailer that will send out EMails if a set number of requests fail, so JMeter is usable as a monitor. I couldn't decide on how I wanted to implement alert/notification, so for now I've put that off until I get inspired or come up with a solution I like. peter Randall Svancara [EMAIL PROTECTED] wrote: I remember you talking about adding that functionality to jmeter. It sounds really kewl. I need to try it!! - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard Hey guys, Not meaning to gripe on you or anything like that, but just wanted to let you know you are erasing the original thread at this point, and it is becoming a different context. Again, don't mean to sound nitpicky, just trying to help the list with the issue of thread hijacking. Apologies if I affend either one of you. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
pre-compiled jsp files: random weirdness
Hi Everyone, This happens in a very random manner - Jsp files get compiled but Tomcat does not display the newly compiled files. I am running Tomcat 4.1.18 on Solaris. Any any one tell me what is going on ?, Is there are flag set in tomcat to cache request ? or is this a known bug in 4.1.18 fixed in the latter release or any other reasons ?. Any information will be appreciated. Currently, I restart tomcat to fix this problem. Example: test123.jsp// jsp file and below is its content ... template:put name='body' content='/inc/home/home.jsp' / ... When you make changes to home.jsp, it gets compiled (can see the changes in work/Standalone/appname/..) but when test123.jsp is accessed, I see old content. Thanks Harish
Re: Question about memory
Wade Chandler wrote: Yang Xiao wrote: Hi, I have development set to false and fork to true, tomcat still doesn't release the memory, any ideas? Thanks, Yang -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:32 AM To: Tomcat Users List Subject: RE: Question about memory Just a silly question, but don't you also need to perform some additional production configuration in your web.xml by setting fork equal to true and developement equal to false. It explains it on this page here: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html#Production %20Configuration I made some similar modifications and I noticed that tomcat started to release the memory when the server was not as busy. Randall -Original Message- From: Yang Xiao [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 9:07 AM To: Tomcat Users List Subject: Question about memory Hi list, I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2. I did a simple load testing with JMeter last night and stopped it just before I went home, so right now there's no incoming request whatsoever, but TOP still shows heavy memory usage and swapping, it looks like even though the load has subsided, Tomcat has not released the memory, what can I do except restart the Tomcat instances to release the memory? I'm not sure if this is a valid question, so I apologize if I seem to be lack of some basic understanding of how things work. Thanks in advance. Also the tomcats are started with -Xms64 -Xmx256 Yang Here's the top output 11:01:35 up 2 days, 15:28, 2 users, load average: 0.65, 0.20, 0.07 381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped CPU states: cpuusernice systemirq softirq iowaitidle total1.0%0.0% 56.1% 0.0% 0.0%0.0% 42.7% Mem: 513292k av, 505136k used,8156k free, 0k shrd, 64872k buff 280548k active, 208500k inactive Swap: 1044216k av, 52k used, 515328k free7388k cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND 8333 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8335 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:03 0 jsvc 8337 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8338 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8340 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8570 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8571 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8572 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8573 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8589 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8596 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8601 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8604 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8607 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8610 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8612 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8616 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8624 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8631 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8633 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8646 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8684 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8689 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8692 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8695 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8697 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8699 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8700 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8703 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8705 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8707 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8709 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8714 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8717 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8720 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8721 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8726 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8729 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8731 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8734 tomcat
where to define path to workers2.properties
hi tomcat-users i have installed and running apache/tomcat/jk2 on a linux-box. in the meantime i updated apache and because i use a directory with version-number, the path to the apache-rootdir changed. now my mod_jk2-module searches the workers2.properties configfile still in the old apache-directory. can i anywhere define the path to the workers2.properties file? i found some examples for windows where the path is written to the registry, but no example for linux thanks and greetings stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
corrupted input stream when posted from pdf form
Hi tomcat-users I am using adobe pdf (e-forms) to submit large form with lots of data and everything works fine until amount of data reach certain size. After then I keep getting zeros instead the data pdf form submitted. Same thing works well on IBM websphere. ' thanks and regards ljubisa
RE: where to define path to workers2.properties
Hi, By default it's your ${serverRoot}/conf dir, but you can do this LoadModule jk2_module modules/mod_jk2.so JkSet config.file /usr/local/apache/conf/workers2.propertie yang -Original Message- From: Stefan Burkard [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 3:14 PM To: [EMAIL PROTECTED] Subject: where to define path to workers2.properties hi tomcat-users i have installed and running apache/tomcat/jk2 on a linux-box. in the meantime i updated apache and because i use a directory with version-number, the path to the apache-rootdir changed. now my mod_jk2-module searches the workers2.properties configfile still in the old apache-directory. can i anywhere define the path to the workers2.properties file? i found some examples for windows where the path is written to the registry, but no example for linux thanks and greetings stefan - 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: Form method always a get.
Yeah, but he is putting that as href in a link. If it's in a onclick event, I would let it pass:). Ask the OP to see if he fixed it. Cheers -Yan -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: May 6, 2004 10:10 To: Tomcat Users List Subject: RE: Form method always a get. ??? He says that the error was the same when using submit buttons and you say he should use it. AFAIK your explanation is wrong. If you submit a form with javascript (even if triggered by a link) it uses (should use ?) the method type that is given in the form. -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 5:52 PM To: 'Tomcat Users List' Subject: RE: Form method always a get. As per previous post, use a submit button. You are using links, that's why your servlet thinks it's a GET. Is button out of question for you? -Original Message- From: Adam Gruszynski [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 1:13 PM To: Tomcat Users List Subject: RE: Form method always a get. Did that already with the same result. I do use netbeans... I don't know if that makes a difference. - 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: Question about memory
-Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 2:55 PM To: Tomcat Users List Subject: Re: Question about memory Yang Xiao wrote: Hi, I have development set to false and fork to true, tomcat still doesn't release the memory, any ideas? Thanks, Yang -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:32 AM To: Tomcat Users List Subject: RE: Question about memory Just a silly question, but don't you also need to perform some additional production configuration in your web.xml by setting fork equal to true and developement equal to false. It explains it on this page here: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper- howto.html#Production %20Configuration I made some similar modifications and I noticed that tomcat started to release the memory when the server was not as busy. Randall -Original Message- From: Yang Xiao [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 9:07 AM To: Tomcat Users List Subject: Question about memory Hi list, I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2. I did a simple load testing with JMeter last night and stopped it just before I went home, so right now there's no incoming request whatsoever, but TOP still shows heavy memory usage and swapping, it looks like even though the load has subsided, Tomcat has not released the memory, what can I do except restart the Tomcat instances to release the memory? I'm not sure if this is a valid question, so I apologize if I seem to be lack of some basic understanding of how things work. Thanks in advance. Also the tomcats are started with -Xms64 -Xmx256 Yang Here's the top output 11:01:35 up 2 days, 15:28, 2 users, load average: 0.65, 0.20, 0.07 381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped CPU states: cpuusernice systemirq softirq iowaitidle total1.0%0.0% 56.1% 0.0% 0.0%0.0% 42.7% Mem: 513292k av, 505136k used,8156k free, 0k shrd, 64872k buff 280548k active, 208500k inactive Swap: 1044216k av, 52k used, 515328k free7388k cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND 8333 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8335 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:03 0 jsvc 8337 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8338 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8340 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8570 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8571 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8572 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8573 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8589 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8596 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8601 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8604 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8607 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8610 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8612 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8616 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8624 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8631 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8633 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8646 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8684 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8689 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8692 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8695 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8697 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8699 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8700 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8703 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8705 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8707 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8709 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8714 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8717 tomcat16 0 203M 158M 80744 S 0.0 31.5
Re: Form method always a get.
Yansheng Lin wrote: Yeah, but he is putting that as href in a link. If it's in a onclick event, I would let it pass:). Ask the OP to see if he fixed it. Cheers -Yan -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: May 6, 2004 10:10 To: Tomcat Users List Subject: RE: Form method always a get. ??? He says that the error was the same when using submit buttons and you say he should use it. AFAIK your explanation is wrong. If you submit a form with javascript (even if triggered by a link) it uses (should use ?) the method type that is given in the form. -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 5:52 PM To: 'Tomcat Users List' Subject: RE: Form method always a get. As per previous post, use a submit button. You are using links, that's why your servlet thinks it's a GET. Is button out of question for you? -Original Message- From: Adam Gruszynski [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 1:13 PM To: Tomcat Users List Subject: RE: Form method always a get. Did that already with the same result. I do use netbeans... I don't know if that makes a difference. - 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] I haven't seen the original post, but the user can use his access log and determine if a GET or POST was actually submitted to the server or not. If it is actually a GET then it is OT for this list and should be taken up with the browser project or manufacturer. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Starting Tomcat from Apache...
The real question is has anyone gotten it work work in Linux! It always seemed odd to me that it worked in Windows but not Linux.. ;) Ive got a couple how-to's on my site http://www.gregoire.org/howto/ One of which shows how to do inprocess with Win32 and Tomcat 4x. I would really like to add one for Linux and Tomcat 4 or 5. Dale, Matt wrote: Excellent, shall just have to wait on the next release of tomcat then. It was the latest JK2 that I was using with no success but shall be over the moon if this works. Ta Matt -Original Message- From: Peter Rossbach [mailto:[EMAIL PROTECTED] Sent: 06 May 2004 18:51 To: Tomcat Users List Subject: Re: Starting Tomcat from Apache... Hello, the JNI working very well, but you must use a mod_jk2 2.0.4 and Tomcat Release greater than 5.0.20 Regards Peter JimmiSeven Productions Inc. schrieb: That's what I think as well... that inProcess option is just a waste of time! I hope someone can prove me wrong though! Has anyone actually gotten that to work? - Original Message - From: Dale, Matt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; JimmiSeven Productions Inc. [EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:48 AM Subject: RE: Starting Tomcat from Apache... In theory you should be able to do this with JK2 in inprocess mode. But I'm fairly confident that this doesnt work at all so you'd have to do it with your rc startup scripts. -Original Message- From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED] Sent: 06 May 2004 16:33 To: [EMAIL PROTECTED] Subject: Starting Tomcat from Apache... Looking to find out how to start up Tomcat automatically when I start up Apache? TIA - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Directory recursion with mod_jk2.
I'm trying to configure Apache2 with mod_jk2 on Linux to be able to process all files with a .cfm extension in all directories on the server. The cfm is used for the Coldfusion servlet which is installed in the ROOT context. I have tried the following but it only runs jsp files in the first folder level. Location /*.cfm JkUriSet worker ajp13:localhost:8009 /Location If I add another location with /*/*.cfm then it completely forwards me into tomcat but at least the cfm files run ok. I would like to be able to run files in the following paths: http://servername/home.cfm http://servername/test/home.cfm http://servername/test/test/home.cfm Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Looking for a HOW-TO for connecting apache to tomcat 5
Can anyone send me a link for any info on this. Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Looking for a HOW-TO for connecting apache to tomcat 5
Hi, Can anyone send me a link for any info on this. http://wiki.apache.org/jakarta-tomcat/Tomcat_2fLinks Yoav Shapira 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]
(newbie q) Connector vs running standalone Tomcat as root
I'd like to hear people's opinions on the best way to have Tomcat accessible via standard ports (80 and 443). As I understand it, under Linux (and other unixes), ports 1000 must be run as root. I've also read that there are some difficulties running Tomcat as root. I gather that the alternative is to run Tomcat via a connector from Apache. I have no particular need to run Apache - nearly everything on the site I'm putting together requires Tomcat. Is running Tomcat as a root process really impossible and/or problematic (under Linux)? Are there any other downsides to running Tomcat as a standalone server? Thanks bw - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: (newbie q) Connector vs running standalone Tomcat as root
commons daemon three machines two TAOLinux Tomcat 5.0.19 one RH9 Tomcat 4.1.29 Working fine. For overkill here is a write-up I did for another poster. How To set up RH9 and clones to start automatically and use port 80 with a non root user. If you have not created the user that you plan to specify in the script then do this first. Follow the directions under Tomcat setup located at: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html This will create the executable needed by the script to start Tomcat. If you followed the directions you will find the file jsvc in $CATALINA_HOME/bin In the$CATALINA_HOME/bin/jsvc-src/native directory there is a file named Tomcat.sh or if you have the non Alpha package both a Tomcat.sh and Tomcat5.sh For this How To we are using TC5. I renamed my file to tomcat to match the other files in init.d #cp $CATALINA_HOME/bin/jsvc-src/native/Tomcat5.sh /etc/init.d/tomcat #cd /etc/init.d #vi tomcat OR your editor of choice Now edit the file to contain the proper environment setting for your machine. When you are done it will look something like this: # Adapt the following lines to your configuration JAVA_HOME=/tomcat/java CATALINA_HOME=/tomcat/tc5 DAEMON_HOME=/tomcat/tc5/bin TOMCAT_USER=tomcat TMP_DIR=/var/tmp CATALINA_OPTS= CLASSPATH=\ $JAVA_HOME/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar case $1 in start) # # Start Tomcat # $DAEMON_HOME/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$TMP_DIR \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ -Xms256m \ -Xmx384m \ org.apache.catalina.startup.Bootstrap # # To get a verbose JVM #-verbose \ # To get a debug of jsvc. #-debug \ ;; stop) # # Stop Tomcat # PID=`cat /var/run/jsvc.pid` kill $PID ;; *) echo Usage tomcat start/stop exit 1;; esac This is for an install of Tomcat 5 to the directory of /tomcat/tc5 The java home dir is /tomcat/java If you followed the install directions your jsvc executable(DAEMON_HOME) will be in /tomcat/tc5/bin ($CATALINA_HOME/bin) if not then do a search for jsvc. If you do not have the Tomcat5 version then change the line: org.apache.catalina.startup.BootstrapService to this: org.apache.catalina.startup.Bootstrap I have added two setting for my memory: -Xms256m \ -Xmx384m \ There are other way to set this in the file but mine works for me so I left it alone. Set the values to meet your needs or delete if you plan to run the default. Now while you are still in the init.d directory #./tomcat start tomcat should start up and if you do a ps -ax you will see jsvc listed. If you do then it's all down hill from here. #cd /etc/rc3.d #ln -s ../init.d/tomcat /etc/rc3.d/S15tomcat #ln -s ../init.d/tomcat /etc/rc4.d/S15tomcat #ln -s ../init.d/tomcat /etc/rc5.d/S15tomcat Now to make life a little easier #ln -s /etc/init.d/tomcat /usr/sbin/tomcat Now from any prompt enter #tomcat stop or #tomcat start to stop/start tomcat. Just a note: The httpd starts at S15 also. If you are running both Tomcat and Apache set this to either 16 to start it after Apache or 14 to start it before Apache. I only run Tomcat so I used 15. And just to let those who don't know only files that are named SXXsomething, where XX is a two digit number that indicates the starting order of the files, are started. The file with a KXXxx are not started. And yes that is an upper case S or it will be ignored. Good luck and watch for typos. Doug www.parsonstechnical.com - Original Message - From: Barnet Wagman [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, May 06, 2004 4:45 PM Subject: (newbie q) Connector vs running standalone Tomcat as root I'd like to hear people's opinions on the best way to have Tomcat accessible via standard ports (80 and 443). As I understand it, under Linux (and other unixes), ports 1000 must be run as root. I've also read that there are some difficulties running Tomcat as root. I gather that the alternative is to run Tomcat via a connector from Apache. I have no particular need to run Apache - nearly everything on the site I'm putting together requires Tomcat. Is running Tomcat as a root process really impossible and/or problematic (under Linux)? Are there any other downsides to running Tomcat as a standalone server? Thanks bw - 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: (newbie q) Connector vs running standalone Tomcat as root
On Thu, May 06, 2004 at 03:45:13PM -0500, Barnet Wagman wrote: : As I understand it, under Linux (and other unixes), ports 1000 must be : run as root. Yes and no. The port must be *bound* by root, at which point the process may switch to another user to perform the real work. : I gather that the alternative is to run Tomcat via a : connector from Apache. That's one of several options. Others range from proxying to f/w redirects to commons-daemon ... -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DB connection pool problem
Maybe yes, you could have problem with classpath env variable, I had have this problem with postgresql connector. Regards. Julian Rivera. Arora, Avinash wrote: Well I figured out the problem. The problem was that mysql-connector.jar was not in common/lib of tomcat, but it I had placed in the WEB-INF/lib of my application. Thanks for every body's suggestion. Also just asking curiosity if we keep same jar in both WEB-INF/lib and common/lib, will it create some problem. Thanks. Avinash Arora -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 4:45 PM To: Tomcat Users List Subject: RE: DB connection pool problem Have you tried to put the configuration text in GlobalNamingResources instead of context block? To me, the message tells that the web.xml and java code is fine. The server.xml is not edited correctly. in you server.xml, you put ResourceParams name=jdbc/conversion, but where is the resource jdbc/conversion? -Original Message- From: Arora, Avinash [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 4:07 PM To: Daxin Zuo; Tomcat Users List Subject: RE: DB connection pool problem Hi, Sorry I was messing up my code by making several changes. If I add that statement, I get the following SQL exception is generated Cannot create JDBC driver of class '' for connect URL 'null'. Any idea about what corrections I need to make. Avinash Arora -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 4:29 PM To: Tomcat Users List Subject: RE: DB connection pool problem You have to add con = dataSource.getConnection(); after dataSource = (DataSource)ctx.lookup(jdbc/conversion); -Original Message- From: Arora, Avinash [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 3:54 PM To: David Smith; Tomcat Users List Subject: RE: DB connection pool problem Sorry for creating the confusion. Actually I was seeing the connection object to be null for long time. But at last moment I made those silly changes to present it in a better way. Sorry about it. But now I printing the connection object and finding it to be null. I cannot understand, the reason for connection object to be null, even when datasource object is not null. Is it because that I am not able to connect to database? If yes what could be the reason. If I specify the attributes, using Direct JDBC by using Class.forName() and DriverManager.getConnection(), I can connect to data base and read all the values. But the problem comes when I use Connection pooling. Where shuld I look for correction?? -- Part of my code and JSP o/p - public LinkedList selectCP(){ LinkedList ll = new LinkedList(); Connection con = null; Statement stmt = null; ResultSet rs = null; DataSource dataSource = null; try{ Context init = new InitialContext(); Context ctx = (Context) init.lookup(java:comp/env); dataSource = (DataSource)ctx.lookup(jdbc/conversion); ll.add(dataSource object is); ll.add(dataSource); } catch(NamingException e){ System.out.println(Exception thrown is+e.getMessage()); ll.add(Naming Exception thrown); } finally{ if(dataSource == null){ ll.add(DataSource object is null); return ll; } else{ ll.add(Data source object is not null); } } try{ ll.add(Inside try.); ll.add(con is); ll.add(con); if(con == null){ ll.add(Inside try. Connection object found to be null); ll.add(con); return ll; } else{ ll.add(Connection object inside else is); ll.add(con);} } } catch(SQLException e) { System.err.println(SQL EXCEPTION+e.getMessage()); ll.add(SQL Exception ); ll.add(e.getMessage()); } catch(Exception e) { System.err.println( class not found exception+e.getMessage()); ll.add(Exception generated:); ll.add(e.getMessage()); } finally{ if(con == null) ll.add(Connection object is null); } try{ stmt.close(); } catch(Exception e){} try{ rs.close(); } catch(Exception e){} try{ con.close(); } catch(Exception e){} return ll; } ---O/P-- --- I am pasting the ll obtained on browser-- [dataSource object is, [EMAIL PROTECTED], Data source object is not null, Inside try., con is, null, Inside try.
Include file?
Hi, I was wondering if you can use include in the server.xml. What I want to do is to define a bunch of different virtual hosts within my tomcat instance, but don't want to have to constantly change the server.xml. Is this possible. I've searched the archives and the web and I don't see anything telling me on way or the other. Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mod-jk2 binaries availability for Apache 2.0.49
Hi, Does anyone know when mod-jk2 binaries will be available for Apache 2.0.49 for Red Hat Linux 9.0 Kernel 2.4.20-8. Thanks Asif - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mod-jk2 availability for Apache 2.0.49
Hi, Does anyone know when mod-jk2 binaries will be available for Apache 2.0.49 for Red Hat Linux 9.0 Kernel 2.4.20-8. Thanks Asif - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Include file?
Look on the Ant-user list for entity includes. should work for what you need. Jake Quoting Steven Garrett [EMAIL PROTECTED]: Hi, I was wondering if you can use include in the server.xml. What I want to do is to define a bunch of different virtual hosts within my tomcat instance, but don't want to have to constantly change the server.xml. Is this possible. I've searched the archives and the web and I don't see anything telling me on way or the other. Thanks, Steve - 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: Include file?
cool, hope it works out. Thanks!! -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 5:40 PM To: Tomcat Users List Subject: Re: Include file? Look on the Ant-user list for entity includes. should work for what you need. Jake Quoting Steven Garrett [EMAIL PROTECTED]: Hi, I was wondering if you can use include in the server.xml. What I want to do is to define a bunch of different virtual hosts within my tomcat instance, but don't want to have to constantly change the server.xml. Is this possible. I've searched the archives and the web and I don't see anything telling me on way or the other. Thanks, Steve - 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: Include file?
thanks again, but that didn't have what I was looking for. Seems to be more for doing builds and it isn't really what I'm searching for. My question is can I use include in the tomcat server.xml in the same fashion that I can in the httpd.conf file? And if so what's the correct syntax for doing this? Thanks, Steve -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 5:40 PM To: Tomcat Users List Subject: Re: Include file? Look on the Ant-user list for entity includes. should work for what you need. Jake Quoting Steven Garrett [EMAIL PROTECTED]: Hi, I was wondering if you can use include in the server.xml. What I want to do is to define a bunch of different virtual hosts within my tomcat instance, but don't want to have to constantly change the server.xml. Is this possible. I've searched the archives and the web and I don't see anything telling me on way or the other. Thanks, Steve - 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: Mod-jk2 availability for Apache 2.0.49
I have got binaries For RH9 httpd-2.0.40-21.9 Mod_jk.so and mod_jk2.so Email if you want them RP -Original Message- From: Asif Chowdhary [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 4:27 PM To: [EMAIL PROTECTED] Subject: Mod-jk2 availability for Apache 2.0.49 Hi, Does anyone know when mod-jk2 binaries will be available for Apache 2.0.49 for Red Hat Linux 9.0 Kernel 2.4.20-8. Thanks Asif - 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: Question about memory
Yang Xiao wrote: -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 2:55 PM To: Tomcat Users List Subject: Re: Question about memory Yang Xiao wrote: Hi, I have development set to false and fork to true, tomcat still doesn't release the memory, any ideas? Thanks, Yang -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:32 AM To: Tomcat Users List Subject: RE: Question about memory Just a silly question, but don't you also need to perform some additional production configuration in your web.xml by setting fork equal to true and developement equal to false. It explains it on this page here: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper- howto.html#Production %20Configuration I made some similar modifications and I noticed that tomcat started to release the memory when the server was not as busy. Randall -Original Message- From: Yang Xiao [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 9:07 AM To: Tomcat Users List Subject: Question about memory Hi list, I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2. I did a simple load testing with JMeter last night and stopped it just before I went home, so right now there's no incoming request whatsoever, but TOP still shows heavy memory usage and swapping, it looks like even though the load has subsided, Tomcat has not released the memory, what can I do except restart the Tomcat instances to release the memory? I'm not sure if this is a valid question, so I apologize if I seem to be lack of some basic understanding of how things work. Thanks in advance. Also the tomcats are started with -Xms64 -Xmx256 Yang Here's the top output 11:01:35 up 2 days, 15:28, 2 users, load average: 0.65, 0.20, 0.07 381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped CPU states: cpuusernice systemirq softirq iowaitidle total1.0%0.0% 56.1% 0.0% 0.0%0.0% 42.7% Mem: 513292k av, 505136k used,8156k free, 0k shrd, 64872k buff 280548k active, 208500k inactive Swap: 1044216k av, 52k used, 515328k free7388k cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND 8333 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8335 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:03 0 jsvc 8337 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8338 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8340 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8570 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8571 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8572 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8573 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8589 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8596 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8601 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8604 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8607 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8610 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8612 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8616 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8624 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8631 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8633 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8646 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8684 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8689 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8692 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8695 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8697 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8699 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8700 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8703 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8705 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8707 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8709 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8714 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8717 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8720 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8721 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8726 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8729 tomcat16 0 203M 158M 80744
Re: (newbie q) Connector vs running standalone Tomcat as root
The easier way is just leave tomcat listening on 8080 and add a port redirection rule using netfilter. - You just have to redirect incoming conections on port 80 to port 8080. - Add proxyPort=80 on the Connector tag in server.xml. Voila! You're done. Bytes DAC Barnet Wagman escribió: I'd like to hear people's opinions on the best way to have Tomcat accessible via standard ports (80 and 443). As I understand it, under Linux (and other unixes), ports 1000 must be run as root. I've also read that there are some difficulties running Tomcat as root. I gather that the alternative is to run Tomcat via a connector from Apache. I have no particular need to run Apache - nearly everything on the site I'm putting together requires Tomcat. Is running Tomcat as a root process really impossible and/or problematic (under Linux)? Are there any other downsides to running Tomcat as a standalone server? Thanks bw - 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: Encoding problems hwen using tomcat through mod_jk
Yansheng Lin escribió: In your apache conf file, you may want to specify the default encoding to be utf-8 instead of iso-8859-1. There may be other ways. Thank you, but it didn't work. Same result. Tried with: AddDefaultCharset on and AddDefaultCharset utf-8 and AddDefaultCharset iso8859-1 (yes, I've restarted apache) Diego. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jndi (jdbc) access out of container
yes, I now this - but it is two datasource (two configuration) Thanks On Thursday 06 May 2004 11:08 am, Matt Raible wrote: This is probably a better question for the Spring mailing list. But since it's really pretty easy - here's how I do it. All you really need to do is define a dataSource for your tests, and one for your WAR. I basically do this in a file named applicationContext-database.xml and use the one below for my tests: ?xml version=1.0 encoding=UTF-8? !DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN http://www.springframework.org/dtd/spring-beans.dtd; beans bean id=propertyConfigurer class=org.springframework.beans.factory.config.PropertyPlaceholderConfi gurer property name=locationvaluedatabase.properties/value/property /bean bean id=dataSource class=org.springframework.jdbc.datasource.DriverManagerDataSource property name=driverClassName value${hibernate.connection.driver_class}/value /property property name=url value${hibernate.connection.url}/value /property property name=username value${hibernate.connection.username}/value /property property name=password value${hibernate.connection.password}/value /property /bean /beans Then for running in Tomcat, I use Ant to bundle the following one in my WAR: ?xml version=1.0 encoding=UTF-8? !DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN http://www.springframework.org/dtd/spring-beans.dtd; beans !-- JNDI DataSource for J2EE environments -- bean id=dataSource class=org.springframework.jndi.JndiObjectFactoryBean property name=jndiNamevaluejava:comp/env/jdbc/appfuse/value/property /bean /beans HTH, Matt On May 6, 2004, at 2:54 AM, snpe wrote: On Wednesday 05 May 2004 10:50 pm, QM wrote: On Thu, May 06, 2004 at 12:44:57AM +, snpe wrote: : Can I access jndi out of container (from simple test application) ? In other words, you would like to access Tomcat's JNDI provider outside of a Tomcat-managed webapp? Not possible. This has been discussed on the list before. What is your end-goal here? There may be another way. I set jndi and jdbc and it wokr fine in web application (container), I want now test database with same configuration (oracle,hibernate,spring and tomcat 5.0.19) - I set spring context with direct jdbc datasource and create context in base TestCase (for now), but I think that ispossible use same configuration - I check cactus, yet Thanks - 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: Question about memory
-Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 6:34 PM To: Tomcat Users List Subject: Re: Question about memory Yang Xiao wrote: -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 2:55 PM To: Tomcat Users List Subject: Re: Question about memory Yang Xiao wrote: Hi, I have development set to false and fork to true, tomcat still doesn't release the memory, any ideas? Thanks, Yang -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 11:32 AM To: Tomcat Users List Subject: RE: Question about memory Just a silly question, but don't you also need to perform some additional production configuration in your web.xml by setting fork equal to true and developement equal to false. It explains it on this page here: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper- howto.html#Production %20Configuration I made some similar modifications and I noticed that tomcat started to release the memory when the server was not as busy. Randall -Original Message- From: Yang Xiao [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 9:07 AM To: Tomcat Users List Subject: Question about memory Hi list, I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2. I did a simple load testing with JMeter last night and stopped it just before I went home, so right now there's no incoming request whatsoever, but TOP still shows heavy memory usage and swapping, it looks like even though the load has subsided, Tomcat has not released the memory, what can I do except restart the Tomcat instances to release the memory? I'm not sure if this is a valid question, so I apologize if I seem to be lack of some basic understanding of how things work. Thanks in advance. Also the tomcats are started with -Xms64 -Xmx256 Yang Here's the top output 11:01:35 up 2 days, 15:28, 2 users, load average: 0.65, 0.20, 0.07 381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped CPU states: cpuusernice systemirq softirq iowait idle total1.0%0.0% 56.1% 0.0% 0.0%0.0% 42.7% Mem: 513292k av, 505136k used,8156k free, 0k shrd, 64872k buff 280548k active, 208500k inactive Swap: 1044216k av, 52k used, 515328k free 7388k cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND 8333 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8335 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:03 0 jsvc 8337 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8338 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8340 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8570 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8571 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8572 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8573 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8589 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8596 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8601 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8604 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8607 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8610 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8612 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8616 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8624 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8631 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8633 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8646 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8684 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8689 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8692 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:02 0 jsvc 8695 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8697 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8699 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8700 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8703 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8705 tomcat16 0 203M 158M 80744 S 0.0 31.5 0:00 0 jsvc 8707 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8709 tomcat15 0 203M 158M 80744 S 0.0 31.5 0:01 0 jsvc 8714
specifying location of confg file
Hi, How can we specify the location of config file, so that we don't have to hardcode it in our code. Thanks. Avinash Arora Avinash Arora -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 3:27 PM To: [EMAIL PROTECTED] Subject: tomcat-user Digest 6 May 2004 22:26:30 - Issue 4415 tomcat-user Digest 6 May 2004 22:26:30 - Issue 4415 Topics (messages 100374 through 100391): Re: Form method always a get. 100374 by: Wade Chandler 100375 by: Wade Chandler Re: Starting Tomcat from Apache... 100376 by: Paul Gregoire Directory recursion with mod_jk2. 100377 by: Brett Simpson Looking for a HOW-TO for connecting apache to tomcat 5 100378 by: Nathan Maves 100379 by: Shapira, Yoav (newbie q) Connector vs running standalone Tomcat as root 100380 by: Barnet Wagman 100381 by: Parsons Technical Services 100382 by: QM Re: DB connection pool problem 100383 by: Xtecuan! Ufo Senshi Dai Apolon Include file? 100384 by: Steven Garrett 100387 by: Jacob Kjome 100388 by: Steven Garrett 100389 by: Steven Garrett Mod-jk2 binaries availability for Apache 2.0.49 100385 by: Asif Chowdhary Mod-jk2 availability for Apache 2.0.49 100386 by: Asif Chowdhary 100390 by: Randy Re: Question about memory 100391 by: Wade Chandler Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]