Details

      Description

      1. Use the following properties in portal-ext:

      dl.store.impl=com.liferay.portlet.documentlibrary.store.S3Store
      dl.store.s3.access.key=AKIAJTLD5YA7LT4FO53A
      dl.store.s3.secret.key=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
      dl.store.s3.bucket.name=support-hu

      dl.store.s3.jets3t[httpclient.max-connections]=100
      dl.store.s3.jets3t[s3service.max-thread-count]=100
      dl.store.s3.jets3t[threaded-service.max-thread-count]=100

      2. Start the bundle and search for jets3t in Server Administration/portal properties. This seems to show that the properties have been read and set correctly.
      3. Enable DEBUG log level for org.apache.http.impl.conn.tsccm.ConnPoolByRoute.
      4. Upload a basic document from Site Admin/Documents and Media and watch the logs.
      Result: You see:

      14:08:14,303 INFO  [http-bio-8080-exec-3][S3Store:595] Jets3t properties: {[s3service.s3-endpoint]=s3.amazonaws.com, [httpclient.max-connections]=100, [threaded-service.max-thread-count]=100, [s3service.default-bucket-location]=US, [s3service.default-storage-class]=STANDARD, [s3service.max-thread-count]=100}
      

      which again seems to confirm the properties have an effect.
      However, the logs also contain lines like:

      14:08:14,604 DEBUG [http-bio-8080-exec-3][ConnPoolByRoute:201] [{s}->https://s3.amazonaws.com:443] total kept alive: 0, total issued: 0, total allocated: 0 out of 20
      14:08:14,605 DEBUG [http-bio-8080-exec-3][ConnPoolByRoute:201] No free connections [{s}->https://s3.amazonaws.com:443][null]
      14:08:14,608 DEBUG [http-bio-8080-exec-3][ConnPoolByRoute:201] Available capacity: 20 out of 20 [{s}->https://s3.amazonaws.com:443][null]
      

      which seems to suggest that they don't have effect, and instead of 100, the max number of available connections is 20.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 46 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE