<?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: Performance problems after a while that is not used in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295832#M248962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes,first query will cause the index caches to be warmed up( especially for sorting) and this is why&amp;nbsp; the first query takes some time. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Where did you place your index on? keep the index on local disk will improve performence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How much memory did you leave for&amp;nbsp; operating system ? It seems os also needs some momory to cache index files.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Aug 2014 08:09:00 GMT</pubDate>
    <dc:creator>kaynezhang</dc:creator>
    <dc:date>2014-08-26T08:09:00Z</dc:date>
    <item>
      <title>Performance problems after a while that is not used</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295824#M248954</link>
      <description>Hi,I've got a strange behavior in terms of performance in a webscript that consists in a Lucene query with some condition (by path, by date, by aspect and sometimes by some imap aspect metadata).The webscript is very slow when it is called after a while that is not used but is very very fast if it i</description>
      <pubDate>Wed, 20 Aug 2014 07:52:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295824#M248954</guid>
      <dc:creator>npasquetto</dc:creator>
      <dc:date>2014-08-20T07:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problems after a while that is not used</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295825#M248955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a couple of reasons can influence the performance and there are multiple levels of caches to consider here, not just the Alfresco node and properties caches. E.g. Lucene can and will cache some index data necessary for performing the query. The database can and will cache some table data that even affects performance of queries with completely different results. And the OS may at a low level cache file system contents that Lucene or the DB use to execute queries when they have not cached data in memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What kind of magnitude of performance difference do you observe? How many results are we talking about here? What exactly does the Lucene query look like (keep in mind, PATH queries can be veerryyy expensive)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 09:01:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295825#M248955</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2014-08-20T09:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problems after a while that is not used</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295826#M248956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;lt;blockquote&amp;gt;What kind of magnitude of performance difference do you observe?&amp;lt;/blockquote&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The difference is huge: 80 seconds for slow response, 2 seconds for fast response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockquote&amp;gt;How many results are we talking about here?&amp;lt;/blockquote&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another thing that i forgot to specify in my post is that seems there is no relation between performance and number of results. Anyway we are talking of a maximum of 2000 results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockquote&amp;gt;What exactly does the Lucene query look like (keep in mind, PATH queries can be veerryyy expensive)?&amp;lt;/blockquote&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We have some files with the IMAP aspect, and we filter on metadatas as sentDate, sender, subject. All the files are organized in subspaces under a common spaces, so we introduce the PATH condition to limit the search, but in the path we need to use some wildcart to be able to go in subspaces. Could this condition affect the performance? If yes, I can remove it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 10:07:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295826#M248956</guid>
      <dc:creator>npasquetto</dc:creator>
      <dc:date>2014-08-20T10:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problems after a while that is not used</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295827#M248957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok - 80 vs 2 seconds is really a difference that are hard to explain away just by warm-up issues with some caches. Even Lucene index queries rarely rack up this kind of difference between cold+hot caches…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the webscript do anything else with the results of the Lucene query apart from generating the response via FTL? Can you insert timing measurements into the code of the web script to determine at what point in the execution what amount of time has elapsed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 08:30:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295827#M248957</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2014-08-21T08:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problems after a while that is not used</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295828#M248958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;lt;blockquote&amp;gt;Does the webscript do anything else with the results of the Lucene query apart from generating the response via FTL?&amp;lt;/blockquote&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The webscript is very simple: based on the URL parameters it build a query string through a simple string concatenation; then there is a call to the search API &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;search.query(def);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; where def is the object containing the search confinguration (query, language, sort…).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The result of the query will be assigned as variable in the model and passed to FTL to build the JSON response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So there is no other elaboration except the query call. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 12:38:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295828#M248958</guid>
      <dc:creator>npasquetto</dc:creator>
      <dc:date>2014-08-21T12:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problems after a while that is not used</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295829#M248959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;lt;blockquote&amp;gt;Can you insert timing measurements into the code of the web script to determine at what point in the execution what amount of time has elapsed?&amp;lt;/blockquote&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've put some timing measurements in the code (query building, before the call to search API, after the call to search API, at the end of the script) and &lt;/SPAN&gt;&lt;DEL&gt;I confirm that all the time is spent by the search API.&lt;/DEL&gt;&lt;SPAN&gt; I noticed that sometimes the query is faster, a little more than 1 second, but I get the answer after 30 seconds. By raising the webscript immediately after, I get an instant response. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I noticed also that the clause is ignored if MaxItems use the admin user: there is no way to avoid this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 10:18:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295829#M248959</guid>
      <dc:creator>npasquetto</dc:creator>
      <dc:date>2014-08-25T10:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problems after a while that is not used</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295830#M248960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How many memory did you allocate to JVM? have you tried to increase the heap size for the JVM?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Searching can use a lot of memory for a large index,. I guess if your JVM is not running with a large enough HEAP size then the JVM will pays the price of initializing caches at your first query at some time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 03:11:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295830#M248960</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-08-26T03:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problems after a while that is not used</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295831#M248961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockquote&amp;gt;if your JVM is not running with a large enough HEAP size then the JVM will pays the price of initializing caches&amp;lt;/blockquote&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The JVM has a very large HEAP size, the server is very powerful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I've notice that, often the time of execution of the query seems low, but the time of response is high. There is a caching mechanism for the template? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 07:45:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295831#M248961</guid>
      <dc:creator>npasquetto</dc:creator>
      <dc:date>2014-08-26T07:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problems after a while that is not used</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295832#M248962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes,first query will cause the index caches to be warmed up( especially for sorting) and this is why&amp;nbsp; the first query takes some time. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Where did you place your index on? keep the index on local disk will improve performence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How much memory did you leave for&amp;nbsp; operating system ? It seems os also needs some momory to cache index files.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 08:09:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295832#M248962</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-08-26T08:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problems after a while that is not used</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295833#M248963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;lt;blockquote&amp;gt;this is why the first query takes some time&amp;lt;/blockquote&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OK, but after some investigating, it seems that is not the query the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for example: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;ol&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;li&amp;gt;First request: total time 30 sec, query time 2 sec&amp;lt;/li&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;li&amp;gt;Second query (the same): total time 2,5 sec, query time 2 sec&amp;lt;/li&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;li&amp;gt;Third query (completely different resultset): total time 2,5 sec, query time 2 sec&amp;lt;/li&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/ol&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And in my cluster, I verified this behaviour in every single node.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 12:33:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295833#M248963</guid>
      <dc:creator>npasquetto</dc:creator>
      <dc:date>2014-08-26T12:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problems after a while that is not used</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295834#M248964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You mean most of the time is taken by FTL rendering process?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 02:12:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295834#M248964</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-08-27T02:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problems after a while that is not used</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295835#M248965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;By the FTL rendering process or by another process before or after the execution of the controller.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when the cache that is involved in this phase is warmed up, this process does not require so much time again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 07:50:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295835#M248965</guid>
      <dc:creator>npasquetto</dc:creator>
      <dc:date>2014-08-27T07:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problems after a while that is not used</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295836#M248966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can add some logging information at the beginning and at the end of&amp;nbsp; your javascript controller to trace time consumption.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;if(logger.isLoggingEnabled())&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.log("***");&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;You also can estimate the time taken by ftl rending process using the log&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 14:01:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295836#M248966</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-08-27T14:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problems after a while that is not used</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295837#M248967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Finally i've adopted a stupid solution: i've scheduled a dummy call to the web script every three minutes. I would like to know what kind of cache is involved in this process…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 07:07:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/performance-problems-after-a-while-that-is-not-used/m-p/295837#M248967</guid>
      <dc:creator>npasquetto</dc:creator>
      <dc:date>2014-09-02T07:07:35Z</dc:date>
    </item>
  </channel>
</rss>

