Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Out of memory err....

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 any problem displaying data ...

Go Back   Geeks Talk > Web Development > Web Servers
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Web Servers Discuss Web Servers related Issues and Problems

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-09-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,016
Thanks: 0
Thanked 91 Times in 72 Posts
psuresh1982 will become famous soon enough
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.
Reply With Quote
The Following User Says Thank You to psuresh1982 For This Useful Post:
Sponsored Links
Reply

  Geeks Talk > Web Development > Web Servers

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Physical Memory and Virtual Memory blenda Windows 6 07-14-2009 03:22 PM
memory allocation for object reess C and C++ 14 12-25-2008 02:15 PM
Memory Leakage aarusa Testing Issues 7 04-10-2007 11:00 AM
Allocating Memory joel C and C++ 1 09-16-2006 04:29 PM
Memory Function in C scott C and C++ 1 07-16-2006 12:24 PM


All times are GMT -4. The time now is 10:04 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved