File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Performance and the fly likes Cost of doing a JNDI Lookup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Cost of doing a JNDI Lookup" Watch "Cost of doing a JNDI Lookup" New topic

Cost of doing a JNDI Lookup

Kartik Shah
Ranch Hand

Joined: Dec 07, 2000
Posts: 102
Can we profile how much costly (time) JNDI Lookup can be?
If it depends upon the Directory Server does any of directory server provider provides with such sort of metrics.

Kartik Shah
SCJP, SCDJWS, IBM Certified Websphere & XML, PMP & Six Sigma -
Olivier Sinnaeve

Joined: Mar 20, 2011
Posts: 1
Try using a profiler. Jprofiler is paying material buth quite good i can say !! Jboss has its profiler that can be used in an eclipse environment. These profilers give you exact and if you like verbose information. These infos include the time spend on each method. Most often this implies you to install an agent on the running vm and retrieve the data with the client-profiler.


Java developer Bvba
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

Welcome to the CodeRanch, Olivier!

Look at the date on the question you're answering. It's over a decade old! And while it's very unfortunate that no one answered it, by now, Karthik probably has moved on to other employers 2 or 3 times (or more, considering how disposable people are these days), and quite possibly may no longer even be a software developer.

We call threads that have been re-opened months or years after the discussion has closed "Zombie threads". We appreciate the effort, you've made, and we look forward to having you here, but I'm afraid you're too late for this one.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Cost of doing a JNDI Lookup
It's not a secret anymore!