What is the appropriate way to purge nuxeo.tmp.dir?

We recently had nuxeo.tmp.dir fill up, and from looking at the contents, it seems that removing old files is not something done by Nuxeo itself. I selectively removed large files to resolve our outage, but this seemed to result in very unstable operation. After removing the rest of nuxeo.tmp.dir and reloading some software, the instability seems to have been resolved.

What is the correct way to remove unused data from nuxeo.tmp.dir? If there is not a way for users to do this, is there a recommended minimum available space – ours was greater than 12GB – or a way to set the maximum size of the tmpdir?

Thanks, Steve

0 votes

1 answers

4367 views

ANSWER

My nuxeo.tmp.dir is currently 69GB – any input for avenues of research will be appreciated.
01/30/2014

How are the files named, and maybe in what subdirectory (so that we can find out where they come from)?
01/30/2014

Also, what Nuxeo version do you use?
01/30/2014

I am using Nuxeo 5.8, though according to the list of deployed binaries in the admin page, many artifacts are 5.9.2-SNAPSHOT.

The space is consumed by files in nxbincache directories, and I assume they are local copies of uploaded files through the drag-and-drop "main file" interface.

We are using S3BinaryManager if that is helpful to know. The only other possibly relevant information I can think of is that the PDFBox indexing was broken (Java 7 bug) when these files were uploaded.

In the absence of knowing why the consumption is so large, is there a generally accepted way to purge just those nxbincache directories?

01/30/2014

Note that you shouldn't have artifacts of 5.9.2-SNAPSHOT if you're running a Nuxeo 5.8. Something is wrong with the bundles you have.
01/30/2014

We have deliberately installed the following packages through the marketplace interface – perhaps the installation process entailed installing 5.9.2-SNAPSHOT of other bundles?

  • nuxeo-rest-api-5.9.1
  • amazon-s3-online-storage-1.4.1-SNAPSHOT (I think this was installed at version 1.1.x under Nuxeo 5.6 and upgraded as new updates were observed)
  • platform-explorer-1.3.1-SNAPSHOT

I expect to reinstall the base binaries from the 5.9.x fast track releases so hopefully that will help eliminate the versioning issues.

01/30/2014



The nxbincache directory is used to store a local cache of files for the S3BinaryManager. Its default maximum size should be 100 MB although this can be increased by the nuxeo.s3storage.cachesize property in nuxeo.conf (see Amazon S3 Online Storage).

There may be a bug which does not clear this cache when the server is shut down. I'll check. In the meantime this cache can be safely purged when the server is stopped.

1 votes



For what it is worth, after installing from the fasttrack .deb to resolve the version mismatches I mentioned in another comment, the tmpdir is now much smaller. Perhaps the Nuxeo packaging script did this, or perhaps my issue was a result of having the wrong JARs deployed somewhere.

I just don't want you to waste too much time in case it was the latter. :)

01/31/2014