cancel
Showing results for 
Search instead for 
Did you mean: 

multi process on repository

ozkan
Champ in-the-making
Champ in-the-making
Hi everyone,
I have an application that sends images to alfresco in a for loop. it's sending one image per second. Here is my a part of code :
 
   public static void main(String[] args) {

      Folder root = createSession().getRootFolder();
      CmisObject object = createSession().getObjectByPath(
            root.getPath() + TEST_FOLDER_NAME);

      Folder roota = (Folder) object;

      for (int i = 0; i < 1000000000; i++)
         for (int j = 0; j < 1000000000; j++) {
            createDocument(roota,
                  TEST_DOCUMENT_NAME_1 + new Date().getTime() + ".jpg");

            try {
               Thread.sleep(0);
            } catch (InterruptedException e) {
               e.printStackTrace();
            }
         }

   }



While I'm sending images to alfresco , I can browse images from alfresco web client but can't do it from share web client.
when I click to my repo folder that I sent images to, application and share web client get stuck and can't do anything.
Before this problem , I had OutOfMemory exception and I changed javaopt argument so it solved but now, have to I change some confg ?? What should I do ??  I m waiting your helps. Thanks
1 REPLY 1

ozkan
Champ in-the-making
Champ in-the-making
is there anyone who can help me ??