Skip to content

Reconsider enablement of JNDIPropertySource by default [SPR-14026] #18598

@spring-projects-issues

Description

@spring-projects-issues

Mike Noordermeer opened SPR-14026 and commented

#13189 enabled JndiPropertySource by default. Looking at some profiler results, I'm wondering if it would be wise to at least add a warning to the documentation about the potential performance impact of this.

The attached call tree shows that for 8800 property lookups, 89% of the time is spent in the JndiPropertySource (JndiTemplate creates an InitialContext on each lookup, etc. etc.). All other property sources are way faster, and I never anticipated JNDI being so slow (and this is using Tomcat, other app servers are known for having even slow JNDI access).

This was tested against 4.2.1, but it seems nothing changed since then, and I assume it affects 4.2.5 as well.


Affects: 4.2.5

Attachments:

Referenced from: commits d2c0885

0 votes, 5 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions