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: Swing application - Heap Memory issue

  1. #1
    Junior Member
    Join Date
    Jun 2017
    Posts
    1
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Swing application - Heap Memory issue

    Hi,

    I'm working on big Java swing application developed in JDK 1.6 and it requires 1400 MB (-Xmx1400MB) as max heap size and its working fine on windows 7 - 32 bit OS.

    We have tested the same on windows 10 - 64 bit OS with -Xmx1400M option on JRE 1.6 (client) and its failing to launch java application. It throws an error

    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine

    I have tried the below options but its not working on windows 10 64 bit OS.

    a. Written small code to clear heap by calling GC.
    b. Analysed Heap Dump using Jhat tool
    c. -XX:UseSerialGC to collect GC
    d. disable caching mechanism on windows 10 services (Prefetch & superfetch)

    I tried to reboot the machine but issue is still exists.
    I know that JVM is not able to allocate contiguous memory space upto 1400MB. I don't know how to resolve this issue. Help Me

    NOTE :

    i) Our application requires 1400 MB to load big experiments. So we can not reduce the heap size.
    ii) We are loading 32-bit native dlls from our Java application.so we can't move to x64 JRE.

    Kindly help me to solve this issue.


    Thanks,
    Raj Kumar

  2. The Following User Says Thank You to javark1985 For This Useful Post:

    Ram Lakshmanan (November 16th, 2018)

  3. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Swing application - Heap Memory issue

    Also posted at: https://coderanch.com/t/681446/java/Heap-Memory
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. [SOLVED] applet out of memory error (how to increase available heap space)
    By KAJLogic in forum Java Theory & Questions
    Replies: 12
    Last Post: July 15th, 2014, 08:00 PM
  2. Java heap memory error
    By geethauma in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 12th, 2013, 10:20 AM
  3. Heap Memory
    By vamsi in forum Java Theory & Questions
    Replies: 3
    Last Post: November 19th, 2011, 12:48 PM
  4. [SOLVED] Is there any way I can access heap memory faster?
    By FunkyTecknician in forum Java Theory & Questions
    Replies: 8
    Last Post: July 29th, 2011, 11:51 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

Tags for this Thread