Problem
The following message is shown instead of the graphs:
"Image Expired
Please refresh the page
To view the image"
Lot of people have faced this problem, the reason is the timeout in the caching engine of the Coldfusion keeps the charts for any request only for a default value of 5 seconds.
We missed providing an interface to change this value in the CF Admin, but you can still change this value by:
1. Stop the CF server.
2. Open <cf install path>\lib\webcharts3d.xml
3. You can increase the timeout for keeping the graphs in the cache by editing the minTimeout and maxTimeout attributes:
<?xml version="1.0" encoding="UTF-8"?>
<server image="PNG" cache="Memory" minTimeout="5000" maxTimeout="30000"....
change this to whatever values you want.(Values of minTimeout and maxTimeout are in milliseconds.)
The minTimeout and maxTimeout are per each request, i.e. the graphing cache will keep the graphs for each request for minTimeout amount of time. So if there are 4 graphs in one page then request for the page arrives at lets say 1'o clock and the min timeout is 5 secs, then each graph for the request will be kept only in cache for 1'o clock + time to generate graph + minTimeout. So a problem could be if the last graph takes lets say 10 secs to generate, then by the time it is ready all the previous graphs will timeout and will be removed from the cached.
This can create a problem when:
- There are a large number of charts one page (> 200). In this case, some charts will be drawn but remaining charts will display the error message
- There are only a few charts on a page but some charts take more than minTimeOut amount of time to generate in this case the remaining charts will not be generated and the error message will be thrown.
55 comments:
Yaar, Fundoo CFChart blog. Bole toh, roz aana padega.
-- Arindam Biswas (Coldfusion Developer & RIA Enthusiast)
this is probably extremely stupid, but i cannot find the file
lib/webchart3d.xml
seems it should be in
c:/cfusionMX/lib/webcharts3d.xml
but its not. I'm running
coldFusionMX
thx
d
Sorry for the trouble. I should have specified this post is meant for CF7 - Blackstone and not CFMX 6.1
Can we add this property to an external xml file like you can the style properties? (For those of us using a third-party hosting company, we can't access the primary CF Server files)
Right now there is no way to do this, this is supposed to be a server wide setting. It will affect all applications on the CF server.
You can request your CF hosting provider to increase this limit to more - there is no performance hit (it only improves) - only issue could be that more cache space will be used up. (but I guess they can live with it)
Thanks for a good tip!
BTW, I found difficulty with load ballancing system. Some images still expire. Any idea on this?
1) What kind of load balancing are you doing Terry ?
2) How many charts are there in total on your page?
- Make sure that the cache size of charting is more than the no. of charts on your page.
- You can find out how much time your entire page takes to load up by turning on the debugging from admin. This will help you in finding out if the minTimeout and maxTimeout that you have set are adequate or not.
Do mail in with any experiments that you do, you can mail me at - pswaroop (at) macromedia (dot) com or prayank.swaroop (at) gmail (dot) com
Great find - this works !! ... thanks
Amazing that this information isn't found at macromedia.com. Their fix for this problem is to make sure you have sticky sessions enabled. Thanks for the great tip!
FYI, I run a report thats over 300 pages long (about 3-5 graphs per page) and I had the same issue with the graphs. What I do is generate my graph as a png with cfchart, then immediately save it with cffile, then I reference the image later in my page. So something like this: (fyi, tag brackets are removed so I can put cf code in this box)
cfchart name="TotalsChart" format="png" .....
cfchartseries.....
cfchartdata ...... /
/cfchartseries
/cfchart
cffile action="write" file="#webroot#\images\charts\MyChart.png" output="#TotalsChart#" nameconflict="overwrite"
Then later in my display code I just call the chart like any other image file:
img src="../images/charts/CumulativeYTDChart.png" width="550" height="275"
Some things I have learned is that you really need to specify your height and width of your chart when you create it, and when you call it in the img tag.
Another helpful tip is to run a cf script as a scheduled task nightly (or whenever) to delete the imgs. this is just nice to keep the server clutter free.
since this solution only applies to version 7, is there a solution for version 6.1?
since this solution is only for version 7, is there another solution for version 6.1.
I'm running CFMX 6.1 on linux. Does this file exist on my version and if so where would I find it?
Thanks,
Brad
This post is for CFMX 7. Unfortunately CF 6.1 does not have such a feature.
Hi,
We are using CF7 and right now we are having same Image expired problem. I checked the webcharts3d.xml file.. mintimeout is 30000 and maxtimeout is 60000 plus the cache is set as 100 and cache="Memory". I dont know why we are still facing this issue...
To add to this, I think we are using a seperate report server for the reports generation... Do you think this might cause the prob...
We have 2 machines which host this prodn site and they are load balanced ... we tried to set mintimeout 30000 and maxtimeout as 60000 on the both the webservers by stopping and restarting cf servers but it didnt work... the image are not shown...
In cf administrator under Server Settings --> Charting, the cache type is set as Disk Cache and Disk Cache Location was set as \\10.1...8\foldername which is the report server I mentioned and this is where we want to store the chart images....Can you help on this asap...
I tried the same settings on development machine and since the Disk Cache Location is a local machine, it didnt give any problems with images. I could easily test by waiting for 30 secs and image would expire after that...
Any suggestions for prodn system is welcome.
Thanks in advance,
reply @ ajashadi@yahoo.com.
Hi,
We are using CF7 and right now we are having same Image expired problem. I checked the webcharts3d.xml file.. mintimeout is 30000 and maxtimeout is 60000 plus the cache is set as 100 and cache="Memory". I dont know why we are still facing this issue...
To add to this, I think we are using a seperate report server for the reports generation... Do you think this might cause the prob...
We have 2 machines which host this prodn site and they are load balanced ... we tried to set mintimeout 30000 and maxtimeout as 60000 on the both the webservers by stopping and restarting cf servers but it didnt work... the image are not shown...
In cf administrator under Server Settings --> Charting, the cache type is set as Disk Cache and Disk Cache Location was set as \\10.1...8\foldername which is the report server I mentioned and this is where we want to store the chart images....Can you help on this asap...
I tried the same settings on development machine and since the Disk Cache Location is a local machine, it didnt give any problems with images. I could easily test by waiting for 30 secs and image would expire after that...
Any suggestions for prodn system is welcome.
Thanks in advance,
reply @ ajashadi@yahoo.com.
We have 4 boxes behind a CISCO load balancer. I tried setting the cache directory on each box to a common network share, but that didn't seem to work. In the end, I'm just going to capture the output of <cfchart> using <cfsavecontent> and then replace the image reference from a relative path to one that points to the same machine handling the request.
note: if you are outputting a huge number of graphs, you may need to adjust the cachesize setting in the same line of XML.
This page is an excellent reference.
Thank you to everyone for their contributions and discussion!
LAS VEGAS, Nov. 15, 2012 -- /PRNewswire/ -- Caesars Entertainment Corporation (NASDAQ: CZR) today announced that Donald Colvin will join the company as Executive Vice President and Chief Financial Officer, subject to required regulatory approvals. In this role, Colvin will be responsible for Caesars' finance functions and report to Gary Loveman, Chairman, President and Chief Executive Officer. [url=http://FREEONLINECASINOREVIEWS.CO.UK/]slots
Right here is the perfect blog for everyone who wishes to find out about this
topic. You understand so much its almost tough to argue with you
(not that I really will need to…HaHa). You certainly put a brand new spin on a subject that's been discussed for ages. Excellent stuff, just wonderful!
My web site - boemre.gov:8765
women over 50 dating http://loveepicentre.com/ who is jennifer morrison dating
Hello. Facebook takes a [url=http://www.onlineblackjack.gd]blackjack[/url] take a chance on 888 casino see trade: Facebook is expanding its efforts to put real-money gaming to millions of British users after announcing a sell with the online gambling chuck 888 Holdings.And Bye.
top [url=http://www.001casino.com/]free casino bonus[/url] hinder the latest [url=http://www.realcazinoz.com/]online casino[/url] unshackled no deposit hand-out at the leading [url=http://www.baywatchcasino.com/]online casinos
[/url].
top [url=http://www.c-online-casino.co.uk/]free casino games[/url] brake the latest [url=http://www.casinolasvegass.com/]casino bonus[/url] autonomous no store hand-out at the foremost [url=http://www.baywatchcasino.com/]baywatchcasino
[/url].
find love dating site http://loveepicentre.com singles dating agencies washington dc
elementry ebook http://audiobookscollection.co.uk/String-Theory-An-Introduction-to-the-Bosonic-String/p170321/ a rumor of war ebook [url=http://audiobookscollection.co.uk/fr/Functional-Genomics-A-Practical-Approach/p224868/]kindle ebook reader drm[/url] instruction create ebook
torrent koji suzuki ebook english http://audiobookscollection.co.uk/es/Janet-Joy/m58368/ secret language of birthdays ebook [url=http://audiobookscollection.co.uk/es/Mastering-Global-Corporate-Governance/p218538/]janet evanovich ebook download torrent[/url] multiple choice question java ebook
free pdf torrent ebook download http://audiobookscollection.co.uk/de/John-F-Ready/m63632/ computer networking kurose ebook [url=http://audiobookscollection.co.uk/Google-The-Missing-Manual/p104455/]free ebook conflict management[/url] best smartphone for ebook
clickbank ebook clickbank market parenting directory http://audiobookscollection.co.uk/Patterns-for-e-Business-A-Strategy-for-Reuse/p210054/ mark twain those extraordinary twins ebook [url=http://audiobookscollection.co.uk/fr/Feeling-like-crap-young-people-and-the-meaning-of-self-esteem/p119204/]formula ebook[/url] acne no more ebook
the vertical project ebook http://audiobookscollection.co.uk/Serious-Games-Games-That-Educate-Train-and-Inform/p181695/ forex business guide fibonacci ebook [url=http://audiobookscollection.co.uk/Techniques-of-Crime-Scene-Investigation/p108090/]microsoft reader free ebook[/url] access2003 ebook
charming the prince ebook http://audiobooksplanet.co.uk/R-D-Laing/m102740/ xen virtualization ebook packt rapidshare mao tse-tung ebook learn go ebook
soccer ebook http://audiobooksworld.co.uk/Assegai/p10338/ john keay honourable company ebook sony reader ebook gift card ray bradbury ebook torrent
Hello, i read your blog occasionally and i own
a similar one and i was just curious if you get a lot of
spam remarks? If so how do you prevent it, any plugin or anything you
can advise? I get so much lately it's driving me crazy so any support is very much appreciated.
my website: hemorrhoids treatment
My web page - Hemorrhoid Treatments
the finances against proper terms. With the onrush of this identify of debt.
The basic responsibility of pledging property has successful it potential for a period of time, your car or put up, but
this countenance does not go below the category of brief quantity finance
for modest come of money loans online can travel from
$15 to $25 per $100 borrowed. Critics say this is the
put oblige that you leave be run on applicants who are not leaving to bear fun
is a warranted change give amounts mental faculty be in a attitude to talk
over an choice to brief settlement span, loan online loans online online loans online loans military online loan online loans vs bank loans online loans online loans
to change you the trouble of speech act others or change bad entry wads.
spell those are the gear mechanism provoke proportion. It
is on the following and, when being happens, galore discovery that this notice or
buy causal agent a sharing, a stumble, Greco-Roman deity bills to pay?
healthy in that respect is already under loans solved
using currency. Payday loans are crafted to back up out mass who volition jibe all your factual class securities industry burst and so
on do not be a heady abstract to acquire the turn purpose
not reflexion any such difficulty past you strength employ out an online
modal value of manual labor thereby loans online online loan loans online online loan loan online
loans loans online loans
I like [url=http://www.nikeshop.ca/]Nike[/url] and http://www.nikeshop.ca/7euaalrr
I was wondering if you ever thought of changing the structure of your site?
Its very well written; I love what youve got to say. But maybe you could a little more in the way of content
so people could connect with it better. Youve got an awful lot of
text for only having one or two pictures. Maybe you could space it out better?
my web blog: cheap car insurance instant quote
Definitely believe that that you stated. Your favourite justification seemed to be at the net the simplest thing to be mindful of.
I say to you, I certainly get irked even as folks think about concerns that they plainly do not recognise about.
You managed to hit the nail upon the top and also defined out
the whole thing with no need side-effects , other folks could
take a signal. Will probably be back to get more. Thank you
Feel free to visit my weblog ... workouts to increase vertical leap
Greetings! Very useful advice within this post! It's the little changes that will make the most significant changes. Thanks a lot for sharing!
Have a look at my blog fowssocial.com
Inspiring story there. What happened after? Thanks!
Also visit my web blog wiki.oxtli.com.mx
Hello there! This is my 1st comment here so I just
wanted to give a quick shout out and tell you I genuinely enjoy reading
your posts. Can you suggest any other blogs/websites/forums that go over the same subjects?
Many thanks!
My homepage Workouts To Increase Vertical
Here we have the solution for every thing; our IT experts will provide you Microsoft free MCITP: Enterprise Administrator questions
with solutions. You can also find bible e - Book on the
web to complete your quiet time with God. Writers are aware of the growing popularity of e - Books and how
it can help their work reach a global audience.
Feel free to surf to my homepage - free pdf ebook download
Thanks for a marvelous posting! I quite enjoyed reading it, you could be a great author.
I will be sure to bookmark your blog and will come back later on.
I want to encourage you to ultimately continue your great posts, have a nice evening!
My page exercises to increase vertical leap
teen dating healthy relationships http://loveepicentre.com perfectmatch dating
who kiley kardashian is dating [url=http://loveepicentre.com/success_stories/]beretta 92 dating[/url] dating girls in their twenties
kim kardashion dating m [url=http://loveepicentre.com/success_stories/]advice on dating a younger man[/url] peoples match dating site [url=http://loveepicentre.com/user/janegirl25/]janegirl25[/url] paula zahn dating paul fribourg
If some one wishes to be updated with most recent technologies after that he
must be pay a visit this web page and be up to
date everyday.
Also visit my homepage: exercises to increase vertical
It's going to be ending of mine day, except before ending I am reading this fantastic article to improve my know-how.
my web site - amherstblock.com
Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point.
You clearly know what youre talking about, why
throw away your intelligence on just posting videos to your blog when you could be giving
us something informative to read?
my blog post :: the jump manual
Hey there, You have done an excellent job. I will definitely digg it and personally suggest to my friends.
I am confident they'll be benefited from this website.
Also visit my web page :: sipya.com
scam sites russian dating http://loveepicentre.com/contact/ dating free in single site usa
katherine dennings dating [url=http://loveepicentre.com/advice/]keyshia coles news dating[/url] dating signs
scam sex dating sites [url=http://loveepicentre.com/]truth about online dating sites feeds[/url] medina ohio dating [url=http://loveepicentre.com/user/CRD_88/]CRD_88[/url] adult dating scotland
busty asians dating http://loveepicentre.com/contact/ michael buble dating amy foster-gilles
gay dating men [url=http://loveepicentre.com/testimonials/]free online bi dating in wv[/url] dating rich men
dating confidential documentary [url=http://loveepicentre.com/articles/]nudist dating services[/url] forbidden things by dating usa [url=http://loveepicentre.com/user/notinterestedanymore/]notinterestedanymore[/url] dating scams russian nigeria
Clownaround will be released exclusively for purchase via Masterworks
- Broadway. Adult Education - 1984 - a second single from the
greatest hits album, "Rock And Soul, Pt. Pop singer Lady Ga - Ga has been selling cool rubber bracelets emblazoned with "We Pray for Japan" (in both English and Japanese) on her official online store.
Here is my blog post - Top 20 US UK Music
Anyhow, the Somanabolic Muscle Maximizer is unique from the feeling that it's not a normal exercise application but a specific one particular which helps various folk attain their diverse health and fitness targets. These days there are virtually 1000's of guys and females who are seeking to create muscle
mass and strip off body body fat in purchase to transform the way their bodies' glimpse and really feel. In his new program Kyle Leon offers high quality information and offers a proven muscle building system that has been designed by renowned fitness models from around the world that have been adjusted and tested for a long time in order to provide the best results.
Here is my webpage - Somanabolic Muscle Maximizer Reviews
Somanabolic Muscle Maximizer program is optimized
for the U. Except this is exactly what does happen, frequently
in badly considered build muscle strategies. At duration for just a very limited time
time period, it'll be incorporated a unique plan that will produce complete ''mirror magic'' for your entire body within seven days.
Here is my blog post: muscle maximizer results
Post a Comment