The Artima Developer Community
Sponsored Link

Java Answers Forum
java OutOMemoryError

1 reply on 1 page. Most recent reply: Sep 19, 2006 12:27 PM by Viswanatha Basavalingappa

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
saravanan shun

Posts: 1
Nickname: sarokutti
Registered: Sep, 2006

java OutOMemoryError Posted: Sep 16, 2006 10:49 AM
Reply to this message Reply
Advertisement
help me i need to transfer the data from servlet to applet and the data is more than 1 lakh record while doing with Object Streams i am getting OutOfMemoryError.


Viswanatha Basavalingappa

Posts: 84
Nickname: viswagb
Registered: Nov, 2003

Re: java OutOMemoryError Posted: Sep 19, 2006 12:27 PM
Reply to this message Reply
There are different reasons to get OutOfMemoryError. by seeing your problem description.

1. You should mention the data size in bytes. ( 1 lakh record) can be 1K/100MB right).

2. In this case possible cause of an OutOfMemoryError is that you simply haven't got enough memory available for the workings of your application.

Solution to this problem may be:
A). Increase the available JVM heap size.
- Simply done with the -Xmx parameter to the JVM.
(NOTE: up to available RAM only, don't exceed real system memory or your application will page and crawl to a halt/hung.)

B). Decrease the amount of memory your application needs.
i guess this is needs your app should be re-design.
Read/transmit data part/part. use some efficient collection framework for data handing ling

Flat View: This topic has 1 reply on 1 page
Topic: help regarding Visual basic Previous Topic   Next Topic Topic: thread priority

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use