Details
-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
JBossAS-3.2.6 Final
-
None
Description
SourceForge Submitter: snoped .
If you add a file url to the deployment scanners URLs
attribute and use a capital drive letter, the server
performance drops drastically. There are no errors in
any of the logs, but the problem is obvious if you try
it. Replacing the drive letter with a lowercase letter
solves the problem.
I am using jboss the jboss-tomcat 3.2.3 bundle, and
have reproduce the problem and solution on win
2000/xp/2003. I am using p4 class machines with 512
ram, and jdk 1.4.2_03
To reproduce the problem,
1. Create a directory outside the jboss distribution,
and drop a war file in it.
2. Add the fully qualified path to the directory to the
URLs attribute of the deployment scanner in
jboss-service.xml
3. Up case the drive letter. ex. C:
4. Start up the server and access the pages in the war
file.
It will take about 60-80 seconds to compile each JSP.
5. shutdown the server, and lowercase the drive letter.
ex c:
6. Start up the server and access some pages in the war
file that you haven't compiled yet (or kill your work
directory and access the same pages).
It will take 3-6 seconds to compile each JSP.
Note that there is not just a slowdown in JSP
compilation, there is a slowdown in almost any code
that runs. If you need another example, startup and
access a web service.
Thanks,
JD
Example mbean config...
<mbean
code="org.jboss.deployment.scanner.URLDeploymentScanner"
name="jboss.deployment:type=DeploymentScanner,flavor=URL">
<depends
optional-attribute-name="Deployer">jboss.system:service=MainDeployer</depends>
<attribute
name="URLComparator">org.jboss.deployment.DeploymentSorter</attribute>
<attribute
name="Filter">org.jboss.deployment.scanner.DeploymentFilter</attribute>
<attribute name="ScanPeriod">5000</attribute>
<attribute name="URLs">
deploy/,file://C:/home/mydeploydir
</attribute>
<attribute name="RecursiveSearch">True</attribute>
</mbean>