GlyphList creates once two static final HashMap with about 4000 elements each mapping names to chars and vice-versa. Each char is one char long and each name has on average 4 characters. The same name/char object is shared in both HashMap. I don't see how you could have an out of memory with this, considering that is runs correctly in windows and as far as I know it's also used successfully in mainframes.
Paulo ----- Original Message ----- From: "Andrew Joseph" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, April 16, 2007 10:45 PM Subject: [iText-questions] iText on the mainframe - memory leak? Hello, I was trying to compile and execute the "hello world" sample program from your tutorials on the mainframe. And the Java program kept abending. Because the same program ran sucessfully on windows, I contacted IBM and this is what their Java support wrote back. Since I am a mainframmer with very little Java knowledge, I thought I would pass it on to you. If in case you have time to comment on it, I would really appreciate it. thanks for your time. Andrew Action Taken: The Java Level 2 team has reviewed this issue and provided the following comments: . "It appears there are 9,731 objects of type char[] using a total of 313Meg of the available 400Meg Heap. That would be an average of 32k each for this char arrays. It looks like the longest of these is 202,464 in size. There looked to be about 1600 of type char [] size 202,464. Could this be the object of a memory leak. . These look to be created as entries in a HashMap for a class com/lowagie/text/pdf/GlyphList." . Are you familiar with this class: com/lowagie/text/pdf/GlyphList? -------------------------------------------------------------------------------- > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ -------------------------------------------------------------------------------- > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > Buy the iText book: http://itext.ugent.be/itext-in-action/ > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
