hozawa Posted August 19, 2015 Posted August 19, 2015 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-filesDoing a grep on JasperReports source code seems to indicate JasperReports is creating some temp files.e.g.file = File.createTempFile("file.buff.os.", ".tmp"); // FileBufferedOutputStreamprivate String directory = System.getProperty("java.io.tmpdir"); // Virtualizer codeFollowing 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-1So, 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.
Solution marianol Posted August 20, 2015 Solution Posted August 20, 2015 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-unusableor 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.
hozawa Posted August 20, 2015 Author Posted August 20, 2015 Thanks marianol,That's what I thought. Just wanted confirmation.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now