Re: Connection count explosion due to thread http-nio-80-ClientPoller-x death
Hi Mark, I looked into our javax.websocket.Endpoint implementation and found the following suspicious code: When we need to close the WebSocket session already in .onOpen() method (rejecting a connection), we are calling session.close() asynchronously after 1 second via a java.util.Timer task. This was due to bug https://issues.apache.org/bugzilla/show_bug.cgi?id=54716, that I can see should be fixed long time ago (thanks). Can this cause the selector's keyset to be accessed by more than one thread? Best regards, Lars Engholm Johansen On Mon, Oct 6, 2014 at 2:14 PM, Mark Thomas ma...@apache.org wrote: On 06/10/2014 10:11, Lars Engholm Johansen wrote: Hi all, I have good news as I have identified the reason for the devastating NioEndpoint.Poller thread death: In rare circumstances a ConcurrentModification can occur in the Poller's connection timeout handling called from OUTSIDE the try-catch(Throwable) of Poller.run() java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:922) at java.util.HashMap$KeyIterator.next(HashMap.java:956) at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1067) at org.apache.tomcat.util.net.NioEndpoint$Poller.timeout(NioEndpoint.java:1437) at org.apache.tomcat.util.net.NioEndpoint$Poller.run(NioEndpoint.java:1143) at java.lang.Thread.run(Thread.java:745) Somehow the Poller's Selector object gets modified from another thread. Any idea how? I've been looking through that code for some time now (this stack trace appears to be from 7.0.55 for those that want to look at this themselves) and I can't see anywhere where the selector's keyset is accessed by more than one thread. As a remedy until fixed properly by the Tomcat team, I have added a try-catch(ConcurrentModificationException) surrounding the for loop in Poller.timeout(). That way, in case of the rare problem, a full iteration of the Selector will be retried in the next call to Poller.timeout(). That seems like a reasonable work-around but before we start making changes to the Tomcat code I'd really like to understand the root cause(s) of the issue else we might not be fixing the actual issue and could make it worse for some folks. Mark I am really happy now as all our production servers have been rock stable for two weeks now. Best regards to all, Lars Engholm Johansen On Thu, Sep 18, 2014 at 7:03 PM, Filip Hanik fi...@hanik.com wrote: Thanks Lars, if you are indeed experiencing a non caught error, let us know what it is. On Thu, Sep 18, 2014 at 2:30 AM, Lars Engholm Johansen lar...@gmail.com wrote: Thanks guys for all the feedback. I have tried the following suggested tasks: - Upgrading Tomcat to the newest 7.0.55 on all our servers - Problem still persists - Force a System.gc() when connection count is on the loose - Connection count is not dropping - Lowering the log level of NioEndpoint class that contains the Poller code - No info about why the poller thread exits in any tomcat logs - Reverting the JVM stack size per thread to the default is discussed previously - Problem still persists I have now checked out the NioEndpoint source code and recompiled it with a logging try-catch surrounding the whole of the Poller.run() implementation as I noticed that the outer try-catch here only catches OOME. I will report back with my findings as soon as the problem arises again. /Lars On Fri, Jun 27, 2014 at 9:02 PM, Christopher Schultz ch...@christopherschultz.net wrote: Filip, On 6/27/14, 11:36 AM, Filip Hanik wrote: Are there any log entries that would indicate that the poller thread has died? This/these thread/s start when Tomcat starts. and a stack over flow on a processing thread should never affect the poller thread. OP reported in the initial post that the thread had disappeared: On 6/16/14, 5:40 AM, Lars Engholm Johansen wrote: We have no output in tomcat or our logs at the time when this event occurs. The only sign is when comparing full java thread dump with a dump from a newly launched Tomcat: One of http-nio-80-ClientPoller-0 or http-nio-80-ClientPoller-1 is missing/has died. -chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat NIO broken connections
Hi, we have web application running MyFaces, Richfaces (+ Atmosphere 1.0.18) on Tomcat 7.0.55, Oracle JDK 7u67. Tomcat is configured to use Nio connector: Connector URIEncoding=UTF-8 acceptCount=150 compressableMimeType=text/html,text/xml,text/css,text/javascript compression=on compressionMinSize=2048 connectionTimeout=6 disableUploadTimeout=true enableLookups=false maxHttpHeaderSize=8192 maxThreads=150 noCompressionUserAgents=gozilla, traviata port=8090 protocol=org.apache.coyote.http11.Http11NioProtocol socket.bufferPool=0 useBodyEncodingForURI=true/ Problem is that user opens application in browser and sometimes sees only blank page and spinning load indicator, indefinitely. It's caused by one or more css/javascript resources in page that didn't load. Browser console shows that request has been sent and it is waiting for response. Using apache-bench and wireshark I found that tomcat sends RST packet, here are related log items: 2014-11-10 10:13:35.064 [http-nio-8090-exec-4] - - DEBUG o.a.coyote.http11.Http11NioProtocol - Socket: [org.apache.tomcat.util.net.NioEndpoint$KeyAttachment@28697f3f:org.apache.tomcat.util.net.NioChannel@73f0f55d:java.nio.channels.SocketChannel[connected local=/192.168.1.156:8090 remote=/192.168.1.156:53187]], Status in: [OPEN_READ], State out: [CLOSED] 2014-11-10 10:13:35.064 [http-nio-8090-exec-4] - - DEBUG o.a.tomcat.util.threads.LimitLatch - Counting down[http-nio-8090-exec-4] latch=238 2014-11-10 10:13:35.064 [http-nio-8090-Acceptor-0] - - DEBUG o.a.tomcat.util.threads.LimitLatch - Counting up[http-nio-8090-Acceptor-0] latch=238 2014-11-10 10:13:35.065 [http-nio-8090-ClientPoller-1] - - ERROR o.a.tomcat.util.net.NioEndpoint - Error allocating socket processor java.lang.NullPointerException: null at org.apache.tomcat.util.net.NioEndpoint.processSocket(NioEndpoint.java:742) ~[tomcat-coyote.jar:7.0.55] at org.apache.tomcat.util.net.NioEndpoint$Poller.processKey(NioEndpoint.java:1273) [tomcat-coyote.jar:7.0.55] at org.apache.tomcat.util.net.NioEndpoint$Poller.run(NioEndpoint.java:1226) [tomcat-coyote.jar:7.0.55] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_67] 2014-11-10 10:13:35.065 [http-nio-8090-ClientPoller-1] - - ERROR o.a.tomcat.util.net.NioEndpoint - java.lang.NullPointerException: null at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:333) ~[na:1.7.0_67] at java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1175) ~[na:1.7.0_67] at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.release(Http11NioProtocol.java:196) ~[tomcat-coyote.jar:7.0.55] at org.apache.tomcat.util.net.NioEndpoint$Poller.cancelledKey(NioEndpoint.java:1098) [tomcat-coyote.jar:7.0.55] at org.apache.tomcat.util.net.NioEndpoint$Poller.processKey(NioEndpoint.java:1283) [tomcat-coyote.jar:7.0.55] at org.apache.tomcat.util.net.NioEndpoint$Poller.run(NioEndpoint.java:1226) [tomcat-coyote.jar:7.0.55] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_67] Problem is not easily reproducible, I need running application, opened browser on application page for a long time (last time I let it run over the weekend). It may be related to session timeouts and someting strange in RichFaces/Atmosphere. If it starts doing problems, it's reproducible using apache bench in one of tens of requests (If it runs concurrently, in one of less than ten). There are some related exceptions: 2014-11-10 09:50:37.682 [http-nio-8090-exec-28] - - ERROR o.a.c.c.C.[.[.[.[Faces Servlet] - Servlet.service() for servlet [Faces Servlet] in context with path [/mcc-launcher] threw exception java.lang.NullPointerException: null at org.apache.coyote.http11.Http11NioProcessor.actionInternal(Http11NioProcessor.java:320) ~[tomcat-coyote.jar:7.0.55] at org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHttp11Processor.java:902) [tomcat-coyote.jar:7.0.55] at org.apache.coyote.Request.action(Request.java:346) ~[tomcat-coyote.jar:7.0.55] at org.apache.catalina.connector.Request.getRemoteAddr(Request.java:1287) ~[catalina.jar:7.0.55] at org.apache.catalina.connector.Request.getRemoteHost(Request.java:1302) ~[catalina.jar:7.0.55] at org.apache.catalina.connector.RequestFacade.getRemoteHost(RequestFacade.java:529) ~[catalina.jar:7.0.55] at ch.qos.logback.classic.helpers.MDCInsertingServletFilter.insertIntoMDC(MDCInsertingServletFilter.java:59) ~[logback-classic-1.1.2.jar:na] at ch.qos.logback.classic.helpers.MDCInsertingServletFilter.doFilter(MDCInsertingServletFilter.java:49) ~[logback-classic-1.1.2.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) ~[catalina.jar:7.0.55] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) ~[catalina.jar:7.0.55] at
Re: Problem when rebooting....
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ameer, On 11/9/14 11:42 PM, Ameer Mawia wrote: I'm looking into the issue(I had been longing to contribute to community and I see some opportunity to start doing so here. Hope my effort will be welcomed!:) ) Absolutely. Thanks for your contributions. I'm looking at the code base in trunk. Here is the method where localhost-startstop thread is busy: protected void processAnnotationsFile(File file, WebXml fragment, //line 1963 boolean handlesTypesOnly) { if (file.isDirectory()) { // Returns null if directory is not readable String[] dirs = file.list();//line 1968 if (dirs != null) { for (String dir : dirs) { processAnnotationsFile(//line 1971 new File(file,dir), fragment, handlesTypesOnly); } } } else if (file.canRead() file.getName().endsWith(.class)) { try (FileInputStream fis = new FileInputStream(file)) { processAnnotationsStream(fis, fragment, handlesTypesOnly); } catch (IOException e) { log.error(sm.getString(contextConfig.inputStreamFile, file.getAbsolutePath()),e); } catch (ClassFormatException e) { log.error(sm.getString(contextConfig.inputStreamFile, file.getAbsolutePath()),e); } } } As you can see and as konstantin said, the thread is busy walking over directories listed in web-fragements. Here, the canRead call is being done in such a way that entropy should not be a part of the problem. Perhaps something is being read from a network filesystem that has stalled mounting or something similar? The question for the OP is what is different during boot time? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUYMb4AAoJEBzwKT+lPKRYjwUP/jLSdAXlD67RR+UYe0NhPbF8 GweAbj/zDtuLq3enElNa838LnlVoG/yKKvIkA8cQ2GgdtjP0PKzJeIUqSRBVuQ6m gYg/iiY2qgi6tKfOsEUobGhZrUa8xfzVigASyfKwxVnXE3kShKprY02iq0U7eURW 33cGOgezcq4CvEm4MRcLfBGJqlYtjRWLvWQGt+u3u6IqJ+1gZ2v9VFgembDu6Fjo 2AdRWNGiJGvIPPKeEU4PShk5uWliLdTCToRjCJ6Xm0q9GKIPY6oE616b+sLVz9AP q1Fzq7ZgMKkwIIcCGsbBLurKm5lmizB5cTCQm870kh2C0fY4I5HXthKwADvBBcn8 eU/0UPe6z2Mn8pgzTBYXTDCH8F8JdRAqVkL//WU0vaZEqNVKxYkbPJZjseYerEjS huv8N1kXl8GNueWBJ5H+N0VUfrLJOwzOeSRYx8svxF1p79xGOxF2rmKhypLLIPpL ldoLWFnJ2P1dDPTDEkdsxYJQxZ0FB9eDcDgIH2gGDUuOcyUW7xqK4kCfzo9Yr4MX c5iIwtsGz0/mELSdY30/Qx2lflEL0NvDj54NIz6o8pDVsIGvSWmV5RgaM9Bb7+84 oehx5TC4GzHTEgrBvU292NH2UQf1lXCPCMYHI15tbEOIBX2NjbqKJp+o/1+ajOl4 IVIII1t4+kGs7yAhL5Pa =D5Gs -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
mod_jk on Mac OS X 10.10 (Yosemite)
Hi Please can someone advise me how to build mod_jk on Mac OS X 10.10 (Yosemite / darwin 14.0.0)? I got past the failure at: checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/cc checking for C compiler default output file name... configure: error: C compiler cannot create executables but now the configuration stops with: configure: error: could not detect a 32-bit integer type I tried installing the version of of mod_jk I had compiled for 10.9 (Mavericks), but that gave an error: Cannot load libexec/apache2/mod_jk.so into server: dlopen(/usr/libexec/apache2/mod_jk.so, 10): Symbol not found: _ap_log_error Referenced from: /usr/libexec/apache2/mod_jk.so Expected in: flat namespace in /usr/libexec/apache2/mod_jk.so This is using Apache 2.4.9, which is supplied with Yosemite. William Moore - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
JDBCRealm - Works OK but logs errors
Hello I have Tomcat 8.0.9 running under NetBeans. An application using JDBCRealm is authenticating and authorising users OK but Tomcat is logging errors. Errors get logged on Tomcat startup and another each time a user logs in. Numerous occurrences of this Exception: 10-Nov-2014 15:18:48.108 SEVERE [http-nio-8080-exec-3] org.apache.catalina.realm.JDBCRealm.getPassword Exception performing authentication java.sql.SQLException: Closed Statement at oracle.jdbc.driver.OracleClosedStatement.setString(OracleClosedStatement.java:731) at oracle.jdbc.driver.OraclePreparedStatementWrapper.setString(OraclePreparedStatementWrapper.java:289) at org.apache.catalina.realm.JDBCRealm.credentials(JDBCRealm.java:484) at org.apache.catalina.realm.JDBCRealm.getPassword(JDBCRealm.java:525) at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:387) at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:334) at org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:111) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:578) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655) at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) And just one of this: 10-Nov-2014 15:18:49.249 FINE [http-nio-8080-exec-7] org.apache.catalina.util.LifecycleBase.start The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/di]] after start() had already been called. The second call will be ignored. org.apache.catalina.LifecycleException at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:127) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1270) at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:357) at javax.servlet.http.HttpServlet.service(HttpServlet.java:618) at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:615) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610) at
Windows Service won't start
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, When a Tomcat Windows Service won't start (with the super-helpful a service-specific error occurred), where can I look for detailed information about what happened? (Please be kind, I'm not an everyday Windows administrator) I installed the service myself using a process almost exactly like this: C:\ SET CATALINA_HOME=[path to Tomcat] C:\ SET CATALINA_BASE=[path to my catalina.base] C:\ SET JAVA_HOME=[path to Java] C:\ %CATALINA_HOME%\bin\service.bat install myproject I can see the Windows Service called Apache Tomcat 7.0 myproject in the Services management console. Clicking start results in a short wait and then the error about how the service itself had a problem with no details. - From the CLI, running net start myproject yields a similar error. Any suggestions? Thanks, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUYP5FAAoJEBzwKT+lPKRYopwQAKMxxqY1nXTsJ6uTJAkqyydW qegw3W5oNzh9Ai8M5PQlREA0ycCefwagOJbsUwfMrQPFrradtRLAG1YzFoCaf18M 8K9f2bZLJ0YP07/q8f/cLsINDs5nHxoL8JK3RucH/jmUshtfYL7K6QKl25Segp3t bOv1p47uJBrZNbb0fVcsl1itPrz2CClKe+DKTRsWUbSgM062OM3Okbk97nAyCqo5 Utu7Tzl5C1iZlF73bSo8F9Wx7p8z57775xv4jBRP3c8XUyQXYMfBzUwGDhvgge+z fbwlX6r7v3MjoRkTb39vvxqvkwqf7Ku/+J4o5tCW6oji8eSuKbVZNDOhIsTS8UeV lnoYkGE3QxrrreczvHbMY3AwtRdBLoHkv7wCtgmYrUEhuB5l6dGIStZPyrkFEOjM 3+pcTDE9bueOk8ivHxLCajn35GBfwNWj+LxTez7ggy0zxXY3G5Bzp5hVk1UWTqZy dC/R7KpJ/4dPKQqjREEFW6U+G8rKlxXpGJMqEo+/QWVHkQl1EWN46kYRMSYwhfCr V0ZQ9ETWsPRRCr5mXYXnWijqJWXaVDfJph29fjyyQnqQXjDgozwd4u3D0C+qJFUg tdODD2HX7+HN/mAIv/5QENDRv4fIkw17gtG2M3Czkw9ZaH+DrF6p1EVX90OXXLCc szyMLbk3uRFJMbg/VXLG =ugtJ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod_jk on Mac OS X 10.10 (Yosemite)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 William, On 11/10/14 10:50 AM, William Moore wrote: Please can someone advise me how to build mod_jk on Mac OS X 10.10 (Yosemite / darwin 14.0.0)? I got past the failure at: checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/cc checking for C compiler default output file name... configure: error: C compiler cannot create executables but now the configuration stops with: configure: error: could not detect a 32-bit integer type I tried installing the version of of mod_jk I had compiled for 10.9 (Mavericks), but that gave an error: Cannot load libexec/apache2/mod_jk.so into server: dlopen(/usr/libexec/apache2/mod_jk.so, 10): Symbol not found: _ap_log_error Referenced from: /usr/libexec/apache2/mod_jk.so Expected in: flat namespace in /usr/libexec/apache2/mod_jk.so This is using Apache 2.4.9, which is supplied with Yosemite. The problem with your old mod_jk.so is that Apple updated httpd from 10.9 to 10.10 and you'll have to recompile. Can you post your whole configure command? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUYQBvAAoJEBzwKT+lPKRYvTgP/16wBebBNRbWZgi+UiuJmmTQ ShYcZLKkRRfMBn0M8uO/8MyH7RtJbbst6drOuKU6zrc8CnEpsrb4zE/fQ8WKyL8P sHL0/biShXE8+3zm2lVMJX6uls01bOW4BmaehNX3LGZ2RVFuXJFra93SOnhUE6dL 2fpDhqLbIV+4WPwhY+XFNOP/J6n2Z9ewG7htIsycPutCU8IcHcg8gBrQ62KV8SEm AazJ0EwxUP48Ra60vS73FmVRtPkVSZAgKKe6F/wzWiCd8uf7y6mOpF2ANAGScio8 FgwwT9Lo02uGo/SDsIRaD20hFtDeDWDO1zyR6EkReqFnnj8x39ivRX0GqsRVrVcw Sl+/tbxDCbP2Z7w25C9weZ8MaZ/J5W6vkrTg4NYPOB//NfR/ckoLovJwTCNwFsZG j9UpqtU2hlU3at4PJtVtYzSehesRPBlJQMHV6+TxoRnrxWAxTsCmAFj3E9afK+bt +lgL/9v+dgsG1VURBuFkJ8UCKjrCerQewsWVHzVvk+qOENL2LaOzbiO5JLmu+ZnZ moQYkA3DP0ehFrtAmG5buQgh2mJgRF2LqkWfxYYmqQaL5XrtIBcLugc/uL219cqj yNyPAx1KVkwSO4sgE+eZ0ssV3hIhj5a1K4Pt+SiU1ZXBbu9g+qKm+oIIAlKDW4D4 U8tCuVGRokybsGvzwo+m =Eirj -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Windows Service won't start
On 11/10/2014 1:04 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, When a Tomcat Windows Service won't start (with the super-helpful a service-specific error occurred), where can I look for detailed information about what happened? Administrative Tools | Event Viewer is the app. From there, the details depend on which version of Windows. In Win7 and Server 2008 R2, it's under Windows Logs | System. The list in there can be quite large so it may take some scrolling, but you're looking for something with a Level value of Error. (Please be kind, I'm not an everyday Windows administrator) I installed the service myself using a process almost exactly like this: C:\ SET CATALINA_HOME=[path to Tomcat] C:\ SET CATALINA_BASE=[path to my catalina.base] C:\ SET JAVA_HOME=[path to Java] C:\ %CATALINA_HOME%\bin\service.bat install myproject I can see the Windows Service called Apache Tomcat 7.0 myproject in the Services management console. Clicking start results in a short wait and then the error about how the service itself had a problem with no details. - From the CLI, running net start myproject yields a similar error. Any suggestions? Thanks, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUYP5FAAoJEBzwKT+lPKRYopwQAKMxxqY1nXTsJ6uTJAkqyydW qegw3W5oNzh9Ai8M5PQlREA0ycCefwagOJbsUwfMrQPFrradtRLAG1YzFoCaf18M 8K9f2bZLJ0YP07/q8f/cLsINDs5nHxoL8JK3RucH/jmUshtfYL7K6QKl25Segp3t bOv1p47uJBrZNbb0fVcsl1itPrz2CClKe+DKTRsWUbSgM062OM3Okbk97nAyCqo5 Utu7Tzl5C1iZlF73bSo8F9Wx7p8z57775xv4jBRP3c8XUyQXYMfBzUwGDhvgge+z fbwlX6r7v3MjoRkTb39vvxqvkwqf7Ku/+J4o5tCW6oji8eSuKbVZNDOhIsTS8UeV lnoYkGE3QxrrreczvHbMY3AwtRdBLoHkv7wCtgmYrUEhuB5l6dGIStZPyrkFEOjM 3+pcTDE9bueOk8ivHxLCajn35GBfwNWj+LxTez7ggy0zxXY3G5Bzp5hVk1UWTqZy dC/R7KpJ/4dPKQqjREEFW6U+G8rKlxXpGJMqEo+/QWVHkQl1EWN46kYRMSYwhfCr V0ZQ9ETWsPRRCr5mXYXnWijqJWXaVDfJph29fjyyQnqQXjDgozwd4u3D0C+qJFUg tdODD2HX7+HN/mAIv/5QENDRv4fIkw17gtG2M3Czkw9ZaH+DrF6p1EVX90OXXLCc szyMLbk3uRFJMbg/VXLG =ugtJ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod_jk on Mac OS X 10.10 (Yosemite)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 William, On 11/10/14 10:50 AM, William Moore wrote: Please can someone advise me how to build mod_jk on Mac OS X 10.10 (Yosemite / darwin 14.0.0)? I got past the failure at: checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/cc checking for C compiler default output file name... configure: error: C compiler cannot create executables At some point in the recent past, Apple broke the command-line toolchains by renaming /Applications/Xcode.app/Contents/Developer/Toolchains/OSX[verision].xctoolchain to /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain. If you in fact have an XcodeDefault.xctoolchain directory in Developer/Toolchains and you *don't* have the version-specific one, then just go in there and create a symlink: $ cd /Applications/Xcode.app/Contents/Developer/Toolchains $ sudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchain This is probably how you fixed yours already. Another way to do it *should be* to just do this: $ CC=Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain ./configure --with-apxs=`which apxs` On my system, configure completes and gives me a warning that I've overridden the compiler setting sniffed from apxs and warns me that I might get errors later. When I try to actually build, libtool does not use the CC specified during configure. :( So you have to go back to the whole symlink thing. FWIW, I just built mod_jk 1.2.37 (the source I had available) on my machine running 10.10 after solving the toolchain thing. No problem with a 32-bit integer or anything like that. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUYQlQAAoJEBzwKT+lPKRYJlYP/2z++JmQkCD98Egu1DMPuONj fnD35rCRVa2G2x9ACEJT3ItM/23jnH6LS0duoD0tnRnyWcllOC0vVHgetnLtWLlO FJ5A65irBTcUuBn/iO38qNbHB8Wj/Jj2c2QNpPzFTynBIB6YXJTCKn3LK5XFE7F6 6WeP8zKex6zDMB3SGr1UrqiLTiBxmxu7JMe2OLwDvV110pwYK7Fg9yZFz0YxyWoc mk6PzRffS3WAOQC3SpqyKHMYcKD3fNyrXILFZOfcDLtgz4oNVDbLhtVVP5YXiUNv DwgvNn5QoMCCq+JjnaUOydUhf/Asy3vTLQX+J2NAOGolpIiVffkrmv+DOPQyd1y+ lTuNHumep/WXTCRnE1ATNgPVELkP68wtdKK2ceIdIjvtGpGB33RkUl1vSqDXWiFb kQ68PO2Ecij8LAW1qzizCbkx+U/nHHBX9NoaLR4WYUIFtGODeQLOUtDZoeLCMA2S HdCbOYcqXggmEII8yqjOj0JGwgKFu4/63oijd5PzVLEnbiu9NDlb9r7o8oTbmgdx 9in9jglKBTYh2a7Iy48JAQ8M1GY4cBzb4ONj3bGLT8ezJJfN9pb8wSZfstanN6bE 0NCnaI5hRQH0Ez6zmRV2HhGk6itqkRe8bHfQ1eo/jT7h3mcLekEAT8GVVto7jFi/ Txsj/uIibTahKJwia0WQ =oZqD -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod_jk on Mac OS X 10.10 (Yosemite)
Chris The configure command is: ./configure CFLAGS='-arch x86_64' APXSLDFLAGS='-arch x86_64' --with-apxs=/usr/sbin/apxs I also tried your version, and that gave the same error: configure: error: could not detect a 32-bit integer type Which version of Xcode are you using? Mine says: Version 6.1 (6A1052d) William On 10 Nov 2014, at 7:52pm, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 William, On 11/10/14 10:50 AM, William Moore wrote: Please can someone advise me how to build mod_jk on Mac OS X 10.10 (Yosemite / darwin 14.0.0)? I got past the failure at: checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/cc checking for C compiler default output file name... configure: error: C compiler cannot create executables At some point in the recent past, Apple broke the command-line toolchains by renaming /Applications/Xcode.app/Contents/Developer/Toolchains/OSX[verision].xctoolchain to /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain. If you in fact have an XcodeDefault.xctoolchain directory in Developer/Toolchains and you *don't* have the version-specific one, then just go in there and create a symlink: $ cd /Applications/Xcode.app/Contents/Developer/Toolchains $ sudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchain This is probably how you fixed yours already. Another way to do it *should be* to just do this: $ CC=Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain ./configure --with-apxs=`which apxs` On my system, configure completes and gives me a warning that I've overridden the compiler setting sniffed from apxs and warns me that I might get errors later. When I try to actually build, libtool does not use the CC specified during configure. :( So you have to go back to the whole symlink thing. FWIW, I just built mod_jk 1.2.37 (the source I had available) on my machine running 10.10 after solving the toolchain thing. No problem with a 32-bit integer or anything like that. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUYQlQAAoJEBzwKT+lPKRYJlYP/2z++JmQkCD98Egu1DMPuONj fnD35rCRVa2G2x9ACEJT3ItM/23jnH6LS0duoD0tnRnyWcllOC0vVHgetnLtWLlO FJ5A65irBTcUuBn/iO38qNbHB8Wj/Jj2c2QNpPzFTynBIB6YXJTCKn3LK5XFE7F6 6WeP8zKex6zDMB3SGr1UrqiLTiBxmxu7JMe2OLwDvV110pwYK7Fg9yZFz0YxyWoc mk6PzRffS3WAOQC3SpqyKHMYcKD3fNyrXILFZOfcDLtgz4oNVDbLhtVVP5YXiUNv DwgvNn5QoMCCq+JjnaUOydUhf/Asy3vTLQX+J2NAOGolpIiVffkrmv+DOPQyd1y+ lTuNHumep/WXTCRnE1ATNgPVELkP68wtdKK2ceIdIjvtGpGB33RkUl1vSqDXWiFb kQ68PO2Ecij8LAW1qzizCbkx+U/nHHBX9NoaLR4WYUIFtGODeQLOUtDZoeLCMA2S HdCbOYcqXggmEII8yqjOj0JGwgKFu4/63oijd5PzVLEnbiu9NDlb9r7o8oTbmgdx 9in9jglKBTYh2a7Iy48JAQ8M1GY4cBzb4ONj3bGLT8ezJJfN9pb8wSZfstanN6bE 0NCnaI5hRQH0Ez6zmRV2HhGk6itqkRe8bHfQ1eo/jT7h3mcLekEAT8GVVto7jFi/ Txsj/uIibTahKJwia0WQ =oZqD -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod_jk on Mac OS X 10.10 (Yosemite)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 William, On 11/10/14 4:26 PM, William Moore wrote: The configure command is: ./configure CFLAGS='-arch x86_64' APXSLDFLAGS='-arch x86_64' --with-apxs=/usr/sbin/apxs I also tried your version, and that gave the same error: configure: error: could not detect a 32-bit integer type Weird. Which version of Xcode are you using? Mine says: Version 6.1 (6A1052d) I have exactly the same version. What about llvm? $ cc --version Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn) Target: x86_64-apple-darwin14.0.0 Thread model: posix Would you be willing to do a make clean and then post the entire output of your configure script? - -chris On 10 Nov 2014, at 7:52pm, Christopher Schultz ch...@christopherschultz.net wrote: William, On 11/10/14 10:50 AM, William Moore wrote: Please can someone advise me how to build mod_jk on Mac OS X 10.10 (Yosemite / darwin 14.0.0)? I got past the failure at: checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/cc checking for C compiler default output file name... configure: error: C compiler cannot create executables At some point in the recent past, Apple broke the command-line toolchains by renaming /Applications/Xcode.app/Contents/Developer/Toolchains/OSX[verision].xctoolchain to /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain. If you in fact have an XcodeDefault.xctoolchain directory in Developer/Toolchains and you *don't* have the version-specific one, then just go in there and create a symlink: $ cd /Applications/Xcode.app/Contents/Developer/Toolchains $ sudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchain This is probably how you fixed yours already. Another way to do it *should be* to just do this: $ CC=Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain ./configure --with-apxs=`which apxs` On my system, configure completes and gives me a warning that I've overridden the compiler setting sniffed from apxs and warns me that I might get errors later. When I try to actually build, libtool does not use the CC specified during configure. :( So you have to go back to the whole symlink thing. FWIW, I just built mod_jk 1.2.37 (the source I had available) on my machine running 10.10 after solving the toolchain thing. No problem with a 32-bit integer or anything like that. -chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUYT/2AAoJEBzwKT+lPKRY55gQAJIelSBD2hlZ7/jRad13ngTU hVBwx/fH9Rc5fKUvXKiZv5zwiVdyIW3WAtI0htWUJe1xcFctZtMaUe9AMa+lfsBr ykUIIkGpKPZiQF3yrr1aunGNJKRXJeV+oc5/hwBzjXF/dH+80BJoYLv5bT0SXOhp 5L01YgTLlu+A2doL0pkdZT1JHXQJvbKLoqaLSV//Qh7ljM/kaKNfzYWWRqj/8HSY pA2oHUQ4aioCyy07yXAmOSJ9mKscuxisG+GV/qC+SfDKSb6fTvc84pFGxoAxTPGg /vWMiR8yyNjRciZ/DRFxs7+GKHFyaDhEghjw2aUJYX5SnlAxbBc/liVHFcUa2Xg7 EkyUHDtL0W71F5E6qhtP0PggPKU3MARgdLunqH8wZXDyXTHo4klPd91TtQG6hX5l TDfyqhu4p1k6czFmW9jwTVkjS0syzw6WiigzAUQGck55a3T2WzBGFOERhi87poyo PmsMAGrAoinRiQAtmX91GQbCkEwBt85bdkPuMYUQo/wu8dWv0Ig9smJzXQCdqnm6 cAPnL0SKWGwD1NZXQjgzaID9frNHVvPdfMacp3t8FFgnPE4CzdKd4LqwzOgF0+Ms PSt6tamxw51YZ3eUy8nCQ8aX1HzboLa12VP9ErTHVod7Pd3Y7gsD4ugoeJ1UTGyb AjYXFjHgahnH7U7GpVk2 =viP1 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem when rebooting....
On Mon, 10 Nov 2014 09:08:56 -0500 Christopher Schultz ch...@christopherschultz.net wrote: Perhaps something is being read from a network filesystem that has stalled mounting or something similar? The question for the OP is what is different during boot time? - -chris Nope, no such things... All is based on local filesystem... And tried to think what might be different and the only thing that is usually different, is that I delete anything beneath the work directory... So I added deletion to the startup script but Tomcat still hangs I am lost to what else may be different in starting tomcat from the init script or starting tomcat from the init script from the command line BTJ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: mod_jk on Mac OS X 10.10 (Yosemite)
-Original Message- From: William Moore [mailto:wmoor...@gmail.com] Sent: Monday, November 10, 2014 4:26 PM To: Tomcat Users List Subject: Re: mod_jk on Mac OS X 10.10 (Yosemite) Chris The configure command is: ./configure CFLAGS='-arch x86_64' APXSLDFLAGS='-arch x86_64' --with-apxs=/usr/sbin/apxs I also tried your version, and that gave the same error: configure: error: could not detect a 32-bit integer type Which version of Xcode are you using? Mine says: Version 6.1 (6A1052d) William On 10 Nov 2014, at 7:52pm, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 William, On 11/10/14 10:50 AM, William Moore wrote: Please can someone advise me how to build mod_jk on Mac OS X 10.10 (Yosemite / darwin 14.0.0)? I got past the failure at: checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctool chain/usr/bin/cc checking for C compiler default output file name... configure: error: C compiler cannot create executables At some point in the recent past, Apple broke the command-line toolchains by renaming /Applications/Xcode.app/Contents/Developer/Toolchains/OSX[verision].xc toolchain to /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolcha in. If you in fact have an XcodeDefault.xctoolchain directory in Developer/Toolchains and you *don't* have the version-specific one, then just go in there and create a symlink: $ cd /Applications/Xcode.app/Contents/Developer/Toolchains $ sudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchain This is probably how you fixed yours already. Another way to do it *should be* to just do this: $ CC=Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.x ctoolchain ./configure --with-apxs=`which apxs` On my system, configure completes and gives me a warning that I've overridden the compiler setting sniffed from apxs and warns me that I might get errors later. When I try to actually build, libtool does not use the CC specified during configure. :( So you have to go back to the whole symlink thing. FWIW, I just built mod_jk 1.2.37 (the source I had available) on my machine running 10.10 after solving the toolchain thing. No problem with a 32-bit integer or anything like that. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUYQlQAAoJEBzwKT+lPKRYJlYP/2z++JmQkCD98Egu1DMPuONj fnD35rCRVa2G2x9ACEJT3ItM/23jnH6LS0duoD0tnRnyWcllOC0vVHgetnLtWLlO FJ5A65irBTcUuBn/iO38qNbHB8Wj/Jj2c2QNpPzFTynBIB6YXJTCKn3LK5XFE7F6 6WeP8zKex6zDMB3SGr1UrqiLTiBxmxu7JMe2OLwDvV110pwYK7Fg9yZFz0YxyWoc mk6PzRffS3WAOQC3SpqyKHMYcKD3fNyrXILFZOfcDLtgz4oNVDbLhtVVP5YXiUNv DwgvNn5QoMCCq+JjnaUOydUhf/Asy3vTLQX+J2NAOGolpIiVffkrmv+DOPQyd1y+ lTuNHumep/WXTCRnE1ATNgPVELkP68wtdKK2ceIdIjvtGpGB33RkUl1vSqDXWiFb kQ68PO2Ecij8LAW1qzizCbkx+U/nHHBX9NoaLR4WYUIFtGODeQLOUtDZoeLCMA2S HdCbOYcqXggmEII8yqjOj0JGwgKFu4/63oijd5PzVLEnbiu9NDlb9r7o8oTbmgdx 9in9jglKBTYh2a7Iy48JAQ8M1GY4cBzb4ONj3bGLT8ezJJfN9pb8wSZfstanN6bE 0NCnaI5hRQH0Ez6zmRV2HhGk6itqkRe8bHfQ1eo/jT7h3mcLekEAT8GVVto7jFi/ Txsj/uIibTahKJwia0WQ =oZqD -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - No virus found in this message. Checked by AVG - www.avg.com Version: 2015.0.5315 / Virus Database: 4189/8550 - Release Date: 11/10/14 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat performance goes down after install apr.
Tomcat performance goes down after install apr. I followed this doc http://tomcat.apache.org/native-doc/, I think the different is I didn't set sslengine setting as I don't use it. And I saw the error in catilina.out, I simply ignore it as I don't use it. I fired 300 concurrent calls from another server and I found tomcat just dead. Performance is much worse. Anything I did wrong?