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

4
votes
1answer
338 views

Does jmxremote affect tomcat performance?

I'd like to enable jmxremote to monitor Apache Tomcat resources utilization with Munin, but I want to know if this will affect the servers performance, is so, how much will it be impacted.
4
votes
6answers
760 views

load balancing in Tomcat

I want to implement the load balancing in tomcat 6.0 so that we can create more than one instance of a tomcat and when any of the instance is down then other instance will run our application. so that ...
4
votes
0answers
369 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 ...
4
votes
0answers
1k views

Tomcat/CF10/IIS7.5 Connector Tuning Help (503 Errors)

Problem: After a undetermined amount of time, all websites running in an application pool return 503 errors as IIS has stopped pool due to Rapid Failures from the pool. Increasing the number of ...
4
votes
1answer
2k views

Tomcat url rewrite fails with 404, but browsing directly returns a 200

I have a web application deployed in webapps/appname and I'm trying to add in rewrite rules to example.org/appname-slow to rewrite to example.org/appname?delay=1. I have the following in ...
4
votes
2answers
321 views

Tomcat Denial of Service due to large packets

I had asked this question on ITSecurity, but I felt this question is better placed here. On a recent assesment, I found that sending large (>5 MB) requests to a tomcat server causes 100% CPU usage on ...
4
votes
0answers
3k views

Tomcat fails to find a key entry in keystore

I am installing a SSL cert in my Tomcat server, but it fails to find the key entry in my keystore file. If I don't specify keyAlias="mykey" it shows me the following error message: ...
3
votes
3answers
4k views

How to configure my Elastic Load Balancer to balance SSL traffic?

I'm totally lost so I apologize if I'm not making sense. I need to create a load balancer in EC2 for our application servers. I'm trying make the ELB balance traffic over SSL (8443). However, it's ...
3
votes
3answers
12k 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 ...
3
votes
2answers
10k 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 ...
3
votes
5answers
19k views

Installing Tomcat on CentOS 5

Disclaimer: I am not a server admin, I am a windows user that has lead a life of sinful installation wizards and drag and drop I'm attempting to install Tomcat on CentOS 5 hosted by a MediaTemple ...
3
votes
2answers
1k views

Difference between calling tomcat shutdown script and killing process

On our linux boxes, we have multiple users who run tomcat. Currently we are using process kill commands to kill the respective user's tomcat , instead of using shutdown.sh Are there any downsides of ...
3
votes
4answers
2k views

Tomcat denial of service

The last two days our Tomcat 5.5 Linux-based webserver has been broken down within minutes by starting thousands of downloads and stopping them. Some request paths in the access log end with a ...
3
votes
2answers
4k views

Java eats %100 cpu up

I got this CentOS server in which a Java WebApp (Tomcat6+Hibernate+MySQL+Struts2) is being run. Usually cpu usage is about 10% but sometimes all of a sudden it goes to 100% and the application ...
3
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 ...
3
votes
2answers
856 views

Is there a Apache or Nginx equivalent to the IIS “drain stop”?

I come from a .NET background and there are many things I loved about it along side many things I hated. IIS was, in general, one of those things I hated. However, one really nice feature of IIS was ...
3
votes
1answer
4k views

How to disable ETag headers in Tomcat

Tomcat seems to send an ETag header with each response by default. I'd like to disable these for reasons outlined here. I know I can strip them out in my Apache configuration, but is there any way to ...
3
votes
3answers
867 views

Directing DNS to different ports

Greetings all, I have a server with two tomcat services (one being run on port 80, the other 8080). What I'm wanting to achieve is to have two different DNS records for these two ports, so they'll ...
3
votes
2answers
8k views

How can I set use mod_proxy_ajp with Apache and Tomcat?

I'd like to run Apache and Tomcat on an RHEL 5 server with Apache handling Ruby on Rails apps (through mod_rails/Passenger) and Tomcat handling Java apps. Under Apache, each Rails app will have a URL ...
3
votes
2answers
2k views

Tomcat7 hangs on deploying apps

I'm having some very strange behavior in Tomcat 7 on Ubuntu 14.04. I created a new VPS, installed default-jdk and other simple stuff. Downloaded and unpacked Tomcat 7. Checked that it runs on ...
3
votes
2answers
840 views

Where to set JAVA_HOME in Ubuntu

I am trying to configure Tomcat to know where JAVA_HOME is. I am used to Windows :) ...which file should I edit to add the Java info, and where is it located?
3
votes
1answer
2k views

Which is more secure: Tomcat standalone or Tomcat behind Apache?

This question is not about performance, nor about load-balancing, etc. Which would be more secure: running Tomcat in standalone mode or running Tomcat behind apache? The thing is, Tomcat is written ...
3
votes
7answers
27k 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 ...
3
votes
2answers
1k views

gzip on httpd or on Tomcat?

In a Java web application running in an Apache Tomcat servlet container with an Apache httpd in front of it: is it better to use enable GZIP compression on Tomcat or on httpd level? is it better to ...
3
votes
7answers
22k views

Tomcat won't start - how to check that port 8080 is not in use

Tomcat won't start, and it has worked perfectly before. I suspect something else is running on port 8080. I am running Windows Vista. How do I check that nothing else is using port 8080. I have ...
3
votes
2answers
5k views

Setting up IIS7 and TomCat on single machine with multiple IP

Given: two dns names which points to one machine: "mysrv" and "myapp.mysrv". This machine has two ip address (1.1.1.1 and 1.1.1.2). I need to set up IIS7 on 1.1.1.1 for myapp.mysrv and TomCat for ...
3
votes
2answers
6k views

HTTP gzip compression not working for css or javascript in tomcat 6

Connector settings: <Connector ... compression="2048" noCompressionUserAgents="gozilla, traviata" compressionMimeType="text/html,text/xml,text/plain,text/css,text/javascript"/> This seems to ...
3
votes
1answer
622 views

Measuring load - %CPU in top is different than %us

When I run TOP on a remote server, I see a very small system utilization (3.8%us). However, for the actual process I am seeing 29.6% of the CPU. Since this server has 8 CPU cores, is the %CPU the ...
3
votes
3answers
882 views

Apache/Tomcat Parameters

I have a Medium server on EC2. I don't know that much about Apache or Tomcat - they are up and running, but other than that I don't have advanced knowledge of how to tinker. I know that I can set the ...
3
votes
2answers
3k views

Monitoring Tomcat Webapps [closed]

We have several webapps deployed to a single Tomcat 7 server. Is there a way to monitor the status (uptime, memory usage, etc.) of each webapp deployed to a Tomcat server? We are using Nagios to ...
3
votes
1answer
637 views

Tomcat and nginx sizing

I manage an application that is deployed on Tomcat servers, with nginx in front, as a reverse proxy. I need some help for the sizing of thread pools / connection pools / ... I find quite a lot of ...
3
votes
3answers
735 views

Serving Tomcat under a sub-URI

I have a lot of services attached to a single domain, so I was hoping to serve Tomcat under, say, http://server_name/tomcat, with Nginx as a reverse proxy to Tomcat's HTTP connector. The Nginx ...
3
votes
2answers
941 views

What is consuming so much memory?

I am having a few problems with my server. It is throwing up intermittant errors and running quite slow. Here is the output from top: top - 07:33:33 up 18:57, 1 user, load average: 0.00, 0.00, 0.00 ...
3
votes
1answer
592 views

Apache HTTP server mapping to tomcat error

When I have Apache trying to map to tomcat I have the following worker.properties file: workers.java_home="C:/Program Files/Java/jdk1.6.0_13" workers.list=ajp13 workers.ajp13.port=8509 ...
3
votes
2answers
825 views

Can Tomcat reload its SSL certificate without being restarted?

I have a background process that can update the keystore Tomcat uses for its SSL credentials. I would like to be able to have Tomcat reload this automatically without needing a manual restart. Is ...
3
votes
2answers
5k views

