Bugs item #951985, was opened at 2004-05-11 08:37
Message generated for change (Comment added) made by starksm
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=951985&group_id=22866
Category: JBossWeb
Group: v3.2
>Status: Pending
>Resolution: Invalid
Priority: 5
Submitted By: Jeff DePons (snoped)
>Assigned to: Scott M Stark (starksm)
Summary: Capital drive letter in depoyment scanner URL's attribute
Initial Comment:
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>
----------------------------------------------------------------------
>Comment By: Scott M Stark (starksm)
Date: 2004-06-19 22:19
Message:
Logged In: YES
user_id=175228
The given url is not a valid absolute file url. The correct
form for a directory is:
file:/C:/home/mydeploydir/
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=951985&group_id=22866
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development