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

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
2answers
3k 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
763 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
809 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
7k 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
820 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
1k 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
25k 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
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
496 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
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
7answers
17k 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
1answer
577 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
792 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
3answers
681 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
936 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
3answers
3k 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 ...
3
votes
1answer
583 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
448 views

YouTrack on Tomcat 7 using SSL

I have a running YouTrack instance deployed using Tomcat 7 and it works fine on http://example.com:8080/youtrack Apache is already configured to support SSL for the main domain (I have .pem file). ...
3
votes
2answers
2k views

difference between _default_:* and *:* in VirtualHost Context

I want to know the difference between "default:*" and "*:*" in VirtualHost Context. <VirtualHost _default_:*> #... ServerName host.example.com #... </VirtualHost> ...
3
votes
2answers
703 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
4k 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
6k 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
2answers
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
511 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
7k 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
943 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
2k 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
3answers
440 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
2k 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
9k 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
692 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
6k 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 ...
3
votes
1answer
1k views

Apache2 + Solr: Tomcat or Jetty?

I have an (Ubuntu 10.4) server running Apache2 web server. So far so good, I have a few extensions setup just the way I hoped for, I'm happy. But now I'd like to try out Apache Solr because I'd ...
3
votes
2answers
2k views

How do I run my php script?

I'v installed Apache Tomcat and it's running. I have a php file which I want to run. Where do I have to put my php file so that going to http://localhost:8080/myPage.php (in my browser) will result in ...
3
votes
1answer
764 views

PHP and JSP running on same machine.. Tomcat on Apache

Sorry if this has been posted/answered already, but I cannot find the simple answer. I have two applications one JSP and one PHP both hosted on same machine running apache and tomcat. Apache is ...
3
votes
5answers
7k views

mod_jk problem: Tomcat is probably not started or is listening on the wrong port

I am running some application on Tomcat 6.0.26. There is Apache in front of web server talking to it over mod_jk. Every few hours when I try to access application browser simply spins, and no content ...
3
votes
1answer
37 views

why is Tomcat ajp connection by default enabled

The Tomcat server configuration (server.xml) has AJP connector enabled by default. And so tomcat by default listens at port 8009. Why is this by default enabled ? I thought there will be only few ...
3
votes
1answer
2k views

Adding a docBase for Virtual Host using the Tomcat Virtual Host Manager

In the Tomcat Virtual Host Manager there is an option to add a virtual host with options for: Name Aliases App base AutoDeploy DeployOnStartup DeployXML UnpackWARs Manager App However there doesn't ...
3
votes
1answer
109 views

How I can make Tomcat 7 to respond with static file slow?

For the testing purposes I need to make Tomcat to respond with late http responses. It is quite clear how to do it for the servlet responses. But it is not clear if I want Tomcat to answer, say with ...
3
votes
1answer
862 views

Load Balancing not working as expected in Apache in round-robin mode

We are facing some unexpected behavior with round-robin load balancing on Apache when one of the Tomcat servers goes down. Our Setup: we have 2 Apache web servers on the front end using mod_jk module ...
3
votes
1answer
1k views

Tell Tomcat to drop requests instead of dying “All threads (150) are currently busy”

My Tomcat 6.0.26 sometimes dies saying: SEVERE: All threads (150) are currently busy, waiting. Increase maxThreads (150) or check the servlet status ... then Tomcat shuts down, and users can't ...
3
votes
1answer
248 views

Fedora 4, Apache 2.2.0, tomcat 5.5.7, openssl 0.9.7f, SSL certificates, domain names and IP addresses

I recently became the new admin of a old system that everybody approaches with the "don't touch it or it might break" mentality. Now I am being told to "touch it, and don't break it!" Task: What I ...
3
votes
1answer
466 views

TeamCity use subdomain on Windows Machine

I have a TeamCity Install running on a Windows Machine which works on http://localhost:9999 I want to make my TeamCity web server available to external developers for a specific host entry. i.e. ...