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 (1)

26
votes
3answers
23k views

What's the maximum URL length in Tomcat?

And is it configurable? Can I set up Tomcat so that a URL with, say, 200K of query params goes through successfully to the contained servlet? Yes, I know one should use POST when you have lots of ...
25
votes
9answers
5k views

Is it a Best Industry practice to restart web servers periodically? [closed]

We have a web application (developed by a third party) that runs on Tomcat. We have been getting very bad performance from the application. The application developer is claiming that it is an ...
25
votes
14answers
3k views

Load-balancer options

I am looking at a number of possible options for load-balancing. So far, I am constrained to the following options: DNS server load-balancer, balancing to a cluster of tomcat servers, with ...
25
votes
5answers
29k views

Configure nginx for jboss/tomcat

In order to pass traffic to JBoss/TomCat on port 80 using Apache we used to install and configure mod_jk. Is there an equivalent for nginx? Basically want all port 80 traffic to be passed to jboss.
24
votes
4answers
76k views

Where to set java heap options (e.g. -Xmx) for Tomcat 6 under Ubuntu 9.04?

I'm running Tomcat using the tomcat6 package from Ubuntu 9.04, which makes a daemon out of Tomcat using jsvc. I'd like to know the proper way to set Java heap options like -Xmx for Tomcat. I'd like to ...
16
votes
7answers
40k views

Apache+Tomcat having problems communicating. Unclear error messages. Bringing down websites hosted under Tomcat

Setup: Fedora 8 Apache 2.2.8 Tomcat 5.5.8 Apache is forwarding requests using AJP. Problem: After a certain period of time (no constant at all, can be between an hour or two, or one or more days) ...
16
votes
3answers
16k views

How do I start Apache Tomcat at boot on Mac OS X?

I observed that there is no full guide for installing tomcat on OS X that will include setting it up to start at boot time. Here is the quick guide: install macports suport port upgrade sudo port ...
15
votes
5answers
2k views

Alternatives to Apache

Our current stack is Apache + Tomcat + MySQL, using ProxyPass AJP to fire requests from Apache to Tomcat. We also run PHP for Wordpress on the same sites, and so need working .htaccess files. In ...
12
votes
9answers
77k views

Unable to connect to mysql through JDBC connector through Tomcat or externally

I've installed a stock mysql 5.5 installation, and while I can connect to the mysql service via the mysql command, and the service seems to be running, I cannot connect to it through spring+tomcat or ...
12
votes
7answers
12k views

Apache Tomcat chokes after 300 connections

We have an apache webserver in front of Tomcat hosted on EC2, instance type is extra large with 34GB memory. Our application deals with lot of external webservices and we have a very lousy external ...
11
votes
7answers
6k views

Why does tomcat like deleting my context.xml file?

I'm developing a web-based Java application at work and (obviously) have to run it locally during development. I've figured out the Tomcat docs and have a suitable context.xml file in ...
10
votes
1answer
12k views

How to configure Tomcat to only listen to 127.0.0.1?

The environment is Ubuntu 10.04.1 LTS running Tomcat 6 and Apache 2.2 from the repos. Apache is configured to proxy requests to Tomcat, so I really want to turn off Tomcat listening to requests on ...
10
votes
5answers
4k views

is it really necessary to run Apache as a front-end to Glassfish/JBoss/Tomcat?

I'm primarily a Java developer, and I come to you with a question that straddles the divide between developers and sysadmins. Years ago, when it was a novel thing to run Tomcat as an app server, it ...
10
votes
6answers
8k views

Open source tomcat log viewer

I'm managing several tomcat instances (aprox 30-35) and looking for some console to centralize the logs. I tried php-syslog-ng before (no with tomcat), and found it useful. I would like that these ...
9
votes
5answers
9k views

What steps should I take to secure Tomcat 6.x?

I am in the process of setting up an new Tomcat deployment, and want it to be as secure as possible. I have created a 'jakarta' user and have jsvc running Tomcat as a daemon. Any tips on directory ...
9
votes
4answers
2k views

JVM Memory Consumption

I am trying to run tomcat on a low memory system (150-256Mb). Even though I start the JVM with -Xmx64m (which should be the default anyway), the process immediately takes up 200Mb+. I wonder why the ...
8
votes
1answer
9k views

How Do I Install Gerrit Under Tomcat with LDAP?

I'm trying to find good instructions for installing Gerrit under Tomcat with LDAP support. I need this installed on a Windows 2008 Server, preferably. However, I can opt for Linux if not possible. ...
8
votes
3answers
25k views

How do I disable tomcat caching? I'm having weird static file problems

