Re: Finding Server URL?
On 6/23/05, Michael Jouravlev [EMAIL PROTECTED] wrote: On 6/23/05, Brad Johanson [EMAIL PROTECTED] wrote: The problem I'm running into is how the singleton can find the root URL/server URL (and port) for the Tomcat server in which it is running (for example, http://167.7.9.95:8080 or http://www.foo-co.com). Maybe InetAddress can help you? Thank you for the suggestion. That will give me an IP address for the machine (and DNS name if there is one) of one of the interfaces on the machine (the primary?). Like so: String IP=InetAddress.getLocalHost().getHostAddress(); This is what I'm actually doing right now to get the main IP/DNS. What it doesn't give me is the port on which tomcat is listening. That is specified in the conf/server.xml file, but I can't figure out how to access that information from within the servlet code. For now I'm passing it in as a system property, but this is not very elegant or portable. It would be nicer to just be able to ask Tomcat directly since it is already configured somewhere in the tomcat active state. -Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-connectors/jni/native/src network.c sslnetwork.c
mturk 2005/06/24 01:21:29 Modified:jni/native libtcnative.dsp tcnative.dsp jni/native/src network.c sslnetwork.c Added: jni/native/os/win32 ntpipe.c Log: Added NT Pipe network layer. The same will be done for AF_UNIX/AF_LOCAL. Revision ChangesPath 1.13 +4 -0 jakarta-tomcat-connectors/jni/native/libtcnative.dsp Index: libtcnative.dsp === RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/libtcnative.dsp,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- libtcnative.dsp 14 Jun 2005 11:55:54 - 1.12 +++ libtcnative.dsp 24 Jun 2005 08:21:29 - 1.13 @@ -196,6 +196,10 @@ # PROP Default_Filter # Begin Source File +SOURCE=.\os\win32\ntpipe.c +# End Source File +# Begin Source File + SOURCE=.\os\win32\system.c # End Source File # End Group 1.13 +4 -0 jakarta-tomcat-connectors/jni/native/tcnative.dsp Index: tcnative.dsp === RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/tcnative.dsp,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- tcnative.dsp 14 Jun 2005 11:55:54 - 1.12 +++ tcnative.dsp 24 Jun 2005 08:21:29 - 1.13 @@ -196,6 +196,10 @@ # PROP Default_Filter # Begin Source File +SOURCE=.\os\win32\ntpipe.c +# End Source File +# Begin Source File + SOURCE=.\os\win32\system.c # End Source File # End Group 1.1 jakarta-tomcat-connectors/jni/native/os/win32/ntpipe.c Index: ntpipe.c === /* Copyright 2000-2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** NT Pipes network wrapper * * @author Mladen Turk * @version $Revision: 1.1 $, $Date: 2005/06/24 08:21:29 $ */ #define _WIN32_WINNT 0x0500 #define STRICT #include windows.h #include winsock.h #include sddl.h #include tcn.h #include apr_thread_mutex.h #include apr_poll.h #ifdef TCN_DO_STATISTICS #include apr_atomic.h static volatile apr_uint32_t ntp_created = 0; static volatile apr_uint32_t ntp_closed = 0; static volatile apr_uint32_t ntp_cleared = 0; static volatile apr_uint32_t ntp_accepted = 0; void ntp_network_dump_statistics() { fprintf(stderr, NT Network Statistics ..\n); fprintf(stderr, Sockets created : %d\n, ntp_created); fprintf(stderr, Sockets accepted: %d\n, ntp_accepted); fprintf(stderr, Sockets closed : %d\n, ntp_closed); fprintf(stderr, Sockets cleared : %d\n, ntp_cleared); } #endif #define DEFNAME .\\PIPE\\TOMCATNATIVEPIPE #define DEFNAME_FMT .\\PIPE\\TOMCATNATIVEPIPE%08X%08X #define DEFSIZE 8192 #define DEFTIMEOUT 6 #define TCN_NTP_UNKNOWN 0 #define TCN_NTP_CLIENT 1 #define TCN_NTP_SERVER 2 typedef struct { apr_pool_t *pool; apr_socket_t *sock; /* Dummy socket */ OVERLAPPED rd_o; OVERLAPPED wr_o; HANDLE h_pipe; HANDLE rd_event; HANDLE wr_event; DWORD timeout; intmode; /* Client or server mode */ intnmax; char name[MAX_PATH+1]; SECURITY_ATTRIBUTES sa; } tcn_ntp_conn_t; static const char *NTSD_STRING = D: /* Discretionary ACL */ (D;OICI;GA;;;BG) /* Deny access to Built-in Guests */ (D;OICI;GA;;;AN) /* Deny access to Anonymous Logon */ (A;OICI;GRGWGX;;;AU) /* Allow read/write/execute to Authenticated Users */ (A;OICI;GA;;;BA) /* Allow full control to Administrators */ (A;OICI;GA;;;LS) /* Allow full control to Local service account */ (A;OICI;GA;;;SY);/* Allow full control to Local system */ static apr_status_t APR_THREAD_FUNC ntp_socket_timeout_set(apr_socket_t *sock, apr_interval_time_t t) { tcn_ntp_conn_t *con = (tcn_ntp_conn_t *)sock; if (t 0) con-timeout = INFINITE; else con-timeout =
cvs commit: jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni Local.java
mturk 2005/06/24 01:22:58 Modified:jni build.xml Added: jni/examples/org/apache/tomcat/jni Local.properties LocalServer.java jni/java/org/apache/tomcat/jni Local.java Log: Added Local network implementation and example. Revision ChangesPath 1.9 +4 -4 jakarta-tomcat-connectors/jni/build.xml Index: build.xml === RCS file: /home/cvs/jakarta-tomcat-connectors/jni/build.xml,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- build.xml 10 Jun 2005 17:15:55 - 1.8 +++ build.xml 24 Jun 2005 08:22:58 - 1.9 @@ -309,13 +309,13 @@ jvmarg value=-Djava.library.path=${tc.library.path}/ /java /target -target name=bioserver-example depends=examples -echo message=Running another Tomcat Native SSL Server example .../ -java dir=${examples.dir} classname=org.apache.tomcat.jni.BIOSSLServer +target name=locals-example depends=examples +echo message=Running Tomcat Native Local Server example .../ +java dir=${examples.dir} classname=org.apache.tomcat.jni.LocalServer fork=yes failonerror=${test.failonerror} +classpath refid=examples.classpath/ env key=PATH path=${tc.library.path}:${java.library.path}/ env key=Path path=${tc.library.path}:${java.library.path}/ -classpath refid=examples.classpath/ jvmarg value=-Djava.library.path=${tc.library.path}/ /java /target 1.1 jakarta-tomcat-connectors/jni/examples/org/apache/tomcat/jni/Local.properties Index: Local.properties === # Local properties local.max=10 # For NT Pipes use something like local.path=.\\PIPE\\test # For Unix Sockets use # local.path=/tmp/testsock 1.1 jakarta-tomcat-connectors/jni/examples/org/apache/tomcat/jni/LocalServer.java Index: LocalServer.java === package org.apache.tomcat.jni; import java.util.Properties; import java.io.*; import java.net.*; import java.lang.*; /** Local Socket server example * * @author Mladen Turk * @version $Revision: 1.1 $, $Date: 2005/06/24 08:22:58 $ */ public class LocalServer { public static String serverAddr = null; public static int serverNmax= 0; public static int serverNrun= 0; public static long serverPool = 0; private static Acceptor serverAcceptor = null; private static Object threadLock = new Object(); static { try { InputStream is = LocalServer.class.getResourceAsStream (/org/apache/tomcat/jni/Local.properties); Properties props = new Properties(); props.load(is); is.close(); serverAddr = props.getProperty(local.path, null); serverNmax = Integer.decode(props.getProperty(local.max, 0)).intValue(); } catch (Throwable t) { ; // Nothing } } public LocalServer() { int i; serverPool = Pool.create(0); try { serverAcceptor = new Acceptor(); serverAcceptor.start(); } catch (Exception e) { e.printStackTrace(); } } public static void incThreads() { synchronized(threadLock) { serverNrun++; } } public static void decThreads() { synchronized(threadLock) { serverNrun--; } } /* Acceptor thread. Listens for new connections */ private class Acceptor extends Thread { private long serverSock = 0; private long inetAddress = 0; private long pool = 0; public Acceptor() throws Exception { try { pool = Pool.create(LocalServer.serverPool); System.out.println(Accepting: + LocalServer.serverAddr); serverSock = Local.create(LocalServer.serverAddr, pool); int rc = Local.bind(serverSock, inetAddress); if (rc != 0) { throw(new Exception(Can't create Acceptor: bind: + Error.strerror(rc))); } Local.listen(serverSock, LocalServer.serverNmax); } catch( Exception ex ) { ex.printStackTrace(); throw(new Exception(Can't create Acceptor)); } } public void run() { int i = 0; try { while (true) {
cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ant/jmx - New directory
pero2005/06/24 04:51:37 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ant/jmx - New directory - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/catalina/src/bin catalina-tasks.xml jmxaccessor-tasks.xml
pero2005/06/24 04:53:42 Added: catalina/src/bin catalina-tasks.xml jmxaccessor-tasks.xml Log: Add new jmx remote ant support Revision ChangesPath 1.1 jakarta-tomcat-catalina/catalina/src/bin/catalina-tasks.xml Index: catalina-tasks.xml === !-- XML file for importing Catalina ant tasks. import file=${catalina.home}/bin/catalina-tasks.xml/ -- project name=catalina-tasks descriptionCatalina Ant Manager and JSPC Tasks/description !-- set catalina.home if it's not already set -- dirname property=catalina.home.bin.dir file=${ant.file.catalina-tasks}/ property name=catalina.home value=${catalina.home.bin.dir}/../ taskdef resource=org/apache/catalina/ant/catalina.tasks classpath fileset file=${catalina.home}/bin/commons-logging-api.jar/ fileset file=${catalina.home}/common/lib/jasper-compiler.jar/ fileset file=${catalina.home}/common/lib/jasper-runtime.jar/ fileset file=${catalina.home}/common/lib/servlet-api.jar/ fileset file=${catalina.home}/server/lib/catalina-ant.jar/ /classpath /taskdef /project 1.1 jakarta-tomcat-catalina/catalina/src/bin/jmxaccessor-tasks.xml Index: jmxaccessor-tasks.xml === !-- XML file for importing Catalina jmx ant tasks. import file=${catalina.home}/bin/jxmaccessor-tasks.xml/ -- project name=jmxaccessor-tasks descriptionCatalina Ant JMX Accessor Tasks/description !-- set catalina.home if it's not already set -- dirname property=catalina.home.bin.dir file=${ant.file.jmxaccessor-tasks}/ property name=catalina.home value=${catalina.home.bin.dir}/../ taskdef resource=org/apache/catalina/ant/jmx/jmxaccessor.tasks classpath fileset file=${catalina.home}/server/lib/catalina-ant.jar/ fileset file=${catalina.home}/server/lib/catalina-ant-jmx.jar/ /classpath /taskdef typedef name=jmxAccessorEquals classname=org.apache.catalina.ant.jmxJMXAccessorEqualsCondition classpath fileset file=${catalina.home}/server/lib/catalina-ant-jmx.jar/ /classpath /typedef /project - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/catalina build.xml
pero2005/06/24 04:54:21 Modified:catalina build.xml Log: Add new jmx remote ant support new catalina-ant-jmx.jar build Revision ChangesPath 1.81 +19 -3 jakarta-tomcat-catalina/catalina/build.xml Index: build.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/build.xml,v retrieving revision 1.80 retrieving revision 1.81 diff -u -r1.80 -r1.81 --- build.xml 18 Jan 2005 00:52:39 - 1.80 +++ build.xml 24 Jun 2005 11:54:21 - 1.81 @@ -542,7 +542,7 @@ !-- Executable Commands -- copy todir=${catalina.build}/bin - fileset dir=src/bin excludes=*-using-launcher.*,launcher.properties,catalina.xml / + fileset dir=src/bin excludes=*-using-launcher.*,launcher.properties,catalina.xml,*-tasks.xml / /copy fixcrlf srcdir=${catalina.build}/bin includes=*.sh eol=lf/ fixcrlf srcdir=${catalina.build}/bin includes=*.bat eol=crlf/ @@ -640,6 +640,9 @@ /target + + + target name=build-catalina-optional unless=build.tomcat.base !-- Compile internal server components -- javac srcdir=src/share destdir=${classes.dir} @@ -1018,7 +1021,7 @@ jar jarfile=${catalina.deploy}/server/lib/catalina-ant.jar fileset dir=${classes.dir} - include name=org/apache/catalina/ant/** / + include name=org/apache/catalina/ant/* / include name=org/apache/catalina/util/Base64.class / !-- Javadoc and i18n exclusions -- @@ -1028,7 +1031,20 @@ /fileset /jar -!-- Naming - Factory JAR File -- + !-- Catalina JMX Accessor Ant Tasks JAR File -- +jar jarfile=${catalina.deploy}/server/lib/catalina-ant-jmx.jar + fileset dir=${classes.dir} + + include name=org/apache/catalina/ant/jmx/* / + + !-- Javadoc and i18n exclusions -- +exclude name=**/package.html / +exclude name=**/LocalStrings_* / + + /fileset +/jar + + !-- Naming - Factory JAR File -- jar jarfile=${catalina.deploy}/common/lib/naming-factory.jar index=true fileset dir=${classes.dir} include name=org/apache/naming/** / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/webapps/docs changelog.xml developers.xml monitoring.xml
pero2005/06/24 04:55:02 Modified:webapps/docs changelog.xml developers.xml monitoring.xml Log: Add new jmx remote ant support - documentation Revision ChangesPath 1.316 +10 -1 jakarta-tomcat-catalina/webapps/docs/changelog.xml Index: changelog.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/changelog.xml,v retrieving revision 1.315 retrieving revision 1.316 diff -u -r1.315 -r1.316 --- changelog.xml 9 Jun 2005 20:38:30 - 1.315 +++ changelog.xml 24 Jun 2005 11:55:02 - 1.316 @@ -29,6 +29,15 @@ section name=Tomcat 5.5.10 (yoavs) subsection name=General changelog + add + Add JMX remote ant task to control tomcat MBeanserver via ant scripts. + Ant lib is included at server/lib/catalina-ant-jmx.jar and documentation + is added to a href=monitoring.htmlMonitoring and Managing Tomcat How-To/a (pero) + /add + fix +bug34361/bug: Integrate better antlib and import support for +catalina manager tasks [Modified patch from Daniel Santos] (pero) + /fix fix StoreConfig save now the Connector.sslProtocol attribute. (pero) /fix @@ -58,7 +67,7 @@ ClusterListener more than one Cluster Valves - better subclass support - - change a lot of existing API's (pero) + - change a lot of existing Cluster API's (pero) /update add Add Apache Portable Runtime JNI wrapper and helper API (mturk) 1.8 +1 -1 jakarta-tomcat-catalina/webapps/docs/developers.xml Index: developers.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/developers.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- developers.xml22 Nov 2004 15:50:57 - 1.7 +++ developers.xml24 Jun 2005 11:55:02 - 1.8 @@ -40,7 +40,7 @@ liJean-Frederic Clere (jfclere): Connectors/li liKin-Man Chung (kinman): Jasper/li liMladen Turk (mturk): Connectors/li - liPeter Rossbach (pero): Catalina, Clustering/li + liPeter Rossbach (pero): Catalina, Clustering, JMX/li liRemy Maucherat (remm): Catalina, Connectors, Docs/li liTim Funk (funkman): Catalina, Docs/li liYoav Shapira (yoavs): Docs, JMX, Catalina, balancer, Release Manager/li 1.2 +779 -10 jakarta-tomcat-catalina/webapps/docs/monitoring.xml Index: monitoring.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/monitoring.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- monitoring.xml7 Oct 2004 18:16:05 - 1.1 +++ monitoring.xml24 Jun 2005 11:55:02 - 1.2 @@ -7,6 +7,7 @@ project; properties +author email=[EMAIL PROTECTED]Peter Rossbach/author author email=[EMAIL PROTECTED]Remy Maucherat/author titleMonitoring and Managing Tomcat/title /properties @@ -15,30 +16,798 @@ section name=Introduction - - + pMonitoring is a very important question today. Looking inside the running +server, grab some statistic data or reconfigure some aspects are +daliy adminstration tasks./p + /section section name=Enabling JMX Remote - pThe Sun website includes the list of options and how to configure JMX Remote on Java 5: +pThe Sun website includes the list of options and how to configure JMX Remote on Java 5: a href=http://java.sun.com/j2se/1.5.0/docs/guide/management/agent.html; http://java.sun.com/j2se/1.5.0/docs/guide/management/agent.html/a. - /p +/p +pFor quick installation you find here a short installation guide:/p +pAdd the following parameters to your tomcat startup script: +source +set CATALINA_OPTS=-Dcom.sun.management.jmxremote \ +-Dcom.sun.management.jmxremote.port=%my.jmx.port% \ +-Dcom.sun.management.jmxremote.ssl=false \ +-Dcom.sun.management.jmxremote.authenticate=false +/source +/p +p +ol +liWhen you think authorisation is a good, add and change this : +source +-Dcom.sun.management.jmxremote.authenticate=true +-Dcom.sun.management.jmxremote.password.file=..\conf\jmxremote.password +-Dcom.sun.management.jmxremote.access.file=..\conf\jmxremote.access +/source +/li +liedit the access allow file em$CATALINA_BASE/conf/jmxremote.access/em : +source +monitorRole readonly +controlRole readwrite +/source +/li +liedit the password file
Proposal to incorporate Timer and WorkManager implementation in Tomcat
Hi Folks, I recently came to know that application threads are not recommended on J2EE/Servlet engine environments. How ever, there could be many applications, components which need to reside on servlet engine or a J2EE container but still need to spawn their own threads (contradictory needs ). What is your take on this? I have posted it on certain forums. But did not get many positive responses. Please see my posting and one response on IBM developer works in this URL : http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?forum=244thr ead=83882cat=10 I also thought of an idea: I want to start an open source project to implement the JSR for Timer and Work Manager for Application Servers (http://dev2dev.bea.com/wlplatform/commonj/twm.html ) Question to you folks would be. If I successfully build and release this component under Apache license, would be guys be interested to integrate? Hoping to get some early and positive responses to my mail. Regards, Khushnood Naqvi CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS End of Disclaimer INFOSYS***
cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net AprEndpoint.java
remm2005/06/24 06:14:29 Modified:util/java/org/apache/tomcat/util/net AprEndpoint.java Log: - Better default maxThreads (20 is likely a bit too low). - Use wait/notify when running out of threads rather than sleep, as it does not mean the same as for the regular connector. Revision ChangesPath 1.50 +5 -7 jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/AprEndpoint.java Index: AprEndpoint.java === RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/AprEndpoint.java,v retrieving revision 1.49 retrieving revision 1.50 diff -u -r1.49 -r1.50 --- AprEndpoint.java 24 Jun 2005 10:25:25 - 1.49 +++ AprEndpoint.java 24 Jun 2005 13:14:28 - 1.50 @@ -156,7 +156,7 @@ /** * Maximum amount of worker threads. */ -protected int maxThreads = 20; +protected int maxThreads = 60; public void setMaxThreads(int maxThreads) { this.maxThreads = maxThreads; } public int getMaxThreads() { return maxThreads; } @@ -663,12 +663,9 @@ Worker workerThread = createWorkerThread(); while (workerThread == null) { try { -// Wait a little for load to go down: as a result, -// no accept will be made until the concurrency is -// lower than the specified maxThreads, and current -// connections will wait for a little bit instead of -// failing right away. -Thread.sleep(100); +synchronized (workers) { +workers.wait(); +} } catch (InterruptedException e) { // Ignore } @@ -687,6 +684,7 @@ synchronized (workers) { workers.push(workerThread); curThreadsBusy--; +workers.notify(); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35497] New: - tomcat5 stops responding to requests, leaves zombie processes, no response to TERM signal
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35497. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35497 Summary: tomcat5 stops responding to requests, leaves zombie processes, no response to TERM signal Product: Tomcat 5 Version: 5.5.9 Platform: Other OS/Version: Linux Status: NEW Severity: major Priority: P2 Component: Unknown AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] Installation details: Tomcat standalone servlet container (standard installation from source) jdk1.5.0_03 Red Hat Enterprise Linux 3 Additional JARs in shared/lib: Sun AppServer SAAJ implementation (saaj-api.jar, saaj-impl.jar) JSP standard taglib JavaMail Server Use Pattern: development platform for a handful of programmers working on servlets simultaneously. Lots of undeploying and redeploying of applications as they change and need to be tested. Tomcat Invocation: started via the script included in bin/jsvc-src/native/Tomcat5.sh, slightly modified to support the restart command and installed in /etc/init.d/tomcat. Configuration: standard (nothing changed except hostname to IP on local network, port from 8080 to 80, etc.) Behavior: Twice now in the period of a week Tomcat has spontaneously stopped responding to requests (doesn't reject them, just times out). Servlet threads running in the background also stop. This includes the Tomcat test servlets, not just the servlets we are developing. Subsequently, the jsvc processes (there are two; one runs as uid root, the other as uid tomcat5, not sure why) do not respond to the TERM signal. They must be killed with the KILL signal and restarted before any server content (including static HTML) can be accessed. I doubt if this is of any significance, but I think it is strange that it has happened at almost exactly the same time of day in both cases (~16:30, system time). The behavior is sporadic and I have as yet been unable to produce it at will, but am working on it. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35497] - tomcat5 stops responding to requests, leaves zombie processes, no response to TERM signal
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35497. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35497 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||INVALID --- Additional Comments From [EMAIL PROTECTED] 2005-06-24 15:51 --- The issue is that on this (broken) OS, the thread which accepts new sockets disappears (so Tomcat becomes dead). See the release notes (RHEL 3 is based on RH 9): Tomcat on Linux: GLIBC 2.2 / Linux 2.4 users should define an environment variable: export LD_ASSUME_KERNEL=2.2.5 Redhat Linux 9.0 users should use the following setting to avoid stability problems: export LD_ASSUME_KERNEL=2.4.1 -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cvs commit: jakarta-tomcat-connectors/jk/native/common jk_uri_worker_map.c jk_uri_worker_map.h
My apologies, the incorrect dll was being tested. With so many releases in recent months, sometimes they get mixed up. When can we get this in an official release?;-) Thanks, Derrick From: Mladen Turk [EMAIL PROTECTED] Reply-To: Tomcat Developers List tomcat-dev@jakarta.apache.org To: Tomcat Developers List tomcat-dev@jakarta.apache.org Subject: Re: cvs commit: jakarta-tomcat-connectors/jk/native/common jk_uri_worker_map.c jk_uri_worker_map.h Date: Thu, 23 Jun 2005 09:43:37 +0200 Derrick Koes wrote: I tested yesterday's CVS head for compliance with session ID URL rewriting. This fails. The jsessionid is lost from the URL. Well, I tested that with the /servlets-examples/servlet/SessionExample and the jsessionid's *are* preserved. Can you post the 'JkLogLevel debug' for the requests that are in your opinion dropping the jsessionid? Regards, Mladen. - 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]
cvs commit: jakarta-tomcat-5 build.properties.default
remm2005/06/24 10:18:36 Modified:catalina build.xml .build.properties.default Log: - Add JMX remote. Revision ChangesPath 1.82 +1 -0 jakarta-tomcat-catalina/catalina/build.xml Index: build.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/build.xml,v retrieving revision 1.81 retrieving revision 1.82 diff -u -r1.81 -r1.82 --- build.xml 24 Jun 2005 11:54:21 - 1.81 +++ build.xml 24 Jun 2005 17:18:36 - 1.82 @@ -62,6 +62,7 @@ pathelement location=${jcert.jar}/ pathelement location=${jdbc20ext.jar}/ pathelement location=${jmx.jar}/ +pathelement location=${jmx-remote.jar}/ pathelement location=${jndi.jar}/ pathelement location=${jnet.jar}/ pathelement location=${jsse.jar}/ 1.147 +2 -1 jakarta-tomcat-5/build.properties.default Index: build.properties.default === RCS file: /home/cvs/jakarta-tomcat-5/build.properties.default,v retrieving revision 1.146 retrieving revision 1.147 diff -u -r1.146 -r1.147 --- build.properties.default 8 Jun 2005 15:28:00 - 1.146 +++ build.properties.default 24 Jun 2005 17:18:36 - 1.147 @@ -195,6 +195,7 @@ jmx.lib=${jmx.home}/lib jmx.jar=${jmx.lib}/mx4j.jar jmx-tools.jar=${jmx.lib}/mx4j-tools.jar +jmx-remote.jar=${jmx.lib}/mx4j-remote.jar jmx.loc=${base-sf.loc}/mx4j/mx4j-3.0.1.tar.gz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Claudia Mendes/QPortugal está ausente de la oficina.
Estaré ausente de la oficina desde el 24/06/2005 y no volveré hasta el 01/07/2005. Remitir correos a Carla Vaz y Carla Silveira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]