-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Issac,

On 2/27/14, 6:23 PM, Isaac Gonzalez wrote:
> 
> -----Original Message----- From: Konstantin Kolinko
> [mailto:knst.koli...@gmail.com] Sent: Thursday, February 27, 2014
> 2:40 PM To: Tomcat Users List Subject: Re: tomcat 6 refuses mod_jk
> connections after server runs for a couple of days
> 
> 2014-02-28 2:06 GMT+04:00 Isaac Gonzalez
> <igonza...@autoreturn.com>:
>> Hi Christopher(and Konstantin), attached is a couple of thread
>> dumps of when we experienced the issue again today. I also
>> noticed we get this message right before the problem occurs: Feb
>> 27, 2014 12:47:15 PM 
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run 
>> SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to
>> create new native thread) executing 
>> org.apache.jk.common.ChannelSocket$SocketAcceptor@177ddea,
>> terminating thread
> 
> That explains why a connection cannot be accepted.
> 
> I wonder are you hitting an "ulimit" limit, or there is just not
> enough free memory to allocate stack area for a new thread (which
> size is set by -Xss option to java executable).
> 
> I thought of the ulimit settings and increased it to the upward
> limit allowed at the end of last weekend: [root@server ~]# su
> tomcat [tomcat@server root]$ ulimit -a core file size
> (blocks, -c) 0 data seg size           (kbytes, -d) unlimited 
> scheduling priority             (-e) 0 file size
> (blocks, -f) unlimited pending signals                 (-i) 62835 
> max locked memory       (kbytes, -l) 64 max memory size
> (kbytes, -m) unlimited open files                      (-n) 65535

Open-files can sometimes be a problem. This setting looks just fine to
me, though.

> pipe size            (512 bytes, -p) 8 POSIX message queues
> (bytes, -q) 819200 real-time priority              (-r) 0 stack
> size              (kbytes, -s) 10240 cpu time
> (seconds, -t) unlimited max user processes              (-u) 1024

You might want to increase this number. How many processes is "tomcat"
running outside of the JVM? This is likely to be the limit you are
hitting.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTEOY2AAoJEBzwKT+lPKRYmAwP+wVF9fwj88SOXxWTEKXdbk01
a9slFh4LmnDn0tacrAmA3m47VsndF3ewHwIEF1yP7wNRYf3NXSCzVp0OWuji6ZU1
yfjPpBT3pI8dVPqu9hkWVxkvQxA5xL0sm+9L2BeVBW0QbLs69L0g/v3xt2LwMxvF
j/9mZNqW6A177ZG1o5wcdexRhzV2566Z3idWdc8Zp9uISwFdZXdzYxJtTiku9k6q
nV3gQ8ICAwI+VGBKc1DwbL6QqUwpY8O7OjmQ5OEJaqHYEXjVNkdgo87oY+2BXRkV
9BW9J1zHLPAi8UhdfumDeqRKBQ7JPRhRLGGrhAHsmmA+G0XzShzU2zY84s5PSGU8
GwNiNZ/NJpTPtYjV5viY3GdWWbyeO9J4VDUBsBbs8k1XN7a44OjmKpRhnVIlQT6z
XLYfg3GpWjK8Xdd2L81RB/O6Q2xn9jY5FMik8jh0HgDm38Wf4AeymhVdEaEfVT5Z
TdAQECOFeYGDgLHNY7sFr/QQfJkLAFhfNM9xcgDTx4WcUH9V4QMn8S2qjOeFPbgx
hqwg+p2au18JMTb+RkmnHAVIcqtiFtUU/dN9Xap/vH+bc8UKimE87brBlnTnD/pk
uW0ea5m4f6MDcX2hDSh4+1ZU5uI0ZqTMvcp445UE0GW/4ITu9iauVedvM9fUlVlt
fzDyTTTEUHZ10n+yF5XC
=kOiz
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to