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)

5
votes
1answer
4k 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 ...
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
807 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
734 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. ...
5
votes
2answers
2k views

Tomcat 6 IP 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 ...
5
votes
1answer
589 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
4k 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
0answers
998 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 ...
4
votes
3answers
380 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
3answers
2k views

Why doesn't the aws cloud formation install the packages that I specify?

I'm very new to the AWS services. I'm trying to use the AWS cloud formation and I created a template. The template is error free and I am able to create machines using that. But I have added some ...
4
votes
4answers
15k 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
3answers
6k 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
3answers
1k 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 ...
4
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. ...
4
votes
2answers
1k 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
2k views

ProxyPass entire domain to Tomcat, including root

I have configured my VirtualHost example.com to proxy all requests to a Tomcat server ProxyPass / http://localhost:8088/app ProxyPassReverse / http://localhost:8088/app This works fine for URLs ...
4
votes
2answers
763 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 ...
4
votes
1answer
3k 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
3answers
14k views

How to setup tomcat on fedora?

I am new to linux I want to setup tomcat 6 on fedora 64 bit. i some how managed to install tomcat by using following command yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps but i don't at ...
4
votes
1answer
10k views

tomcat processParameters complains about “invalid chunk ignored”

I am hosting a software system running under tomcat for quite a number of customers. Some of these send invalid URLs as request. These URLs may contain "&=" or "&&", which is not within ...
4
votes
2answers
658 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 ...
4
votes
5answers
237 views

What are the 'gotcha's' a software developer needs to look out for if tasked with setting up a production ready server?

As a software developer I am very used to installing my typical stack (java, mysql and tomcat/apache) on my development machine. But setting up and securing a production machine is not something I ...
4
votes
5answers
14k 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
2answers
2k views

Controlling tomcat with supervisor

Is there a way to "gracefully" shutdown tomcat when controlling via supervisor? My understanding is Tomcat's shutdown.sh script talks to tomcat on the shutdown port to initiate a graceful shutdown. ...
4
votes
2answers
5k views

Can't connect to Tomcat even though it's running

I've tried to install Apache Tomcat 5.5 and 6 in 2 different ways (from source and with apt-get) on Debian 5 and Debian 6 -- no success. The server is running but I can't connect to it. netstat -a: ...
4
votes
1answer
198 views

Apache 2.2 with Tomcat

i'm trying to set up a dev environment with apache2.2 + tomcat + mysql. Of course i already have apache2.2 + mysql working fine with php but, when i look at google about how to setup tomcat, i find a ...
4
votes
3answers
7k views

How to redirect Apache to different ports on a GlassFish server?

I have a GlassFish instance running different services on different ports. An Apache web server sits in front of the GlassFish, and I want to set up virtual hosts on Apache to redirect to certain ...
4
votes
1answer
1k views

Correct way to configure Tomcat virtual hosts

If I want to access Tomcat directly from a remote host, i.e. not through Apache, should I configure the connector to use localhost or the external IP/hostname? What if it's on a Windows server and I ...
4
votes
1answer
654 views

Varnish + Tomcat vs Apache + mod_jk + Tomcat

Does anyone have some performance metrics for Varnish in front of 1) Tomcat or 2) Apache with mod_jk (connected to Tomcat). I know that the AJP connector is supposedly faster than HTTP, but I was ...
4
votes
1answer
547 views

ssl certificate installation on tomcat

I am trying to create a new certificate for my scala play framework on ubuntu but I cannot import my key with keytool. I haven't been able to figure out what is causing it so I thought I'd see here if ...
4
votes
2answers
5k 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 ...
4
votes
1answer
770 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 ...
4
votes
2answers
6k 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 ...
4
votes
1answer
285 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
741 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
2answers
289 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
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 ...
3
votes
3answers
8k 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
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
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
7k views

Increasing timeout for mod_proxy_ajp connections

I've got my apache (2.2.3) talking to tomcat 6.something through mod_proxy_ajp. I have some ridiculously long lived requests (2-6 minutes) and I think we're hitting some default timeout somewhere... ...
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
710 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
3k 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
759 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
4answers
8k views

tomcat6 on CentOS 6: cannot stop/restart service

I have this problem with stopping and starting tomcat6 (package from the repos). I've seen with several CentOS 6 and RHEL 6 boxes. The symptoms are that when I want to restart or stop tomcat6 it just ...
3
votes
2answers
798 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?