Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My web server container is Tomcat 6.0.14

JVM 1.6.0_17-b04


Im sending request from the same local machine via AMF to BlazeDS server and only first request takes about 10secend to proceed. Each next request is preceeding correctly (very fast, less than 0.5s). Anyone know what's the reason of soo slow responsing?

I'm a developer, not administrator so please be patient :)

share|improve this question

Class loading and user state creation are the two most obvious likely causes.

share|improve this answer

Yes, general loading of classes is most likely the culprit. Do you have the messagebroker servlet set to load on startup in the web.xml? If not, that might help get a bunch of stuff loaded when the server starts up before the first request comes in.

share|improve this answer
@Marplesoft have you got mabey any idea how to hoke up MessageBrokerServler to server web.xml? – beynar Jan 5 '10 at 9:04

In server web.xml file i've got only 2 servlets registred default (org.apache.catalina.servlets.DefaultServlet) and jsp (org.apache.jasper.servlet.JspServlet)

Web.xml file of my application:

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="" xmlns:xsi="" xsi:schemaLocation="">






When I copy servlet and servlet mapping definition of MessageBrookerServlet from application web.xml to server web.xml, tomcat throws exceptions ClassNotFoundException while startup. Here I upload entire tomcat startup debug output.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.