Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flood of warnings: "consider increasing the maximum size of the cache" #97

Open
1 task done
rwarren opened this issue Jun 16, 2018 · 4 comments
Open
1 task done

Comments

@rwarren
Copy link

rwarren commented Jun 16, 2018

Prerequisites

  • Put an X between the brackets on this line if you have done all of the following:
    • Reproduced the problem.
    • Checked that your issue isn't already filed.
    • Filled the form.
    • Included logs and system information.

Description

Default JIRA installation settings for JIRA software 7.10.1 result in a flood of hundreds of warnings like below:

<snip>
16-Jun-2018 02:29:07.961 WARNING [Modification Check:thread-1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/includes/jira/admin/initSharedDashboardsAdmin.js] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
16-Jun-2018 02:29:07.961 WARNING [Modification Check:thread-1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/includes/jira/admin/view-user/view-user.js] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
16-Jun-2018 02:29:07.962 WARNING [Modification Check:thread-1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/ui/aui-layout/deprecated/userhover.lf.less] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
16-Jun-2018 02:29:07.962 WARNING [Modification Check:thread-1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/templates/plugins/fields/edit-searcher/search-basictext.vm] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
16-Jun-2018 02:29:07.963 WARNING [Modification Check:thread-1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/includes/jira/admin/initSharedDashboardsAdmin-min.js] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
16-Jun-2018 02:29:07.963 WARNING [Modification Check:thread-1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/atlassian-bundled-plugins/jira-user-profile-plugin-3.0.5.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
16-Jun-2018 02:29:07.963 WARNING [Modification Check:thread-1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/secure/johnson-page/index.prod.ejs] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
16-Jun-2018 02:29:07.964 WARNING [Modification Check:thread-1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/secure/views/dashboard/deleteportalpage.jsp] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
16-Jun-2018 02:29:07.965 WARNING [Modification Check:thread-1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/templates/jira/issue/field/description-edit.vm] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
16-Jun-2018 02:29:07.965 WARNING [Modification Check:thread-1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/lib/xml-apis-ext-1.3.04.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
16-Jun-2018 02:29:07.965 WARNING [Modification Check:thread-1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/entitydefs/fieldtype-postgres.xml] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
16-Jun-2018 02:29:07.966 WARNING [Modification Check:thread-1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/images/icons/Avatar-default.png] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
<snip>

Possible solution: Increase Tomcat Resources cache size. See here: https://stackoverflow.com/a/37986333/465838

Steps to Reproduce

  1. Start a JIRA container
  2. Watch the logs (e.g. with docker logs <name> -f)

Expected behavior: [What you expect to happen]

Quieter logs! There are MANY of these warnings!

Actual behavior: [What actually happens]

Hundreds of warnings in the logs.

Reproduces how often: [What percentage of the time does it reproduce?]

100% of launches result in the flood.

Versions

7.10.1
No others tested.

Logs And Environment Information

See log examples in description.
Example jira service section in compose file:

  jira:
    image: blacklabelops/jira:7.10.1
    container_name: jira
    depends_on:
      - postgres_jira
    restart: unless-stopped
    networks:
      - jiranet
    volumes:
      - jira_home:/var/atlassian/jira
    environment:
      VIRTUAL_HOST: example.com
      VIRTUAL_PORT: 8080
      JIRA_DATABASE_URL: postgresql://jira@postgres_jira/jiradb
      JIRA_DB_PASSWORD: snip
      JIRA_PROXY_NAME:
      JIRA_PROXY_PORT:
      JIRA_PROXY_SCHEME:
      DOCKER_WAIT_HOST: postgres_jira
      DOCKER_WAIT_PORT: 5432
@blacklabelops
Copy link
Member

Interesting, I will take a look.

@blacklabelops
Copy link
Member

I can verify this in Jira 7.6.0.

Still looking for a solution.

Simple solution:

  • Disable caching

Wanted solution:

  • Configurable: Not only size but move cached files outside image inside a Docker volume.

Can anybody provide their Tomcat cache configuration?

@maltewhiite
Copy link

I am getting a massive amount of warnings about this as well.

How do I solve this?

Some say to increase this: https://docs.cloudbees.com/docs/cloudbees-ci-kb/latest/client-and-managed-masters/cache-warnings-in-catalina-logging

But that file is inside the container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants