Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies released under the Apache License version 2. The Tomcat project started at Sun Microsystems and was donated by Sun to the Apache Software Foundation in 1999.

learn more… | top users | synonyms

6
votes
2answers
2k views

How to scale up a web server supporting long polling

I am planing to add more web application servers to support increasing clients, deploying HAproxy and Keepalived for load balancing and High availability. My server usage has the following ...
6
votes
2answers
17k views

Tomcat- How to check the memory settings currently in use

I have set up a Tomcat server using Server 2008 and IIS 7. How can I tell if the JAVA_OPTS environment variable is actually being used? I've heard before that the I have to edit the service.bat file ...
6
votes
2answers
24k views

How to prevent slow responding Tomcat from making Apache slow to respond?

I have a site that consists mostly of static html pages with occasional ajax requests. The site is running on Apache, ajax is handled by Tomcat. If Tomcat becomes slow to respond (java cannot connect ...
6
votes
1answer
2k views

Having problems with maintaining sessions across multiple Amazon EC2 instances

One of my sites is hosted via Amazon EC2 service. The problem starts happening when the site faces a heavy load which in turn spawns a new EC2 instance via AutoScaling. This is good but the issue is ...
6
votes
3answers
5k views

How to optimize Tomcat 6 SSL performance

We're running Tomcat 6 on an Ubuntu 2GB slice on slicehost.com The JSP application fwiw is Open Clinica 3.1 I implemented SSL pretty much by the book as you can see: <Connector port="8443" ...
6
votes
2answers
2k views

HTTP compression in IIS 6.0 causing problems with certain users

We're getting a few sporadic customer calls (less than 0.1% of our users) complaining of not being able to access my company's website - either they get a blank page (if they use IE), or a "Content ...
6
votes
1answer
1k views

Running some benchmarks using ab, and tomcat starts to really slow down

I'm running some benchmarks using apache bench for a java app that is running on tomcat. Say I run a test like: ab -c 10 -n 10000 http://localhost:8080/hello/world It will run just fine. If I ...
6
votes
1answer
1k views

What's the best practice for hot-redeployment of WARs to Tomcat?

What's the best practice for hot-redeployment of WARs to Tomcat? Say that I have a webapp that serves a long-running type of user (logs in in the morning, uses all say), and want non-stop redeployment ...
6
votes
1answer
7k views

How to set default umask for Tomcat webdav servlet?

The title says it all. I need Tomcat's webdav servlet to create files with rw-rw-r-- rights, but it keeps creating it as rw-r--r--. I tried to set up umask in /etc/profile, but it didn't help (...
6
votes
3answers
12k views

How get I the Tomcat AJP-Connectors working?

I want to access Tomcat through the Apache-webserver using connectors. I sticked to the documentation: http://tomcat.apache.org/connectors-doc/generic_howto/quick.html I only modified it a little to ...
6
votes
2answers
7k views

Nginx or Apache as web server in front of Tomcat (Java app)?

just wondering which web server between Apache and Nginx is better supported from Tomcat? I'm attracted in using Nginx for the single-threaded feature. I want to deploy a Java app running on HTTPS. ...
6
votes
2answers
497 views

SSH unresponsive after stopping Tomcat, many ksoftirqd CPU usage

I have a weird issue. Every time I stop Tomcat, SSH becomes very slow, almost totally unresponsive. It takes a minute or even more for SSH to accept any command. When I finally get Tomcat started ...
6
votes
1answer
2k views

Tomcat7 PPA for Ubuntu LTS 10.04.2

Does anyone know of a ppa / repo that will install tomcat7. I know I can install from source but I'd rather if possible use a PPA/Repo. I found a nice one for sun*cough*oracle-java but there does ...
6
votes
1answer
2k views

Tomcat sessions not expiring

I'm having problems with sessions accumulating. I run an instance of Tomcat 6.0.18 on a Windows server. I have 3 apps. I've been having memory issues (close to heap size, or OOM). When I look ...
5
votes
2answers
21k views

Tomcat ClassNotFoundException after switching from openjdk to sun java

We switched our java version from openjdk jre 1.7 to sun jre 1.7 and now starting tomcat gives the following errors: SEVERE: Begin event threw error java.lang.NoClassDefFoundError: org.apache....
5
votes
3answers
4k views

Is Tomcat vulnerable to the Apache DoS vulnerability in CVE-2011-3192?

Is Tomcat affected by this vulnerability? Here is the advisory announcement.
5
votes
4answers
5k views

Glassfish Vs Tomcat (Java app servers)

I am looking at running a java application server on my debian linux webserver, and am looking for a breakdown of the advantages that using either app server would provide me with (or disadvantages). ...
5
votes
2answers
10k views

How to Exclude an URL for Apache Mod_proxy?

We have two Apache server as front-end and 4 tomcat server as back-end configured using mod_proxy module as load balancer. Now, we want to exclude an single tomcat url from the mod_proxy load balancer....
5
votes
2answers
6k views

Overriding the X-Forwarded-For header in haproxy?

In my HAProxy load balancer, I have the following config chunks: defaults mode http log global option httplog clf option ...
5
votes
2answers
4k views

PermGen error in Java, while memory usage seems low

Java application dies from time to time with PermGen space error, but when I look at the memory usage it seems low from what I can tell. It is a Tomcat application, plus there is SOLR server running ...
5
votes
1answer
6k views

tomcat cannot change port 8080 to 80

I want to change the port 8080 to the default HTTP port (80), to use a Jersey Application as HTTP-Restful API. Therefore I replaced the port from 8080 to 80 (within /etc/tomcat7/server.xml) and ...
5
votes
3answers
2k views

Tomcat - Spring Framework - MySQL, Load balancing design

Lets say I have Spring Framework App that is running on Tomcat and uses MySQL database: What would be the best solution in this instance that would allow for sociability (price/performance/...
5
votes
6answers
32k views

Apache load balancer limits with Tomcat over AJP

I have Apache acting as a load balancer in front of 3 Tomcat servers. Occasionally, Apache returns 503 responses, which I would like to remove completely. All 4 servers are not under significant load ...
5
votes
1answer
337 views

Cron daemon reporting “unknown user 'tomcat6'” every day since I removed tomcat

I'm running Ubuntu 12.04. Since I removed tomcat via aptitude purge the other day, I keep getting the following error from Cron daily: /etc/cron.daily/logrotate: error: tomcat6:7 unknown user '...
5
votes
3answers
3k views

Tomcat 6 HTTP log rolling and purging

We run our web app in an Apache Tomcat 6 container. Our code uses SLF4J and Logback and rolls/purges just fine. The Tomcat log (catalina, stdout, etc.) just get deleted on a Tomcat service restart. ...
5
votes
4answers
7k views

Control SSL Cipher Priority/Order for Tomcat to avoid BEAST attack

With the recent buzz about the SSL BEAST vulnerability I wanted to try to improve the security of an SSL protected web site that is based on Tomcat 6. To that end, I tried the google approach of ...
5
votes
5answers
40k views

How can I configure TomCat Java options in a config file?

I'm trying to configure Java options passed into TomCat for a 3rd party application that I'm deploying. The instructions that the app provides are: Open the Tomcat configuration tool from the ...
5
votes
5answers
1k views

What configuration changes do you make to a new Tomcat installation?

After installing Tomcat 5 what configuration changes/tweaks do you apply, and why? Be specific: name what files you edit, what settings you change and why you do it. Some areas of interest: ...
5
votes
3answers
1k views

Virtualbox HTTP load testing, host CPU overload issues

I'm doing HTTP load testing benchmarks (using Apache Benchmark and Siege) on a small Java EE 1.7.0 / Tomcat 7.0.26 application running on a Debian Squeeze 6.0.4 x64 virtualized with Virtualbox 4.1.8. ...
5
votes
2answers
4k views

Tomcat 6 IP address restrictions

I need to protect a certain folder within a web application of mine from access from outside of an defined IP range. With O'Reilly's Tomcat Tips I figured that: <Context path="/path/to/...
5
votes
1answer
2k views

adding a global URI prefix for Tomcat web apps

I am setting up a reverse proxy configuration where all requests whose path starts with '/apps/' should be proxied by Apache to Tomcat. This IMO has 2 benefits: it makes it possible to reserve ...
5
votes
1answer
1k views

Is Tomcat Native worth the trouble?

A little background: I have a webapp that has both Servlet/JSP dynamic content and static files. Pages are always dynamic, and ~10 static resources are served for each page. Everything is served ...
5
votes
1answer
672 views

Compression of Tomcat mod_jk results in Apache httpd

I'm developing a web application locally on my system, serving it using Tomcat (tomcat-7.0.52). In production, I want to front the Tomcat with an Apache httpd (Apache/2.2.15). This works and I ...
5
votes
1answer
5k views

Apache Solr Admin on Tomcat Deployed in WebApps Directory

I am trying to get Apache Solr to work on Redhat6 and Tomcat6 (using these instructions), but get this error when browsing to the admin section, http://localhost:8080/solr-example/admin: HTTP ...
5
votes
1answer
2k views

using wildcards in host-aliases for Tomcat's virtual hosts

I want to do the following with Tomcat 5.5: *.mydomain.com should go to my webapp, located at the virtual host mydomain.com. So I have a virtual host mydomain.com, and I want all *.mydomain.com also ...
4
votes
3answers
418 views

Server recommendation for startup company… Cloud or not?

I have some general questions regarding the "best" way to deploy a web application (and host wordpress blog) for a small startup company with limited capital. Right now we have a simple Ubuntu ...
4
votes
4answers
19k views

How do I force Apache to use HTTPS in conjunction with AJP?

We have an Apache web site, with certain portions powered by JBoss. The question is, how can we get Apache to force all HTTP requests to be re-directed to the HTTPS equivalent? On our old server (...
4
votes
4answers
19k views

How to compress and clean logs with logrotate but not rotate them

I have a Tomcat server which create access logs via a valve (org.apache.catalina.valves.FastCommonAccessLogValve). This valve takes care of rotating the access log file, but not of compressing them ...
4
votes
2answers
12k views

AWS ec2 - open port 8080

I have an AWS ec2 instance. I have installed tomcat and now want to access it via the browser on port 8080. When I try to do so, the browser hangs. I HAVE ADDED 8080 TO THE DEFAULT SECURITY GROUP. I ...
4
votes
2answers
7k views

Discerning GoDaddy SSL Certificate Types

I'm following these instructions for installing a GoDaddy Certificate in Apache Tomcat: http://support.godaddy.com/help/article/5239/generating-a-csr-and-installing-an-ssl-certificate-in-tomcat-...
4
votes
2answers
1k views

Time-based 32-bit overflow in Java? Or SLES11?

This is Tomcat 6.0.18, Java 1.7.0_03 (32-bit), and SLES11 SP2 (64-bit). As for kernel information: $ uname -a Linux server-1 3.0.13-0.27-default #1 SMP Wed Feb 15 13:33:49 UTC 2012 (d73692b) x86_64 ...
4
votes
3answers
10k views

Tomcat intermittent slowdowns, unresponsive, hangs

I've been trying to track down the cause of intermittent slowdowns of our Tomcat server. We get the slowdowns several times a week, where Tomcat will stop responding or take several minutes to ...
4
votes
1answer
2k views

Tomcat JMX Monitoring problem with Perm Gen

i've a problem with our jmx monitoring. we monitor the perm gen of some jvms with jmx. but from time to time the name of the mbean changes from "PS Perm Gen" to "Perm Gen" or vice versa. it happens ...
4
votes
1answer
5k views

Tomcat 8 org.apache.catalina.webresources.Cache.getResource

I have just upgraded from 7.0.52 to 8.0.14. I am getting this for lots of static image files: org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/base/1325/WA6144-...
4
votes
2answers
3k views

Any clear benefit in having multiple Tomcat instances behind an Apache server?

We have 5 physical servers that have a hardware load balancer infront of them, each has an Apache server that uses mod_jk to connect to three (per server) Tomcat instances, all have the exact same web ...
4
votes
1answer
6k views

Need Tomcat5 configured to listen on all interfaces

I have tomcat5 installed on CentOS. which is configured to listen only from 127.0.0.1. How do I configure Tomcat to listen from all interfaces. Connector port config is as under: <Connector ...
4
votes
2answers
936 views

What monitoring solution for servers, databases and web applications ? Nagios or Hyperic? [duplicate]

For the purpose of a startup, I have a loan for one physical dedicated server with several virtual machines inside it For now there is mainly 2 VM on this server: VM "tools", using ubuntu server 10....
4
votes
1answer
6k views

Apache not Forwarding Client x509 Certificate to Tomcat via mod_proxy

I am having difficulties getting a client x509 certificate to be forwarded to Tomcat from Apache using mod_proxy. From observations and reading a few logs it does seem as though the client x509 ...
4
votes
5answers
38k views

Configure an IP address instead of localhost:8080 tomcat eg:192.260.0.2:8080

Can anyone suggest me how to configure my localhost:8080 in tomcat to connecting to an IP address instead of localhost such that i access my localhost in any system in my workplace... i am using ...
4
votes
3answers
4k views

Tomcat 5.5 : How to redirect the logging output to one file per web application

How to configure tomcat 5.5 (or 6.0) that the output of stdout and stderr of each web application / context will go to one logfile? I only managed to get the stderr to a specific logfile - the stdout ...