Many temporary files are created under /tmp directory after starting BPMS 6 server instance.

Solution Unverified - Updated -

Environment

  • Red Hat JBoss BPM Suite
    • 6.x
  • Red Hat BRMS
    • 6.x

Issue

  • Many temporary files( gitz*woot & graphicElement*.tmp) created under /tmp directory after starting BPMS 6 server instance.
  • Our Windows system where BRMS is running stopped due to lack of disk space in system partition.
    We see too many files something like the following under C:\Users\Administrator\AppData\Local\Temp\2 and these consumed too much disk space.
    example
    ・ org.kie.example-project1-1.1-0.7373352181135707.jar
    ・ gitz1321307461796834032woot
    ・ meta5669635829425360546dot
    ・ graphicElement8517471432968706667.tmp
    ・ testxls4972635359655069555.tmp
    Why are these files generated? Can we delete these?

Resolution

These temporary files are created by org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.java , org.jboss.dashboard.ui.resources.GraphicElement.java and DecisionTableXLSServiceImpl.java under the path specified by system property java.io.tmpdir. Server instance will not clear these files while shutdown, so it is needed to clean these files manually or with the help of custom script when server instance is not running, especially on Windows environment.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

1 Comments

Include "rm -rf {Catalina_home}/tmp/*" statement in catalina.sh file at 1st line. During server startup /tmp files will be removed.