Results 1 to 4 of 4
  1. #1
    boy22 is offline Member
    Join Date
    Jul 2007
    Posts
    36
    Rep Power
    0

    Default java.lang.OutOfMemoryException

    I'm trying to configure application in Sun One Portal server 3.0 during configuration I was trying to import some xml files and I got the error :
    Exception in thread "main" java.lang.OutOfMemoryError.

    do you know what's the problem?
    any ideas?

  2. #2
    leonard is offline Member
    Join Date
    Jul 2007
    Posts
    43
    Rep Power
    0

    Default

    Try and have a look at your code, there could be a memory leek, try setting variables to null after use this sometimes this helps clear the memory also look at some loops in you code may never end this will also use a lot of memory.

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

    Default

    you can increase the size of the heap by passing in values to the JVM.

    you can pass the following:
    -Xms256m
    -Xmx512m
    -XX:PermSize=64M
    -XX:MaxPermSize=1000M

  4. #4
    boy22 is offline Member
    Join Date
    Jul 2007
    Posts
    36
    Rep Power
    0

Similar Threads

  1. java.lang.OutOfMemoryError: Java heap space
    By paul in forum Advanced Java
    Replies: 11
    Last Post: 06-12-2010, 05:30 PM
  2. Replies: 3
    Last Post: 09-07-2009, 01:28 PM
  3. Replies: 2
    Last Post: 09-18-2008, 07:30 AM
  4. java.lang.StackOverflowError
    By eva in forum New To Java
    Replies: 3
    Last Post: 12-24-2007, 09:54 AM
  5. java.lang.OutOfMemoryError with java vector
    By mary in forum New To Java
    Replies: 3
    Last Post: 08-03-2007, 10:55 AM

Posting Permissions

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