The below section of code is running extremely slow on our Linux virtual machines (both ours and our clients). Particularly the first two lines creating the context factory. It has been taking 5-10 seconds or more for getting the instance and creating the new context and this is being done by multiple portlets in our application. When we run the exactly same application locally on our mac's hitting the same documentum server on the same network it takes milliseconds. Connectivity between all the machines doesn't seem to be an issue. After the initial connection the performance seems fine.
Any idea's why it would run so slowly on Linux.
CentOS 5.5 and Redhat EL6
Documentum 6.6
Oracle 11gr2
ContextFactory contextFactory = ContextFactory.getInstance();
serviceContext = contextFactory.newContext();
RepositoryIdentity repoId = new RepositoryIdentity();
repoId.setRepositoryName(defaultRepositoryName);
repoId.setUserName(userName);
repoId.setPassword(password);
serviceContext.addIdentity(repoId);
ContentTransferProfile contentTransferProfile = new ContentTransferProfile();
contentTransferProfile.setTransferMode(ContentTransferMode.MTOM);
contentTransferProfile.setGeolocation("Pleasanton");
serviceContext.setProfile(contentTransferProfile);
PropertyProfile propertyProfile = new PropertyProfile();
propertyProfile.setFilterMode(PropertyFilterMode.ALL_NON_SYSTEM);
serviceContext.setProfile(propertyProfile);