JBoss Community

Logs for rejected http post requests

created by Sanoj Kumar in JBoss Web Development - View the full discussion

Hi All,

 

I have a Webservice which is deployed as a web-application in Jboss 5.1. I have to limit the number of requests that can be processed by my application.

 

I have set the maxPoolSize to "1" in jboss-service.xml:

<mbean code="org.jboss.util.threadpool.BasicThreadPool"

      name="jboss.system:service=ThreadPool">

      <attribute name="Name">JBoss System Threads</attribute>

      <attribute name="ThreadGroupName">System Threads</attribute>

      <attribute name="KeepAliveTime">60000</attribute>

      <attribute name="MaximumPoolSize">1</attribute>

      <attribute name="MaximumQueueSize">1</attribute>

      <attribute name="BlockingMode">abort</attribute>

</mbean>

 

This did not have much impact and when I tried with parallel requests, all the requests were getting processed, I changed the bolcking mode to "discard" as well but did not work.

 

I then did the change in http connector in server.xml:

<Connector maxThreads="1" acceptCount="1" allowTrace="true" debug="1" protocol="HTTP/1.1" port="8080" address="${jboss.bind.address}"

               connectionTimeout="20000" redirectPort="8443" />

 

When I tried this, then the requests started getting rejected but I do not see any logs for all these rejected http post requests. It is very strange, I changed the logging levels in jboss-log4j.xml but did not work as well.

 

Please let me know if there is a way through which all these rejected http post requests can be logged in jboss log files.

Reply to this message by going to Community

Start a new discussion in JBoss Web Development at Community