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 :)


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


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.

  • @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="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">






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.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy