Well Thanks Julien for the tip.
Just to add to what Julien has pointed, It's not only the Java SDK, you should run the XPSSweeper if you are Importing objects other than the XPSTools, for e.g. SmObjImport also requires XPSSweeper run.
XPSSweeper can fix many problems.
1. Too many TombStone Objects in the store and PS throws the (LDAP_SIZELIMIT_EXCEEDED). The Tombstone objects can be defined as, when you delete an object from the policy store through XPS Tools, the actual object gets deleted from the store but it's stub still remains in the XPS Store, and XPS marks them as Tombstone. The tombstone objects are automatically deleted when the House Keeping thread running in PS, invokes the XPSSweeper by default. If you wish to delete them manually, you xan run the XPSSweeper manually.
On the performance Part, what Julien has pointed out, I would like to add, XPSSweeper clears out the Object cache and PS rebuilds the object cache after every run of XPSSweeper. it's only the Object Caches which gets rebuild when you run the XPSSweeper, No Impact on the AZ cache and Auth Cache though.
Regards
Sandeep Khurana