How do I prevent tomcat from caching? I have css and basic html files that I load and use via ajax, and unless I restart tomcat, the changes do not seem to reflect. Different machines, different ...
8
votes
4answers
50k views

Where are my Tomcat Logs?

I installed Tomcat6 on a Ubuntu 9.04 server using apt-get install tomcat6. I uploaded a WAR using the manager interface and tried to start the application but get a pretty generic error on the Web ...
8
votes
1answer
1k views

Tomcat: possible to exclude jars during app deployment?

By default, Tomcat prevents webapps from loading several .jars which are part of the Tomcat distribution (eg the servlet and JSP APIs) - is it possible to configure others to also be excluded? If it ...
8
votes
3answers
9k views

Good Free Tomcat Log Analyser? [closed]

Could someone recommend a good and free program for analysing Apache Tomcat logs. I don't need real-time analysis or anything like that. I have a log and I just want a quick and easy way to get some ...
7
votes
5answers
13k views

Tomcat 6.0 service does not start: java/lang/NoClassDefFoundError

I installed Tomcat on my Windows server but I can't get it to start. I start the service and I see the progress bar, but it fails. I installed the Java Runtime Environment Version 6 and created ...
7
votes
1answer
5k views

Apache httpd error “proxy: ap_get_scoreboard_lb” with ProxyPass

I set up apache to proxy for tomcat but I am getting the following error when I target the page. I sometimes get a blank page or a 503: [Error] [Mon Dec 03 04:58:16 2012] [error] proxy: ...
7
votes
1answer
2k views

Tomcat Excessive Memory Consumption

I have a fresh server running Ubuntu 11.04 (Natty) (64-bit). I started off by installing openjdk and tomcat6. When the Tomcat server starts up, it immediately uses 480+ MB of memory. This seems way ...
7
votes
1answer
1k views

Tomcat 7 trailing slash issue with webapps

Recently I upgraded my tomcat server from 6.x version to the most recent 7.x version. I came up with little trouble, hoping to get help. I have an application calls MyApp On tomcat6, when I went to ...
6
votes
8answers
860 views

How can I prevent that a server admin can see data?

I am running Apache Tomcat on a Windows 2003 Server and I have data stored in a mySQL database. How can I prevent that a server admin can see any data?
6
votes
4answers
2k views

mod_jk or mod_proxy

I tried googling and the only articles I found comparing these two were from 2005 down to 2002. I just set up my first Tomcat instance to run Jira for a project I'm doing. I want to proxy this ...
6
votes
6answers
9k views

How to block access to a file from being served by Tomcat?

We have a few tomcat servers and we just discovered that some files that we don't want public to have access to those files. To exemplify: Let say we have a folder /var/www/html/ that we are ...
6
votes
4answers
7k views

which JVM is best for Tomcat?

I have Tomcat 6.0 up and running. I went to tweak the memory sizes and realized that I have it running on the Sun JDK 1.6 client JVM. I don't have the Sun server JVM installed: C:\>java -client ...
6
votes
3answers
4k views

Mapping hudson to a subdomain through nginx proxying

I'm now trying to setup nginx as a reverse proxy for Hudson so it can be access on http://build.example.com directly. I've already installed Hudson on Tomcat and verified that I can access Hudson on ...
6
votes
4answers
5k views

Configure IIS 7 Reverse Proxy to connect to TeamCity Tomcat

We have an IIS 7 webserver configured and would like to create a reverse proxy for a TeamCity installation using Tomcat on the same machine. The IIS server site is https://somesite and I would like ...
6
votes
2answers
9k 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
1k 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
3k 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
3answers
4k views

Apache + Tomcat VS Stand Alone Tomcat or GlassFish

I am setting up a Debian server to serve Java web applications. I have done quite a bit of research for several weeks now. Tomcat's web site says it is better to use stand alone Tomcat for speed if ...
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
852 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
6k views

Why does tomcat7 log into both catalina.out and catalina.YYYY-MM-DD.log?

On OpenBSD 5.2, the default installation of tomcat-7.0.29 seems to be logging all errors into both catalina.out and catalina.YYYY-MM-DD.log. Cns# ll /var/tomcat/logs/catalina.* -rw-r--r-- 1 _tomcat ...
6
votes
2answers
345 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 ...
5
votes
3answers
3k 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
4k 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
4k 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
2k 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
3answers
4k 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
2answers
17k views

Configure Tomcat to use a different temp directory for file uploads

My Tomcat instance is sitting on a drive with little remaining space. The application I'm running does move file uploads off the server and into a NAS. During the upload, however, Tomcat keeps this ...
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
767 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
1answer
683 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 ...
5
votes
2answers
4k 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. ...