Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - java memory size: (8 Items)
   
java memory size  
on linux, how do you tweak the max memory size of the vm?

Cheers,

Colin

-- 
cburgess@qnx.com
Re: java memory size  
-Xmx<size_in_mega>

Colin Burgess wrote:
> on linux, how do you tweak the max memory size of the vm?
>
> Cheers,
>
> Colin
>
>   
Re: java memory size  
Same as on windows -Xmx724M

Which would look like for IDE

eclipse/eclipse -vm /usr/lib/jvm/java-6-sun-1.6.0.06/jre/bin/java -vmargs -Xmx724M -XX:MaxPermSize=128m

(the other one another heap size for string objects which sometimes it is running out of)

> on linux, how do you tweak the max memory size of the vm?
> 
> Cheers,
> 
> Colin
> 
Re: java memory size  
is that an argument to 'qde'?

Elena Laskavaia wrote:
> Same as on windows -Xmx724M
> 
> Which would look like for IDE
> 
> eclipse/eclipse -vm /usr/lib/jvm/java-6-sun-1.6.0.06/jre/bin/java -vmargs -Xmx724M -XX:MaxPermSize=128m
> 
> (the other one another heap size for string objects which sometimes it is running out of)
> 
>> on linux, how do you tweak the max memory size of the vm?
>>
>> Cheers,
>>
>> Colin
>>
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post32343
> 

-- 
cburgess@qnx.com
Re: java memory size  
Yes it is an argument to qde found in eclipse folder (after -vmargs), or you can put it in qde.ini.
If you talking about qde script which is in bin - you need to check if it passes arguments to actual binary.


Colin Burgess wrote:
> is that an argument to 'qde'?
> 
> Elena Laskavaia wrote:
>> Same as on windows -Xmx724M
>>
>> Which would look like for IDE
>>
>> eclipse/eclipse -vm /usr/lib/jvm/java-6-sun-1.6.0.06/jre/bin/java -vmargs -Xmx724M -XX:MaxPermSize=128m
>>
>> (the other one another heap size for string objects which sometimes it is running out of)
>>
>>> on linux, how do you tweak the max memory size of the vm?
>>>
>>> Cheers,
>>>
>>> Colin
>>>
>> _______________________________________________
>> General
>> http://community.qnx.com/sf/go/post32343
>>
> 
Re: java memory size  
Thanks, it appears to work.

Elena Laskavaia wrote:
> Yes it is an argument to qde found in eclipse folder (after -vmargs), or you can put it in qde.ini.
> If you talking about qde script which is in bin - you need to check if it passes arguments to actual binary.
> 
> 
> Colin Burgess wrote:
>> is that an argument to 'qde'?
>>
>> Elena Laskavaia wrote:
>>> Same as on windows -Xmx724M
>>>
>>> Which would look like for IDE
>>>
>>> eclipse/eclipse -vm /usr/lib/jvm/java-6-sun-1.6.0.06/jre/bin/java -vmargs -Xmx724M -XX:MaxPermSize=128m
>>>
>>> (the other one another heap size for string objects which sometimes it is running out of)
>>>
>>>> on linux, how do you tweak the max memory size of the vm?
>>>>
>>>> Cheers,
>>>>
>>>> Colin
>>>>
>>> _______________________________________________
>>> General
>>> http://community.qnx.com/sf/go/post32343
>>>
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post32346
> 

-- 
cburgess@qnx.com
Re: java memory size  
Aha - but passing -Xmx1024M to qde is accepted - but ignored!

I had to change my system qde.ini to get it to work!

Elena Laskavaia wrote:
> Yes it is an argument to qde found in eclipse folder (after -vmargs), or you can put it in qde.ini.
> If you talking about qde script which is in bin - you need to check if it passes arguments to actual binary.
> 
> 
> Colin Burgess wrote:
>> is that an argument to 'qde'?
>>
>> Elena Laskavaia wrote:
>>> Same as on windows -Xmx724M
>>>
>>> Which would look like for IDE
>>>
>>> eclipse/eclipse -vm /usr/lib/jvm/java-6-sun-1.6.0.06/jre/bin/java -vmargs -Xmx724M -XX:MaxPermSize=128m
>>>
>>> (the other one another heap size for string objects which sometimes it is running out of)
>>>
>>>> on linux, how do you tweak the max memory size of the vm?
>>>>
>>>> Cheers,
>>>>
>>>> Colin
>>>>
>>> _______________________________________________
>>> General
>>> http://community.qnx.com/sf/go/post32343
>>>
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post32346
> 

-- 
cburgess@qnx.com
Re: java memory size  
Command-line argument:

    -Xmx<size>

e.g., -Xmx1024M

If this is for an Eclipse-based product, the easiest way to specify this
is by appending this arg on a new line in the ini file (e.g., qde.ini or
eclipse.ini) following the -vmargs line.

HTH,

Christian


On Tue, 2009-06-23 at 12:53 -0400, Colin Burgess wrote:

> on linux, how do you tweak the max memory size of the vm?
> 
> Cheers,
> 
> Colin
>