During a profiling run, the Jersey service startup in GF takes 8763 ms, and 6165 ms of that is in one method:
18.1% - 6,165 ms - 1 inv. org.glassfish.jersey.server.ApplicationHandler.initialize
Is it expected that this method would take quite a bit a time?
None of the methods that are called by that method take nearly that much time:
- validate takes 1491ms
- 37 invocations of org.glassfish.jersey.server.model.Resource.from take 1302 ms
Nothing else takes more than 1000 ms.
Note: the times are distorted because of the profiling so just compare the relative times. The 18% is the total CPU time of the process.