启动的时间设定最大内存
java -Xmx256M
试试看

解决方案 »

  1.   

    When you add objects to a Document, these objects are written to the outputstream as soon as possible. But when you construct a table, the Table-object keeps on growing. For really large tables, this can become a problem.
    Also, if you are writing to a the outputstream of a HttpServletResponse-object, the timeout of the browser can be reached.
    That is why it can be useful to control the 'table-breaks' yourself, using the fitsPage()-methods in class PdfWriter
       :)