cancel
Showing results for 
Search instead for 
Did you mean: 

Using CMIS cause too many open files system problem

kotfilemon
Champ in-the-making
Champ in-the-making
Hi

I'am using alfresco and webapp client application using open cmis for communication. Alfresco (alfresco + share) and client app are running on separate machines on their own servers (tomcat). Alfresco works properly, but client application cause too many open files problem in operating system (ubuntu linux). The limit was raised, but with an increase in app load increases the number of open files until the system crashes.

Is it possible to limit the number of open files by CMIS?

I'am using spring framework, alfresco 4.2, open cmis 0.7.0 and cmis session is singleton created as below:


            Map<String, String> parameters = new HashMap<String, String>();

            parameters.put(SessionParameter.USER, user);
            parameters.put(SessionParameter.PASSWORD, password);
            parameters.put(SessionParameter.ATOMPUB_URL, server);
            parameters.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());

            SessionFactory factory = SessionFactoryImpl.newInstance();

            List<Repository> repositories = factory.getRepositories(parameters);
            session = repositories.get(0).createSession();



        <dependency>
            <groupId>org.apache.chemistry.opencmis</groupId>
            <artifactId>chemistry-opencmis-client-impl</artifactId>
            <version>0.7.0</version>
        </dependency>
1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
In your custom code on the client-side, are you remembering to close all of your content streams? If you don't, you'll use up all of the file handles.

Also, OpenCMIS 0.8.0 is available. You should probably upgrade when you get a chance.

Jeff