AW: [Mapbender-users] HQ and/or large scale printing
-possiblesolution for some problems
Zedler, Jörg
Joerg.Zedler at gt-net.de
Tue Feb 10 09:52:18 EST 2009
Hi,
do you check the memory_limit Parameter in php.ini?
Bye
Jörg Zedler
-----Ursprüngliche Nachricht-----
Von: mapbender_users-bounces at lists.osgeo.org
[mailto:mapbender_users-bounces at lists.osgeo.org] Im Auftrag von
Schönhammer, Herbert
Gesendet: Dienstag, 10. Februar 2009 11:54
An: 'Mapbender User List'
Betreff: AW: [Mapbender-users] HQ and/or large scale printing
-possiblesolution for some problems
Hi all,
I want to confirm your mailing ;-) (Okay the date of the mailing is
August 2007!, but)
I just had some troubles printing DIN A0 PDF's with mapbender.
The last problem to solve: Increase the setting of
default_socket_timeout in php.ini !
(Sometimes printing DIN A0 was okay. Sometimes only the frame (and
overview and legend) was printed. But the map itself was empty. I
observed, that printig DIN A0 was okay, if the filesize of the mapserver
- generated png had less than e.g. 60MB (e.g. a black&white layer). If
file size was greater than 60MB (e.g. a colored layer), the print failed
).
regards
Herbert
>-----Ursprüngliche Nachricht-----
>Von: mapbender_users-bounces at lists.osgeo.org
>[mailto:mapbender_users-bounces at lists.osgeo.org] Im Auftrag
>von Thomas Baschetti
>Gesendet: Mittwoch, 1. August 2007 12:47
>An: Mapbender User List
>Betreff: [Mapbender-users] HQ and/or large scale printing -
>possiblesolution for some problems
>
>
>Hi all,
>
>possible solution for those with printing problems, works
>at least for me (Apache, Windows):
>
>for HQ-Printing of large files i configured not only (in php.ini)
>===
>memory_limit = 8M
>max_execution_time = 30 ; sek
>max_input_time = 60 ; sek
>===
>but also set
>===
>; Default timeout for socket based streams (seconds)
>default_socket_timeout = 60
>===
>to a higher value, e.g. 240
>
>Perhaps a solution for some of you, too.
>
>(technical) explanation:
>The values memory_limit, max_execution_time, max_input_time are
>only changing limits for scripts (how much memory can a script
>consume, how much time can a script run).
>I had set this to quite high values, but nevertheless had problems
>with Maps not printing correctly, not showing a layer.
>Requesting this layer directly in browser took some time but worked
>perfectly, in mapbender => nothing, only a
>weldMaps2PNG: unable to load image: http...
>
>The reason seems to be the function
>file_get_contents, used by connector->getHTTP which is
>used by weldMaps2PNG->loadpng
>
>and this file_get_contents is opening a stream which times out
>too early.
>Setting this to a higher value solved the problem.
>
>Can somebody confirm this? Then i'll hack it into the wiki.
>
>A point i still don't understand:
>default_socket_timeout was initially set to 60, but the timeout
>happened after 120 seconds. So, searching for '120' in php.ini,
>httpd.conf and elsewhere didn't return results...
>
>Bye
>Thomas
>
>
>
>--
>GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
>Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
>_______________________________________________
>Mapbender_users mailing list
>Mapbender_users at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapbender_users
>
_______________________________________________
Mapbender_users mailing list
Mapbender_users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapbender_users
More information about the Mapbender_users
mailing list