Bugs item #951985, was opened at 2004-05-11 10:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=951985&group_id=22866

Category: JBossWeb
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeff DePons (snoped)
Assigned to: Nobody/Anonymous (nobody)
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>

----------------------------------------------------------------------

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 Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to