How to reduce the memory used by Tomcat?

I bought a virtual server with 1gb of memory to run java web site application. I have installed Tomcat 6.0.33 . Each time i run tomcat, it s taking around 450 mb of memory. I tried everything to ...
3
votes
1answer
7k views

How can I disable logging in Tomcat 7?

I have a Tomcat 7 server running in a VM that has very little disk space (20G). Over the course of a few days Tomcat will fill the space with logging info (usually about 15G before it runs out). ...
3
votes
3answers
4k views

Apache Tomcat Windows service ignoring JAVA_HOME environment variable

I'm trying to get Apache Tomcat set up on a Windows Server 2003 machine. If I use the command line version (catalina.bat start) it all works fine, but if I try and use it as a Windows Service it seems ...
3
votes
1answer
565 views

Tomcat - Exporting Private Key?

So I've an appliance that uses SSL certs for different functions. I generated a CSE using keytool using these commands: keytool -genkey -alias tomcat -keyalg RSA -keystore /opt/msw/data/keystore ...
3
votes
3answers
1k views

Rolling deploys with Tomcats behind an HAProxy instance

I have three Tomcat instances running behind an HAProxy. When I roll out changes to my web applications, I'd like to do a rolling deploy (i.e. bounce one Tomcat at a time) so users don't see any ...
3
votes
5answers
8k views

Trying to update certificate (just renewed) to existing keystore on Tomcat server

I have a .crt file to update the server thats running Tomcat 5.5. If I run: keytool - import -alias tomcat -keystore tomcat.ks - trustcacerts -file website.net.crt I get the following error: ...
3
votes
1answer
1k views

How can I deploy a ClickOnce application via Tomcat?

We're in the need of deploying a .NET clickonce application through an Apacke Tomcat 6. server. Does anyone have any tips or caveats for setting this up ? (Or is ist just so straight foreward I don't ...
3
votes
1answer
3k views

SolrCore initialization failures

When I visit the dashboard it tells me: SolrCore initialization failures The only warning line in /var/log/tomcat6/catalina.out is: WARNING: New index directory detected: old=null ...
3
votes
2answers
666 views

Gerrit ssh key setup on windows server

I am attempting to configure google's 'Gerrit' code review web app on a Windows server 2008 virtual machine on our internal network. We are using Apache Tomcat (6.0.36) to host the web app and have ...
3
votes
3answers
516 views

Is it generally better to compress content on the proxy server or the app server?

We're using an F5 for load balancing and SSL proxying. Behind it we're serving up java applications with Tomcat instances. These are fairly small applications - hundreds of concurrent users. I'd ...
3
votes
2answers
3k views

How to setup tomcat 7 as a server on windows 2008 server

I setup the tomcat7 as a service as below: c:\Program Files (x86)\Tomcat7\apache-tomcat-7.0.32\bin>service.bat install Installing the service 'Tomcat7' ... Using CATALINA_HOME: "C:\Program ...
3
votes
1answer
11k views

How to configure tomcat to rollover catalina.log log files

I'm trying to configure my tomcat to rollover log files once a size limit is reached. I'm running tomcat as a windows service and am redirecting all my stdout to catalina.log. This is how I configured ...
3
votes
1answer
752 views

Tomcat Solr Memory Usage

I am running solr on tomcat server on linux server, when I use the top command I see the "VIRT" very high PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 4786 root 20 0 ...
3
votes
3answers
7k views

Apache2 reverse proxy seems to intermittently freeze?

Apache2 reverse proxy seems to intermittently freeze when proxying a tomcat web app. The problem is that every so often (once or twice a day usually after inactivity) when I try to log into this ...
3
votes
1answer
2k views

Tomcat JMX Monitoring - Busy Threads?

I'm trying to monitor Tomcat 6.0 using JMX. Specifically, I want to monitor the number of active threads servicing requests so I can get an alert if it approaches the maximum. While I have JMX ...