jason wrote:How long is your docx? Anything special about it (eg lots of tables, images, or embedded documents)?
I have many different docx files with varying lengths. Most of them have tables, borders, pictures and some complex layout.
jason wrote:What did you increase permgen to? Are you sure it worked (are you doing this in an IDE or what?)?
I'm running docx4j on a JBoss server setting the permgen size in eclipse. When i increase the permgen space to your suggested '-XX:PermSize=256m -XX:MaxPermSize=512' from other threads, it works fine. Only when I don't specify the space that I get the out of Memory error.