Prepare for your Next Interview
This is a discussion on Out of memory err.... within the Web Servers forums, part of the Web Development category; My environment is Eclipse+tomcat 5.0[Tomcat is the local tomcat within eclipse]. I have a report query which can produce anywhere from 10000-70000 records. I dont have ...
|
|||
|
Out of memory err....
My environment is Eclipse+tomcat 5.0[Tomcat is the local tomcat within eclipse]. I have a report query which can produce anywhere from 10000-70000 records. I dont have any problem displaying data in jsp when the records are 10,000. I have a record count of 64000 now and while displaying,running th query, the program exists with Out of memory error saying heap size.
java.lang.OutOfMemoryError: Java heap space Corerct exception looks like this: Why ? is it because of 65000 records ? How can I increase my heapsize ? In my program, I have a Statement object and a Resultset rs then I iterate thru while(rs.next()) - HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception root cause java.lang.OutOfMemoryError: Java heap space note The full stack trace of the root cause is available in the Apache Tomcat logs. |
| The Following User Says Thank You to psuresh1982 For This Useful Post: | ||
| Sponsored Links |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Memory Leakage | aarusa | Testing Issues | 7 | 04-10-2007 10:00 AM |
| memory allocation for object | reess | C and C++ | 10 | 03-19-2007 10:52 AM |
| Allocating Memory | joel | C and C++ | 1 | 09-16-2006 03:29 PM |
| Memory Function in C | scott | C and C++ | 1 | 07-16-2006 11:24 AM |
| Physical Memory and Virtual Memory | blenda | Windows | 2 | 06-24-2006 12:45 PM |