Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2007
    Posts
    1
    Rep Power
    0

    Default 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

  2. #2
    Seemster is offline Member
    Join Date
    Jul 2007
    Posts
    55
    Rep Power
    0

    Default

    increase the heap size by passing in the parameters to the JVM

    -Xms256m
    -Xmx512m
    -XX:PermSize=64M
    -XX:MaxPermSize=1000M

  3. #3
    nagesh is offline Member
    Join Date
    Aug 2007
    Posts
    3
    Rep Power
    0

    Default

    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

  4. #4
    JavaBean's Avatar
    JavaBean is offline Moderator
    Join Date
    May 2007
    Posts
    1,270
    Rep Power
    9

    Default

    Try like this:

    Java Code:
    java -Xms256m yourClass.class

Similar Threads

  1. Replies: 0
    Last Post: 04-07-2008, 07:56 PM
  2. avoiding if statements
    By valoyivd in forum New To Java
    Replies: 1
    Last Post: 04-02-2008, 09:08 AM
  3. Low memory error
    By rlhs76 in forum New To Java
    Replies: 2
    Last Post: 02-08-2008, 10:25 PM
  4. Out of memory
    By mew in forum New To Java
    Replies: 1
    Last Post: 01-20-2008, 08:55 AM
  5. Java Heap Out of Memory Error
    By stonkers in forum New To Java
    Replies: 3
    Last Post: 07-17-2007, 04:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •