You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2012/07/01 09:20:32 UTC

[Bug 53492] New: Make JspC shell multithreaded

https://issues.apache.org/bugzilla/show_bug.cgi?id=53492

          Priority: P2
            Bug ID: 53492
          Assignee: dev@tomcat.apache.org
           Summary: Make JspC shell multithreaded
          Severity: enhancement
    Classification: Unclassified
                OS: Mac OS X 10.4
          Reporter: dan@fabulich.com
          Hardware: PC
            Status: NEW
           Version: trunk
         Component: Jasper
           Product: Tomcat 7

Created attachment 29016
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29016&action=edit
patch

Jasper works great multi-threaded. Using two threads per core substantially
improves throughput on my test machine, reducing the time it takes to build
from 9 minutes to 2 minutes.

The attached patch adds a new -threadCount command-line argument to JspC, as
well as a setThreadCount setter, suitable for use in an Ant task. It accepts a
positive integer, or a core factor like "2.0C" which means two threads per
core. 2.0C is the default.

Note that on my machine it didn't help that much unless JspC was also
configured to -compile the classes.

I've attached a patch.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 53492] Make JspC shell multithreaded

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53492

Marc Pompl <ma...@lynorics.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marc.pompl@lynorics.de

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 53492] Make JspC shell multithreaded

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53492

--- Comment #2 from Dan Fabulich <da...@fabulich.com> ---
I'd love to have this backported to Tomcat 7 as well. The patch should apply
cleanly to the 7.0.x branch.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 53492] Make JspC shell multithreaded

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53492

Dan Fabulich <da...@fabulich.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #29016|0                           |1
        is obsolete|                            |

--- Comment #1 from Dan Fabulich <da...@fabulich.com> ---
Created attachment 29017
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29017&action=edit
patch

Bugzilla screwed up the mime type; trying again

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org