| Summary: | Perf: Server module initialization consumes too much cpu resources | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Java EE Tools | Reporter: | Patric Rufflar <patric> | ||||
| Component: | jst.j2ee | Assignee: | Dimitar Giormov <dimitar.giormov> | ||||
| Status: | ASSIGNED --- | QA Contact: | Chuck Bridgham <cbridgha> | ||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | ccc, stryker | ||||
| Version: | 3.2.3 | ||||||
| Target Milestone: | Future | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Patric Rufflar
Created attachment 193478 [details]
profiling results
Patric, I am not sure what we can do to improve here- the delay is simple- due to the fact that EJB 3.x modules do not need a deployment descriptor, we must check for annotated beans within the .jar file. You can state that you do not have EJBs, but we have little choice but to check for any of those annotations. (Although 6 minutes is quite a while... do you have a workspace with binary jar files with a lot of classes?) Carl, thanks for commenting this. If the amount of work of the EJB detection cannot be reduced - what about introducing some kind of project preference of disabling the scan? BTW: When/How often will the project be scanned for EJB beans? Our project depends on several jar files with a total file size of about 45 MB. Carl,
What benefit does a user actually see from having their jar recognized as an EJB jar? I realize it is then treated as an EJB module, and published via its own call (publish takes IModule[], such as IModule[]{ear}, or IModule[]{ear, childEJB}), but what other benefits does the user get from scanning for all the ejbs in a project?
During publishing, if a jar is not recognized as a child module, it still gets published (assuming it's mapped in properly via assembly configuration) as a regular resource.
Just trying to get a handle on what we would lose in this case if an option for a user to not scan for EJBs were added.
Assigning to Kaloyan for initial investigation - his team are the ones that are responsible for the EJB scanning. Dimitar, could you take a look and tell us how much effort is to switch-off the EJB scanning and what functionality will be lost because of this? re-target to 3.4.2 Moving to future - please re-target as appropriate |