Skip to content
This repository has been archived by the owner on May 28, 2018. It is now read-only.

Jersey - CdiComponentProvider.isJaxRsComponentType - Throtelling WeldBoostrap phsae #3703

Open
99sono opened this issue Oct 24, 2017 · 1 comment

Comments

@99sono
Copy link

99sono commented Oct 24, 2017

Hi,
In weblogic 12.2.1.2, Jersey and the:
CdiComponentProvider.isJaxRsComponentType

Is throttling deployment speed.
We have an application where this annotated beans obverver is responsible for more than 7 seconds of deployment time.

The following sample application with 4999 beans is able to demonstrate, if a Thread Dump is taken every second, that the deployBeans phase is being slowed down by jersey.
https://github.com/99sono/wls-jsf-2-2-12-jersey-weldstartup-bottleneck

On a real productive with higher degree of complexity the situation can be much worse.

This API should be heavily tuned, Jresey should never or rarily be spotted during thread dump sampling of the deployment of an application.

In this case, we are dealing with WeldBoostrap which is a process of much higher complexity than checking if an annotated class is related to JAX-RS, and the code from WeldBoostrap barely registers in the thread dumps, if not for Jersey.

NOTE:
Oracle has been made aware of this issue.

Kindest regards.

@99sono
Copy link
Author

99sono commented Nov 3, 2017

Any news on this issue?
Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants