AnsweredAssumed Answered

Using CMIS cause too many open files system problem

Question asked by kotfilemon on Feb 5, 2013
Latest reply on Feb 12, 2013 by jpotts
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>

Outcomes