Book data type in printing

hi all,when i add more than 20 pages in book data type am getting OutOfMemory error.. how to rectify this error.. regardssuresh
[155 byte] By [Suresh22a] at [2007-11-27 2:48:06]
# 1

There might be some issue with your code like creating large arrays for some reason which don't get garbage collected or some of the other memory leak type things which can be disgnosed in Java 6 using various tools:

http://java.sun.com/developer/technicalArticles/J2SE/monitoring/index.html (or just by code inspection)

But if you've checked for that, you can always encourage Java to use more memory by adding a command-line flag like -mx512m (assuming you have that much available)

That setting might just delay an underlying memory issue, but it sounds like you just need that much memory.

Here are the options:

http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html

Some additional "non-standard" command-line options can also help diagnose or get around memory issues:

http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp

pthorsona at 2007-7-12 3:18:04 > top of Java-index,Desktop,Core GUI APIs...
# 2
> when i add more than 20 pages in book data type am> getting OutOfMemory error.. how to rectify this> error.. Stop at 20?
kirillga at 2007-7-12 3:18:04 > top of Java-index,Desktop,Core GUI APIs...
# 3
is there any other effecient way of adding n number of a pages in book data type without leading to out of memory error ?regardssuresh
Suresh22a at 2007-7-12 3:18:04 > top of Java-index,Desktop,Core GUI APIs...
# 4
is there any other effecient way of adding n number of a pages in book data type without leading to "out of memory error " ?regardssuresh
Suresh22a at 2007-7-12 3:18:04 > top of Java-index,Desktop,Core GUI APIs...
# 5
Can you post a code sample so we can see if there is some issue with the way you are adding things to the Book?Do you really need to use Book? Perhaps there is another way of implementing this functionality.
pthorsona at 2007-7-12 3:18:04 > top of Java-index,Desktop,Core GUI APIs...