On Apr 28, 2009, at 10:56 AM, Mark Thomas wrote:
Chris Stewart wrote:
Over the weekend we added SSL security to a Tomcat 6 instance that
has
been running for awhile without error. This morning, after the
number
of sessions increased on the machine, Tomcat began throwing 500
errors
to users. I checked the logs and found an instance of OutOfMemory,
followed by dozens of errors related to Google Guice attempting to
start new threads. I can only image that with the addition of SSL,
more memory is being used by more threads being created, or some such
situation. I'm not terribly sure where or how the extra resources
are
being used.
I was hoping that those with the experience of using SSL on Tomcat
could point me in some direction on places to look for clues. At the
moment I'm not sure where the issue could be. Here are a few of the
statistics about our setup and configuration:
-XX:ThreadStackSize=512
Initial Memory Pool: 128MB
Maximum Memory Pool: 1024MB
Thread Stack Size: 512KB
Tomcat version? OS vendor/version? OS memory? JVM vendor version?
Connector
settings in server.xml?
Tomcat 6.0.14. Windows 2003 Server. 2GB of memory on system. Java
1.6.0_06.
<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000"
redirectPort="443" />
<Connector protocol="org.apache.coyote.http11.Http11Protocol"
port="443" minSpareThreads="5" maxSpareThreads="75"
enableLookups="true" disableUploadTimeout="true" acceptCount="100"
maxThreads="400" scheme="https" secure="true" SSLEnabled="true"
keystoreFile="D:\Certificate\Cert.key" keystorePass="pwd"
clientAuth="false" sslProtocol="TLS" />
I've been adjusting these in various ways to attempt to at least find
a path towards success. So far, about 5 minutes after the server is
restarted the performance begins to plummet.
Grab yourself a profiler and see what is using the memory.
Mark
---------------------------------------------------------------------
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