HighCharts Export Server Fails To Return JPG or PNG Images -


i have updated our internal highcharts eport server uses java , phantomjs lastest available git repo. solved issues having when changed out code pages support international character sets. however, now, regardless of chart data size or complexity attempts return jpg or png images fail server responding:

oops..,

timeout converting svg, file big, or maybe have syntax error in javascript callback?

i have tried increasing wait timeout , allowed data size tomcat pass through no avail. simple basic demo charts fail render (like demo).

the interesting part svg , pdf export fine - , return image/document instantly while png/jpg attempts hit max timeout.

i @ loss why occurs on our export server. if revert older export version jpg/png exports fine - , using same configuration properties timeouts. tried node.js version of export server locally , exports fine (as using export.highcharts.com).

how png/jpg exports work?

setup using windows server 2012 apache tomcat 8 , latest java libraries.

here app-convert.properties:

#### phantomjs properties ####  # host , port phantomjs listens host = 127.0.0.1 port = 12333  # location of phantomjs executable, example /usr/local/bin/phantomjs exec = d:/phantomjs/phantomjs.exe  # specify here alternative location (the whole path!) script starts phantomjs server. f.eks /home/bert/scripts/my-highcharts-convert.js # leave empty if you're using script bundled export-server. script =  #### connect properties used connect phantomjs running http-server #### # values in milliseconds  # specifies timeout when reading phantomjs when connection established readtimeout = 6000  # timeout used when opening communications link phantomjs server connecttimeout = 1000  # whole request phantomjs server scheduled, max timeout can last value. because in java can't rely on above 2 timeouts. maxtimeout = 10500  #### pool properties ####  # number of phantomjs servers can run in pool. poolsize = 10  # pool implemented blockingqueue. when asking phantom server connection , nothing available, waits number of milliseconds defined maxwait maxwait = 10000  # keep files in temp folder retentiontime, defined in miliseconds retentiontime = 60000 

update: set local jetty instance , pointed 1 of our test sites exporting debug enabled in export server. when export svg or pdf results , log looks "normal". however, when request either png or jpg log has this:

[debug] [pool-1-thread-1 12:08:13] (serverobjectfactory.java:create:41) in makeobject, c:/phantomjs/phantomjs.exe, c:\users\lricha~1\appdata\local\temp\export3972366666231845697\phantomjs\highcharts-convert.js, 127.0.0.1

[debug] [pool-1-thread-1 12:08:13] (serverobjectfactory.java:getavailableport:116) nothing free in portusage {12333=busy, 12334=busy, 12335=busy, 12336=busy, 12337=busy, 12338=busy, 12339=busy, 12340=busy, 12341=busy, 12342=busy}

but, if again try , export pdf/svg exports fine. why png/jpg phantomjs ports busy?


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -