<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Liferay slow due to multiple sites created to harness multi tenancy</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114651190" />
  <subtitle>Liferay slow due to multiple sites created to harness multi tenancy</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114651190</id>
  <updated>2026-04-04T03:25:46Z</updated>
  <dc:date>2026-04-04T03:25:46Z</dc:date>
  <entry>
    <title>RE: Liferay slow due to multiple sites created to harness multi tenancy</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114699977" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114699977</id>
    <updated>2019-08-09T14:34:05Z</updated>
    <published>2019-08-09T14:34:05Z</published>
    <summary type="html">...that&amp;#39;s still rather &amp;#34;due to too many concurrent users&amp;#34; than &amp;#34;due to multiple sites&amp;#34; ;)</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-08-09T14:34:05Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay slow due to multiple sites created to harness multi tenancy</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114694347" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114694347</id>
    <updated>2019-08-09T13:40:29Z</updated>
    <published>2019-08-09T13:40:29Z</published>
    <summary type="html">I assumed that, because they are using multitenancy, that the biggest concern there is going to be concurrent users.&lt;br /&gt;&lt;br /&gt;If you expect 2k concurrent users on one site, your setup may be fine. But if that multiplies by the number of sites you have, well that&amp;#39;s when multitenancy can be a concern.&lt;br /&gt;&lt;br /&gt;So my suggestions, while not backed by direct measurement initially, position your nodes to maximize concurrency.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-08-09T13:40:29Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay slow due to multiple sites created to harness multi tenancy</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114697476" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114697476</id>
    <updated>2019-08-09T10:07:53Z</updated>
    <published>2019-08-09T10:07:53Z</published>
    <summary type="html">The interesting aspect of this: Your (David&amp;#39;s) suggestions are good ones for generally tuning the performance, and none of them address the (IMHO probably incorrect) assumption made by the subject of this thread: &amp;#34;due to multiple sites...&amp;#34;.&lt;br /&gt;I can&amp;#39;t think of an aspect of multiple sites to cause performance problems, unless it&amp;#39;s just &lt;em&gt;so much&lt;/em&gt; active data that caches are constantly overflowing, but that could happen in a single site as well. So: I&amp;#39;m back at: Measure first, before introducing additional complexity.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-08-09T10:07:53Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay slow due to multiple sites created to harness multi tenancy</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114665685" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114665685</id>
    <updated>2019-08-08T12:43:08Z</updated>
    <published>2019-08-08T12:43:08Z</published>
    <summary type="html">The tunings I suggested are no-brainers and low hanging fruit, they can be done w/o measurement and provide a known result.&lt;br /&gt;&lt;br /&gt;But Olaf is right for that last mile; you shouldn&amp;#39;t guess and apply tweaks w/o knowing if there is an actual need for improvement and what the change might cost in terms of development and maintenance (i.e. if you get only a 100 ms benefit from your change but you have to develop it and figure out how to maintain it against future Liferay releases, the cost/benefit ratio might be so skewed that the 100 ms is worse for you in the long run).</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-08-08T12:43:08Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay slow due to multiple sites created to harness multi tenancy</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114663576" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114663576</id>
    <updated>2019-08-08T05:45:03Z</updated>
    <published>2019-08-08T05:45:03Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;David H Nebinger:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;Performance can be improved by a number of different methods:&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;...until here I agree, then I&amp;#39;ll go in a different direction:&lt;br /&gt;&lt;br /&gt;1. Measure. Check what is the actual bottleneck in your installation&lt;br /&gt;2. Fix exactly that bottleneck&lt;br /&gt;3. Check if this fix improved performance enough so that you can move on&lt;br /&gt;4. If it doesn&amp;#39;t improve performance enough: Continue at 1&lt;br /&gt;&lt;br /&gt;The techniques that David mentioned are good, but measuring will make sure that you don&amp;#39;t introduce more complexity for 2% more performance as your first activity. Instead you might start with the 50% elephant in the room (numbers made up, of course)</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-08-08T05:45:03Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay slow due to multiple sites created to harness multi tenancy</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114651514" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114651514</id>
    <updated>2019-08-07T23:52:09Z</updated>
    <published>2019-08-07T23:52:09Z</published>
    <summary type="html">Do not use the DB shards, they are no longer supported under 7.x and if you ever want to upgrade you&amp;#39;ll be stuck trying to figure out how to undo the shards.&lt;br /&gt;&lt;br /&gt;Performance can be improved by a number of different methods:&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Add more nodes to the cluster.&lt;/li&gt;&lt;li&gt;Offload gzip and ssl to httpd.&lt;/li&gt;&lt;li&gt;Add external tools (ghostscript, imagemagick, xuggler and openoffice) to offload work.&lt;/li&gt;&lt;li&gt;General performance tuning (jvm tuning, disable filters not being used, etc.).&lt;/li&gt;&lt;li&gt;Add intermediate caching using Varnish or another appliance.&lt;/li&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-08-07T23:52:09Z</dc:date>
  </entry>
  <entry>
    <title>Liferay slow due to multiple sites created to harness multi tenancy</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114651189" />
    <author>
      <name>Rajesh Chaurasia</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114651189</id>
    <updated>2019-08-07T23:30:38Z</updated>
    <published>2019-08-07T23:30:38Z</published>
    <summary type="html">hi All,&lt;br /&gt;How can improve the performance of Liferay which is slow due to multiple sites created to harness multi tenancy?&lt;br /&gt;One way is using database shards ,are there other ways to improve performance</summary>
    <dc:creator>Rajesh Chaurasia</dc:creator>
    <dc:date>2019-08-07T23:30:38Z</dc:date>
  </entry>
</feed>
