Jump to content
We've recently updated our Privacy Statement, available here ×

Chart too big and temporary files


sdemelis

Recommended Posts

Hello,

I have a problem with a chart that seems too big for my server. I increased the size of the chart putting the Height property=700.

When I executed the report, the server started to create temporary files and it stopped only when it  reached the maximum number of files in the folder (returning the error " Disk quota exceeded"). I decresead the Height to 650 and the report works fine.

Do you have any suggestion to fix the problem?

 

thanks

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Hello,

thanks for your answer, but my problem is not the disk quota error. I could increase the quota but at the next execution I will reach the new limit.

The report generates more than 100000 temporary files for each execution: my problem is the number of temporary files generated. I don't understand why changing the chart height from 650 to 700 causes this problem.


 



Post Edited by sdemelis at 04/21/2012 12:35
Link to comment
Share on other sites

It does not make sense. I check my temporary files of JFreeChart in Jasperserver under Tomcat ($TOMCAT_HOME/temp). Its pattern is prefix +~JF and suffix .tmp

One chart generates one temporary file, no more no less.

 

Does your temporary files like this pattern ? If not, you should change another direction to inspect. Perhaps a varible name "height" inside your report or scriptlet to multiple number of temporary files.

 

-rw-r--r-- 1 ching ching 618684 Apr 21 01:47 +~JF1245335344806269714.tmp

-rw-r--r-- 1 ching ching 321524 Apr 21 01:47 +~JF168364353035951610.tmp

-rw-r--r-- 1 ching ching 273880 Apr 21 01:47 +~JF45161811737487026.tmp

-rw-r--r-- 1 ching ching 301928 Apr 21 01:47 +~JF4665377539683550412.tmp

-rw-r--r-- 1 ching ching 569432 Apr 21 01:47 +~JF5742884643620477956.tmp

-rw-r--r-- 1 ching ching 229284 Apr 21 01:47 +~JF6007943346201021532.tmp

-rw-r--r-- 1 ching ching 519616 Apr 21 01:47 +~JF6160979376033550317.tmp

-rw-r--r-- 1 ching ching 312444 Apr 21 01:47 +~JF6257977833937133895.tmp

-rw-r--r-- 1 ching ching 287060 Apr 21 01:47 +~JF6878799466727175191.tmp

-rw-r--r-- 1 ching ching 282964 Apr 21 01:47 +~JF6983911173365298858.tmp

-rw-r--r-- 1 ching ching 519792 Apr 21 01:47 +~JF7878149224144341742.tmp

-rw-r--r-- 1 ching ching 223408 Apr 21 01:47 +~JF7946876278362987962.tmp

 

Reference:

http://www.jfree.org/forum/viewtopic.php?f=3&t=23407

Link to comment
Share on other sites

If the chart height is less than 700, I have the same temporary files as you. If it's 700 or more, the server creates a different type of temporary files, something like virt9195358_210345_23410_1291982944.



Post Edited by sdemelis at 04/23/2012 04:05
Link to comment
Share on other sites

http://jasperreports.sourceforge.net/sample.reference/virtualizer/index.html

Your issue is interesting. Your JasperServer turns on virtualizer as your chart height reaches 700.

It is hard to trace your issue without more detail information (such as your JRXML, scriptlet, version of JasperServer).

I am just an amateur and cannot spend too much time here. I wish some gurus read this message and help you.

Sorry and good luck.

Link to comment
Share on other sites

Hi icecreaming,

thanks for your time :)

If someone else has some clue about this problem, here some more info: the server version is 4.0 and the chart is in a subreport that contains only this chart, nothing else. Its datasource is a subdataset of a javabean that is the datasource for the main report. Also the main report contains 16 subreports (yes, it's full of data...), but the total number of pages for the entire report is about 7 or 8.

Link to comment
Share on other sites

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...