When using tomcat 7.0.42 I used libtcnative 1.1.24-1 which comes from debian repos Upgrade to tomcat 7.0.50 required upgrade of libtcnative also and there was no updated version in debian repos so I had to compile it from source tarball downloaded here http://tomcat.apache.org/download-native.cgi Downgrading tomcat also means downgrading libtcnative for me
Connector configuration: <Connector port="8443" maxHttpHeaderSize="8192" maxThreads="15000" enableLookups="false" disableUploadTimeout="true" acceptCount="1000" scheme="https" secure="true" SSLEnabled="true" compression="off" SSLCertificateFile="/opt/tomcat/my.crt" SSLCertificateKeyFile="/opt/tomcat/my.key" /> limits.conf is appropriate for this number of threads, however on production server we never had more than 2000 active established connections First lines of log when starting tomcat: Feb 18, 2014 9:12:50 AM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.29 using APR version 1.4.6. Feb 18, 2014 9:12:50 AM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. Feb 18, 2014 9:12:51 AM org.apache.catalina.core.AprLifecycleListener initializeSSL INFO: OpenSSL successfully initialized (OpenSSL 1.0.1e 11 Feb 2013) Feb 18, 2014 9:12:51 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-apr-8080"] Feb 18, 2014 9:12:51 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-apr-8443"] Feb 18, 2014 9:12:51 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["ajp-apr-8009"] Feb 18, 2014 9:12:51 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1188 ms Feb 18, 2014 9:12:51 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service dbApp Feb 18, 2014 9:12:51 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.50 Feb 18, 2014 9:12:51 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Feb 18, 2014 9:12:51 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.50 Feb 18, 2014 9:12:51 AM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive /opt/tomcat/webapps/somemyapp.war Feb 18, 2014 9:13:39 AM org.apache.catalina.util.SessionIdGenerator createSecureRandom INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [7,593] milliseconds. Feb 18, 2014 9:13:39 AM com.radiadesign.catalina.session.PropertiesHolder readRedisSettings INFO: Redis settings setup is finished. Applied values - redisHost: somemyhost, redisPort: 6379, redisDatabase: 0 Feb 18, 2014 9:13:39 AM com.radiadesign.catalina.session.RedisSessionManager startInternal INFO: Attached to RedisSessionHandlerValve Feb 18, 2014 9:13:39 AM com.radiadesign.catalina.session.RedisSessionManager initializeSerializer INFO: Attempting to use serializer :com.radiadesign.catalina.session.JavaSerializer Feb 18, 2014 9:13:39 AM com.radiadesign.catalina.session.RedisSessionManager startInternal INFO: Will expire sessions after 28800 seconds Regards, Dmitry Batiyevskiy Ardas Group Inc. www.ardas.dp.ua 2014-02-20 20:14 GMT+02:00 Christopher Schultz <ch...@christopherschultz.net >: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Dmitry, > > On 2/20/14, 11:00 AM, Dmitry Batiyevskiy wrote: > > We have upgraded tomcat 7.0.42 to 7.0.50 We have an app which is > > built around atmosphere framework and uses websockets After upgrade > > tomcat instance which has only this app dies in few hours after > > deploy (the whole java process dies) > > > > The only error in log is following: java: src/network.c:441: > > Java_org_apache_tomcat_jni_Socket_send: Assertion `(s->opaque != > > ((void *)0))' failed > > Does the process die immediately after this assertion failure? > > > No memory dumps are created (java process is launched with > > -XX:+HeapDumpOnOutOfMemoryError) and can not find anything like OOM > > killer in system log (we use Debian 7) > > > > Rollback to 7.0.42 helps and app works fine with same configs > > (context.xml, server.xml, etc) and libs We use oracle jdk 1.7.45, > > changing jdk version doesn't helps when using tomcat 7.0.50 > > What version of tcnative are you using? The version bundled with > Tomcat or an external version? > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQIcBAEBCAAGBQJTBkYSAAoJEBzwKT+lPKRYBtQQAKr1p3NfO5BxcKZqwDxhw1Hg > qol9RxOE6JIPkowdHjJdgOg0mNc1ROeG6HFu/aLDiJ0uP34piaiwQRDSgk6/7j0J > lZSplp+fO8gl05Yhb7lzl/Y/+Our21Cu0NkY7GES1McY2yKDQKsLWJJixCD4lEFZ > yS4z4fd6ihSlmpXvkhm7vRNxyvz+zNlCi1/nqt08Ha8UBLqtg4kUDxJEHYlAj8OX > k9+dlzTrJtJgm/2RvSm1RzODA6dETwAsxCLF2eAqVZu2zSSssKDwBvVKRs0FoZ1m > 5S7v4JV2K5EDxgcMw+NR9TUziOAbG17/QXuZuylmcBGhVirwVpx2p/xPw7AF+Jv7 > dsbdWcFRkOQun5w1P0OCe7zwDf8yrZWrt6fGSs1E1gkeAo/kg33ybT8NS1TUKBMN > rAonwH/GCBPJvU4Ukr/h8ISCyVROiPxwKbMi0S2bUkMguk7eXZaMZmw/cA5859d6 > Xpus7IQ0RiMZ4LEq7IosDXahMfE48iY7OG3wcDL2RhsPk3huEc7LWi+wNHzV1xdL > 1VLYAKZvkMYy9Y8MNaVkYWBhtfJ49hbwQLUTGiUM3aewr2KKd5Bjc2OT333hzAtg > MxjDANBYHeiFm/iigd/brAlrINDrcP77sDdLC7oZpNkh3McY8zvXr47G7r6mLj1m > N8Uv3s0hNqS0BKVsT1G7 > =H3cC > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >