Skip to main content

I cant set the Xmx and Xms larger than 3g on system have 32 GB RAM

5 replies [Last post]
almothafar
Offline
Joined: 2010-03-07
Points: 0

Hi

I have the problem with these parameters, I cant set these parameters larger than 3g, an if I use XX:PermSize I can't set the total of the both larger than 3g , but my system has 32GB and the details is :

UltraSPARC-T2

System Configuration: Sun Microsystems sun4v Sun Blade T6320 Server Module
Memory size: 32640 Megabytes

================================ Virtual CPUs ================================

CPU ID Frequency Implementation Status
------ --------- ---------------------- -------
0 1415 MHz SUNW,UltraSPARC-T2 on-line
1 1415 MHz SUNW,UltraSPARC-T2 on-line
.
.
.
62 1415 MHz SUNW,UltraSPARC-T2 on-line
63 1415 MHz SUNW,UltraSPARC-T2 on-line

======================= Physical Memory Configuration ========================
Segment Table:
--------------------------------------------------------------
Base Segment Interleave Bank Contains
Address Size Factor Size Modules
--------------------------------------------------------------
0x0 32 GB 4 8 GB MB/CMP0/BR0/CH0/D0
MB/CMP0/BR0/CH1/D0
8 GB MB/CMP0/BR1/CH0/D0
MB/CMP0/BR1/CH1/D0
8 GB MB/CMP0/BR2/CH0/D0
MB/CMP0/BR2/CH1/D0
8 GB MB/CMP0/BR3/CH0/D0
MB/CMP0/BR3/CH1/D0

and my java version :

java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)

I download it from : http://java.sun.com/javase/downloads/widget/jdk6.jsp
And then I choose Solaris SPARC ...

Any help please,
Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
almothafar
Offline
Joined: 2010-03-07
Points: 0

OK Guys, Thank you

I solved my problem, It was easy, i install JDK for sparcv9 from jdk-6u20-solaris-sparcv9.sh (Must install after install jdk-6u20-solaris-sparc.sh).

and then add this parameter in JVM options "-d64" ...

and now the Xmx and Xms accept 4g with 4g too for XX:PermSize

My custom jvm options now are :

-d64
-Xmn2g
-Xms4g
-Xmx4g
-XX:PermSize=4g
-XX:MaxPermSize=4g
-XX:LargePageSizeInBytes=4g
-XX:MaxNewSize=640m
-XX:NewSize=640m
-XX:SurvivorRatio=16
-XX:SoftRefLRUPolicyMSPerMB=1
-XX:NewRatio=4
-XX:ParallelGCThreads=32
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:+AggressiveOpts
-server

Thank you.

Its Solved ...

Message was edited by: almothafar

almothafar
Offline
Joined: 2010-03-07
Points: 0

Please, is urgent, I need the solution ASAP...

almothafar
Offline
Joined: 2010-03-07
Points: 0

I forgot to list my custom JVM Options I use it in My Glassfish v2.1.1 :

-Xmn1g
-Xms2g
-Xmx2g
-XX:PermSize=1g
-XX:MaxPermSize=1g
-XX:LargePageSizeInBytes=2g
-XX:MaxNewSize=640m
-XX:NewSize=640m
-XX:SurvivorRatio=16
-XX:SoftRefLRUPolicyMSPerMB=1
-XX:NewRatio=4
-XX:ParallelGCThreads=32
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:+AggressiveOpts
-server

linuxhippy
Offline
Joined: 2004-01-07
Points: 0

My guess is you run the JVM in 32-bit mode

almothafar
Offline
Joined: 2010-03-07
Points: 0

Hi
Thank you for replay
Yes, I guess that, but how can I know that, and how can I run JVM in 64-bit if it in 64-bit.

Sorry, I'm beginner and nobody born educated ..

Thanks

Message was edited by: almothafar