In your JBoss server there is a file that can be amended to alter the URI encoding and the number of threads used by JBoss. Additionally if you’re using mod_JK to link Apache HTTP and JBoss/Tomcat you can specify a JVM route parameter here that allows Apache to route incoming requests to the correct node.
To do this we need to look at the following file:
\jboss\server\[SERVER NAME]\deploy\jbossweb-tomcat55.sar\server.xml
In here we can amend a couple of parameters and add in a few extra values. For thread numbers and URI encoding look in the file
Adding and changing Mod JK JVM route, URI encoding and thread settings for JBoss