You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Marcel Huth <u2...@hs-harz.de> on 2008/06/28 16:02:11 UTC

Problems with Tomcat 6 APR Connector (Poll events)

Hi,

I've a problem using the tomcat APR connector with my Tomcat 6.0.16 under
Solaris 10.

I've compiled the APR and the Tomcat native Connector. My server.xml is
configured to use the connector I've compiled. When Tomcat start up
everything looks fine. The server uses the APR connector classes for every
connector defined in the config file. (http, https and ajp).

When you try to look at the myserver:8080/manager/html page you get only a
blank white page with no html sourcecode. If you try to send a "GET /" with
telnet to the server the connection will be terminated by the server before
you can get any results.

A look to the catalina.out log file shows the following problem:

Jun 27, 2008 5:34:38 PM org.apache.tomcat.util.net.AprEndpoint$Poller run
SEVERE: Socket [62] poll event: [Timer expired] {2}

This error you get for every page request. The only exception is a page
request through the apache server in front of my tomcat. "Small" pages can
be visited, "larger" ones produce the same error.

I'm using APR 1.2.12. Here is a snippet of my server.xml file:

<Server port="8005" shutdown="SHUTDOWN"> ...
<Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="on" /> ...
<Service name="Catalina">
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
        maxThreads="150" minSpareThreads="4" maxIdleTime="60000" /> ...
	<Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1"
               redirectPort="8443" />

    <Connector port="8443"
               protocol="HTTP/1.1" SSLEnabled="true"
               executor="tomcatThreadPool" connectionTimeout="20000"
               scheme="https" secure="true"
               enableLookups="false"
               sslProtocol="all"
               SSLCertificateFile="mycert.crt"
               SSLCertificateKeyFile="mycert.key" />

    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443"
                enableLookups="false"
                executor="tomcatThreadPool"
                connectionTimeout="20000" /> ...
</Server>

I hope there is anybody who knows this problem. I've testet different
configurations with or without executor and different pollTimes for the
connectors, but it doesn't solve the problem.


With best regards,

Marcel


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Problems with Tomcat 6 APR Connector (Poll events)

Posted by Rainer Jung <ra...@kippdata.de>.
Hi Marcel,

Marcel Huth schrieb:
> Hi,
> 
> I've a problem using the tomcat APR connector with my Tomcat 6.0.16 under
> Solaris 10.
> 
> I've compiled the APR and the Tomcat native Connector. My server.xml is
> configured to use the connector I've compiled. When Tomcat start up
> everything looks fine. The server uses the APR connector classes for every
> connector defined in the config file. (http, https and ajp).
> 
> When you try to look at the myserver:8080/manager/html page you get only a
> blank white page with no html sourcecode. If you try to send a "GET /" with
> telnet to the server the connection will be terminated by the server before
> you can get any results.
> 
> A look to the catalina.out log file shows the following problem:
> 
> Jun 27, 2008 5:34:38 PM org.apache.tomcat.util.net.AprEndpoint$Poller run
> SEVERE: Socket [62] poll event: [Timer expired] {2}
> 
> This error you get for every page request. The only exception is a page
> request through the apache server in front of my tomcat. "Small" pages can
> be visited, "larger" ones produce the same error.
> 
> I'm using APR 1.2.12. 

It is a known problem with the APR libraries.

The fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=42580 
introduced another problem (starting with APR 1.2.9).

The known fix has been applied to APR 1.2.x HEAD and 1.3.x HEAD two days ago

http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/poll/unix/port.c?r1=648007&r2=672346&diff_format=h

and:

http://svn.apache.org/viewvc/apr/apr/branches/1.3.x/poll/unix/port.c?r1=663843&r2=672345&diff_format=h

The discussion can be found at:

http://marc.info/?t=121438277000004&r=1&w=2

So you can either:

- disable tcnative/APR in Tomcat until APR 1.3.3 or 1.2.13 get released
- Patch your source of APR with the above patch and rebuild
- downgrade to APR 1.2.8

> With best regards,
> 
> Marcel

Regards,

Rainer

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org