Results 1 to 8 of 8
- 06-02-2012, 10:15 PM #1
Member
- Join Date
- Mar 2012
- Posts
- 8
- Rep Power
- 0
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:
Thanks in advance. :)
- 06-03-2012, 04:46 AM #2
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
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 06-03-2012, 06:21 AM #3
Member
- Join Date
- Mar 2012
- Posts
- 8
- Rep Power
- 0
- 06-03-2012, 10:37 AM #4
Re: Unable to allocate more memory to java
So, if you need entries for java.exe you can add them.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 06-03-2012, 05:56 PM #5
Member
- Join Date
- Mar 2012
- Posts
- 8
- Rep Power
- 0
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?
- 06-03-2012, 08:55 PM #6
Re: Unable to allocate more memory to java
Hm, I see a button in your screenshot marked 'Add'
Wonder what that does?
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 06-03-2012, 10:27 PM #7
Member
- Join Date
- Mar 2012
- Posts
- 8
- Rep Power
- 0
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.
- 06-06-2012, 12:27 PM #8
Moderator
- Join Date
- Apr 2009
- Posts
- 10,460
- Rep Power
- 16
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.
Similar Threads
-
Getting exception java.lang.OutOfMemoryError: Can't allocate C string
By Sanjeev in forum Advanced JavaReplies: 3Last Post: 07-05-2011, 06:18 PM -
Allocate memory for array of Objects.
By Splanger in forum New To JavaReplies: 7Last Post: 07-03-2011, 08:15 PM -
Allocate memory
By thescratchy in forum New To JavaReplies: 1Last Post: 12-17-2010, 10:49 PM -
SEVERE: Allocate exception for servlet ServletHandler
By shyameni in forum Java ServletReplies: 2Last Post: 03-05-2010, 12:35 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks