Results 1 to 8 of 8
  1. #1
    musdem is offline Member
    Join Date
    Mar 2012
    Posts
    8
    Rep Power
    0

    Default Unable to allocate more memory to java

    Alright so I have looked up a guide as to how to allocate more memory to the jvm and followed it to the letter however every time I check to see the memory that has been allocated to java it says that it has 1024MB rather than the 4096MB I assigned to it.

    Here is a picture of the current settings: Unable to allocate more memory to java-java-memory.png

    Thanks in advance. :)

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default Re: Unable to allocate more memory to java

    Make the columns wider so you can see which executable the parameters apply to. Hint: it's probably not java.exe

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    musdem is offline Member
    Join Date
    Mar 2012
    Posts
    8
    Rep Power
    0

    Default Re: Unable to allocate more memory to java

    It seems to be applied to javaw.exe.
    Unable to allocate more memory to java-capture.png

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default Re: Unable to allocate more memory to java

    So, if you need entries for java.exe you can add them.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #5
    musdem is offline Member
    Join Date
    Mar 2012
    Posts
    8
    Rep Power
    0

    Default Re: Unable to allocate more memory to java

    I have tried to do that though I'm not sure of how to do so. Do I need a new entry or do I add something to the runtime parameters?

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default Re: Unable to allocate more memory to java

    Hm, I see a button in your screenshot marked 'Add'

    Wonder what that does?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  7. #7
    musdem is offline Member
    Join Date
    Mar 2012
    Posts
    8
    Rep Power
    0

    Default Re: Unable to allocate more memory to java

    OK I'm not an idiot, I have tried that and I set the path to "C:\Program Files\Java\jre7\bin\java.exe" and it keeps getting removed. That's why I was asking if there was something specific I needed to do rather than the obvious.

  8. #8
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,949
    Rep Power
    19

    Default Re: Unable to allocate more memory to java

    Since java.exe is only called "manually" then giving it a different default via those settings makes no sense, since you generally define it at execution time.
    javaw needs the above since it is what launches (normally) a jar file on a double click, so there needed to be a mechanism for supplying a different value for Xmx (etc).
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Replies: 3
    Last Post: 07-05-2011, 06:18 PM
  2. Allocate memory for array of Objects.
    By Splanger in forum New To Java
    Replies: 7
    Last Post: 07-03-2011, 08:15 PM
  3. Allocate memory
    By thescratchy in forum New To Java
    Replies: 1
    Last Post: 12-17-2010, 10:49 PM
  4. SEVERE: Allocate exception for servlet ServletHandler
    By shyameni in forum Java Servlet
    Replies: 2
    Last Post: 03-05-2010, 12:35 PM

Tags for this Thread

Posting Permissions

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