Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-60290

OOME during VerifyProcess (VerifyJournal)

    Details

      Description

      Reproduction steps:
      1) Fill portal with large amount of web contents (tested with 265,000 journal articles)
      2) Run VerifyProcess

      Portal throws OOME within a minute(s) or less.

      Reproduced on:
      ee-6.2.x: c4d21acd493d4acc84d79d38d33ab343bd0aab1c (06-11-15)
      master: not tested, no dedicated VerifyJournal class found

      Analysis:
      We load all journal articles into the memory which is problematic when having large number of web contents

      VerifyJournal.java:278
      protected void verifyArticleContent() throws Exception {
      	List<JournalArticle> articles =
      		JournalArticleLocalServiceUtil.getArticles();
      
      	for (JournalArticle article : articles) {
      		String content = JournalConverterUtil.updateDynamicElements(
      			article.getContent());
      
      		if (content.equals(article.getContent())) {
      			continue;
      		}
      
      		article.setContent(content);
      
      		JournalArticleLocalServiceUtil.updateJournalArticle(article);
      	}
      }
      

      We need to alter this behaviour, e.g. using pagination or another approach.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joyce.wang Joyce Wang
              Reporter:
              krisztian.rostas Krisztian Rostas
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 2 weeks ago

                  Packages

                  Version Package
                  6.2.X EE