Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java 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)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

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 us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-10-2007, 02:50 PM
Member
 
Join Date: Jul 2007
Posts: 1
rajeshkumarmsc is on a distinguished road
How to reduce the size or avoiding out of memory error?
HI all i m rajesh kumar..

I have one problem..

my scenario is i m reading one excel file by using POI API....
When i m trying to load the excel file with large amount of the data...i m facing out of memory errror....but i increased the heap size....but it
doesnt works....

Now i need to reduce the size for the excel file. by java code...can any one help me...Thanks in advance
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-26-2007, 01:22 AM
Member
 
Join Date: Jul 2007
Posts: 55
Seemster is on a distinguished road
increase the heap size by passing in the parameters to the JVM

-Xms256m
-Xmx512m
-XX:PermSize=64M
-XX:MaxPermSize=1000M
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 08-11-2007, 05:14 PM
Member
 
Join Date: Aug 2007
Posts: 3
nagesh is on a distinguished road
I know this settings, but where is the place to pass this options...
-Xms256m
-Xmx512m
-XX:PermSize=64M
-XX:MaxPermSize=1000M

please mention the full command to supply the above parametets
nagesh
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 08-12-2007, 12:15 AM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
Try like this:

Code:
java -Xms256m yourClass.class
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use Java's compression classes to reduce the amount of data sent over a socket Java Tip java.net 0 04-07-2008 09:56 PM
avoiding if statements valoyivd New To Java 1 04-02-2008 11:08 AM
Low memory error rlhs76 New To Java 2 02-09-2008 12:25 AM
Out of memory mew New To Java 1 01-20-2008 10:55 AM
Java Heap Out of Memory Error stonkers New To Java 3 07-17-2007 06:43 PM


All times are GMT +3. The time now is 04:40 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org