Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: java.lang.outOfMemory heap space

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default java.lang.outOfMemory heap space

    Hi ,
    i am doing mvn installation and i got the error like
    java.lang.outOfMemory heap space
    so for that i have increased the heap memory size and have set in environment Variable like below and tried
    heapsize= -Xms256m -Xmx512m
    MAVEN_OPTS=-Xmx512m

    but still facing the same error

    can you please give suggestions where i am in wrong ??


  2. #2
    Super Moderator Sean4u's Avatar
    Join Date
    Jul 2011
    Location
    Tavistock, UK
    Posts
    637
    Thanks
    5
    Thanked 103 Times in 93 Posts

    Default Re: java.lang.outOfMemory heap space

    can you please give suggestions
    How about providing some more information? What exactly are you doing? A copy-pasted stack trace is always more useful than "i got the error like". You could let us know what platform you're using too (OS / JVM version / Servlet container etc). What is "doing mvn installation"? If that's a command line, copy-paste it. If it's an IDE feature, tell us what IDE you're using and describe the GUI actions needed to invoke the feature.

Similar Threads

  1. Replies: 0
    Last Post: March 22nd, 2012, 09:13 AM
  2. java.lang.OutOfMemoryError: Java heap space
    By Nikhat in forum Exceptions
    Replies: 7
    Last Post: April 21st, 2011, 07:31 AM
  3. Java Heap Space
    By aussiemcgr in forum Java Theory & Questions
    Replies: 4
    Last Post: September 8th, 2010, 05:05 PM
  4. AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    By nasi in forum What's Wrong With My Code?
    Replies: 6
    Last Post: March 25th, 2010, 10:37 PM
  5. Out of memory - Java heap space
    By fraxx in forum Java Theory & Questions
    Replies: 4
    Last Post: November 24th, 2009, 05:26 AM