<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: java.net.ConnectException: Connection Refused in Web Service in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/java-net-connectexception-connection-refused-in-web-service/m-p/250589#M203719</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Look at the tomcat configuration information.&amp;nbsp;&amp;nbsp; You need to increase the number of HTTP threads.&lt;BR /&gt;&lt;BR /&gt;e.g. &lt;A href="http://tomcat.apache.org/tomcat-5.5-doc/config/http.html" rel="nofollow noopener noreferrer"&gt;http://tomcat.apache.org/tomcat-5.5-doc/config/http.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;A rough rule of thumb is that you need 2 database connections plus a few for luck for each http thread.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I think the default is 200.&lt;BR /&gt;&lt;BR /&gt;By the way 40 concurrent uploads is simulating an enormous load.&amp;nbsp;&amp;nbsp;&amp;nbsp; What sort of figures are you expecting for your system in real life?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for the response. Our system records says we have 8 concurrent users per second at peak times. But each user/thread could upload 4 files in parallel so that would mean 32 files. We use the external Alfresco web services API wrapped as a CXF web service being called by our applications.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate all your suggestions in optimizing this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rgds.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Nov 2010 00:41:53 GMT</pubDate>
    <dc:creator>junieboy</dc:creator>
    <dc:date>2010-11-08T00:41:53Z</dc:date>
    <item>
      <title>java.net.ConnectException: Connection Refused in Web Service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-net-connectexception-connection-refused-in-web-service/m-p/250585#M203715</link>
      <description>Hi,Did some performance test using Alfresco 3.1 server using the UploadContent  servlet to upload files and have encountered java.net.ConnectException: Connection . Below is the stack trace. After checking it appears that the exception occured in the construction of the URL object of the file to upl</description>
      <pubDate>Sat, 06 Nov 2010 10:24:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-net-connectexception-connection-refused-in-web-service/m-p/250585#M203715</guid>
      <dc:creator>junieboy</dc:creator>
      <dc:date>2010-11-06T10:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: java.net.ConnectException: Connection Refused in Web Service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-net-connectexception-connection-refused-in-web-service/m-p/250586#M203716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You may need tune alfresco and in particular increase the number of http threads and database connections available.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What application server are you using?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Nov 2010 14:54:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-net-connectexception-connection-refused-in-web-service/m-p/250586#M203716</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2010-11-06T14:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: java.net.ConnectException: Connection Refused in Web Service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-net-connectexception-connection-refused-in-web-service/m-p/250587#M203717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You may need tune alfresco and in particular increase the number of http threads and database connections available.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;What application server are you using?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response! We are using Apache Tomcat. Please share some documentation and tips on how we could do this. This has become a big concern to us and would want to make sure this does not happen in production. The upload to Alfresco web service that I have created will be a mission critical and intensive interface as many applications will invoke the said interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition, since I am using the upload servlet, will it help to use a fixed thread pool to control the number of threads concurrently uploading in Alfresco?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Nov 2010 17:24:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-net-connectexception-connection-refused-in-web-service/m-p/250587#M203717</guid>
      <dc:creator>junieboy</dc:creator>
      <dc:date>2010-11-06T17:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: java.net.ConnectException: Connection Refused in Web Service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-net-connectexception-connection-refused-in-web-service/m-p/250588#M203718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Look at the tomcat configuration information.&amp;nbsp;&amp;nbsp; You need to increase the number of HTTP threads.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. &lt;/SPAN&gt;&lt;A href="http://tomcat.apache.org/tomcat-5.5-doc/config/http.html" rel="nofollow noopener noreferrer"&gt;http://tomcat.apache.org/tomcat-5.5-doc/config/http.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A rough rule of thumb is that you need 2 database connections plus a few for luck for each http thread.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I think the default is 200.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way 40 concurrent uploads is simulating an enormous load.&amp;nbsp;&amp;nbsp;&amp;nbsp; What sort of figures are you expecting for your system in real life?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Nov 2010 21:31:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-net-connectexception-connection-refused-in-web-service/m-p/250588#M203718</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2010-11-07T21:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: java.net.ConnectException: Connection Refused in Web Service</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-net-connectexception-connection-refused-in-web-service/m-p/250589#M203719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Look at the tomcat configuration information.&amp;nbsp;&amp;nbsp; You need to increase the number of HTTP threads.&lt;BR /&gt;&lt;BR /&gt;e.g. &lt;A href="http://tomcat.apache.org/tomcat-5.5-doc/config/http.html" rel="nofollow noopener noreferrer"&gt;http://tomcat.apache.org/tomcat-5.5-doc/config/http.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;A rough rule of thumb is that you need 2 database connections plus a few for luck for each http thread.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I think the default is 200.&lt;BR /&gt;&lt;BR /&gt;By the way 40 concurrent uploads is simulating an enormous load.&amp;nbsp;&amp;nbsp;&amp;nbsp; What sort of figures are you expecting for your system in real life?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for the response. Our system records says we have 8 concurrent users per second at peak times. But each user/thread could upload 4 files in parallel so that would mean 32 files. We use the external Alfresco web services API wrapped as a CXF web service being called by our applications.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate all your suggestions in optimizing this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rgds.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 00:41:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-net-connectexception-connection-refused-in-web-service/m-p/250589#M203719</guid>
      <dc:creator>junieboy</dc:creator>
      <dc:date>2010-11-08T00:41:53Z</dc:date>
    </item>
  </channel>
</rss>

