OUT OF MEMORY ISSUE

CORE4007: Internal error: Unexpected Java exception thrown (java.lang.OutOfMemoryError, no description), stack: java.lang.OutOfMemoryError Can you please tell me how to rectify it?
[194 byte] By [AAISUPPORTa] at [2007-11-27 8:50:22]
# 1
Try not to hold so much info in memory.And don't cross-post all over the place. http://forum.java.sun.com/thread.jspa?threadID=5188621&tstart=0 http://forum.java.sun.com/thread.jspa?threadID=5188620&tstart=0
masijade.a at 2007-7-12 21:01:23 > top of Java-index,Java Essentials,Java Programming...
# 2
http://forum.java.sun.com/thread.jspa?threadID=5188620
prometheuzza at 2007-7-12 21:01:23 > top of Java-index,Java Essentials,Java Programming...
# 3
Either a) Don't hold so much at once. Process large data sets piecemeal rather than loading the whole thing.b) Increase the memory available to java with a command line switch like-Xmx512m
malcolmmca at 2007-7-12 21:01:23 > top of Java-index,Java Essentials,Java Programming...
# 4
How many times are you going to post the same question? http://forum.java.sun.com/thread.jspa?threadID=5188621 http://forum.java.sun.com/thread.jspa?threadID=5188622 http://forum.java.sun.com/thread.jspa?threadID=5188620
jverda at 2007-7-12 21:01:23 > top of Java-index,Java Essentials,Java Programming...
# 5
u hav any prob
AAISUPPORTa at 2007-7-12 21:01:23 > top of Java-index,Java Essentials,Java Programming...
# 6
> u hav any probno u hv prob wiv mem
OnBringera at 2007-7-12 21:01:23 > top of Java-index,Java Essentials,Java Programming...
# 7

Assuming you dont have some type of infinite loop that uses an infinite amout of memory, right click on your computer icon on your desktop, go to <properties><advanced><enviornment variables> and add the following enviornment variable:

JAVA_OPTS-Xmx1024m

This should allow your JVM to use up a lot more memory (assuming your machine has 1Gbytes of memory).

Are you running tomcat from within Eclipse when this happens? If so, in Eclipse, from the menu go to <window><preferences><tomcat><jvm settings><append to jvm parameters><add> and enter-Xmx1024m

Next, on your desktop, try <cntr><alt><del> <task manager> <performance> and see how much memory you are using with your IDE running before you run your application, then after you run it. Buy more memory if you need it (its cheap!!!). You probably should have at least 2 Gigabtyes. Wouldn't hurt to defragment your hard disk at this time too.

George123a at 2007-7-12 21:01:23 > top of Java-index,Java Essentials,Java Programming...