Jump to content

Cause of many files in Tomcat's temp directory


Go to solution Solved by marianol,

Recommended Posts

Posted

Sometimes, many files with name starting with "virt" are created in Tomcat's temp directory where JasperReports Server is installed.

In the following page, the cause of the problem is stated as being JRE and not JasperReports but I haven't had other Java programs create temp files without explicit statements.

http://community.jaspersoft.com/wiki/answers-most-common-questions-regarding-jfxxxxxtmp-temporary-files

Doing a grep on JasperReports source code seems to indicate JasperReports is creating some temp files.

e.g.

file = File.createTempFile("file.buff.os.", ".tmp");  // FileBufferedOutputStream

private String directory = System.getProperty("java.io.tmpdir");   // Virtualizer code

Following case seems to suggest JasperReports creates temp files when it can not find font files but I'm not sure if this will create a file name starting with "virt"..

http://community.jaspersoft.com/jasperreports-library/issues/3005-1

So, are the temp files created by JRE or by JasperReports? How can I prevent this from happening because I have to shut down JasperReports Server to delete these files and it takes over an hour to delete them.

 

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution
Posted

Hi @hozawa,

Those files you see are the JR temp files used by the JR Virtualizer if you have a huge anout of files may be because of this: http://community.jaspersoft.com/wiki/large-amount-temp-files-slows-down-jasperreports-server-unusable

or it just may be that you have a very busy server and the JVM does not do a good job in cleaning the temp files, in that case you can put a cron job that deletes the files on a regular basis.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...