marcelo ametller wrote:
it only crash after some time... the time for generate de pdf is 20min.
That's way too long. If it really must take so long, you should spawn a
separate process to create the pdf. Your webserver will probably quit
the connection with timeout anyway.
What do you get in the Webware logfile?
nothing...
You can insert print statements, and use unbuffered output for the
AppServer, to see where the servlet is spinning. But after a look on
your servlet I am almost sure it will be the doc.build() call.
Do you create the pdf in memory only or do you write it to a file?
i not know that...
i paste de code here:
That would be in memory. Can you check whether the StringIO is imported
from cStringIO (not StringIO)?
But the real problem is probably here:
t=Table( data, colwidths)
You should definitely use "LongTable" instead of "Table" if your table
has so many rows. The time used by Table goes quadratic with the number
of rows...
The rest looks fine.
Let us know whether that helps.
-- Christoph
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss