Tuesday, June 30, 2009

How to monitor Sun Directory Server 5.2?

Yes, there are still a lot of Sun Directory Server 5.2 deployment in Asia region. (even though 6.x has been released for quite a while)

I was meeting a customer today. He is interested in migrating from Sun Directory Server 5.2 to Sun OpenDS Standard Edition 2.0 (target release date is Mid July 2009). 

Why Sun OpenDS SE 2.0 and not Sun Directory Server 6.3.1? I was told the price for commercial support differ by quite a lot, at least S$12k for his case. Wow!

Anyway, that's not my objective. I'm providing Professional Service/Consultancy. I'll leave the pricing to the folks.

So, I asked during the meeting when is the peak period and what is the concurrent hit like? I was given figures ranging from 70-80k per hour to 5 millions hit per day. 

I was not convinced. Thus I asked for facts which can be easily extracted with the tools provided by Sun Directory Server 5.2.


You can use the GUI to monitor the suffix status online. (Click on "Continuous refresh") Otherwise, for people like me, command-line is best.

bash-3.00# ldapsearch -D "cn=Directory Manager" -w password -b "cn=monitor,cn=userRoot,cn=ldbm database,cn=plugins,cn=config" objectclass=*
version: 1
dn: cn=monitor,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
objectClass: top
objectClass: extensibleObject
cn: monitor
database: ldbm database
readonly: 0
nextid: 10
dbentrycount: 9
ldapentrycount: 9
entrycachehits: 26
entrycachetries: 36
entrycachehitratio: 72
currententrycachesize: 14796
maxentrycachesize: 10485760
currententrycachecount: 9
maxentrycachecount: -1
 
Remember to execute the above command over a period of time in order to capture the overall statistics. A cron job will help.
 
  

1 comment:

  1. Hi Chong, Thank you very much for the post..

    I am also working on Sun DS 5.2 and I have some doubts on How both DB and entry cache hit ratios affect the performance of a Directory server and
    what is the difference between currententrycachecount, ldapentrycount.
    because in our case values showing are
    currententrycachecount: 44000
    ldapentrycount: 168630
    and
    enreycachehitratio: 99
    entrycachehits: 144920341
    entrycachetries: 145715488

    It would be helpful, if you refer any document which explains all monitoring attributes.

    Thank you.

    ReplyDelete